From dcce9f592e5a9c25feaa92d3893454a1155a00d4 Mon Sep 17 00:00:00 2001
From: Sinisa Veseli <sveseli@aps.anl.gov>
Date: Thu, 18 Apr 2019 17:17:20 +0000
Subject: [PATCH] adding 1BM system tests and utilities

---
 bin/1BM/dm-1bm-daq                    | 18 ++++++++++++++++++
 bin/1BM/dm-1bm-upload                 | 18 ++++++++++++++++++
 sbin/1BM/dm_1bm_system_test_daq.sh    |  5 +++++
 sbin/1BM/dm_1bm_system_test_upload.sh |  5 +++++
 4 files changed, 46 insertions(+)
 create mode 100755 bin/1BM/dm-1bm-daq
 create mode 100755 bin/1BM/dm-1bm-upload
 create mode 100755 sbin/1BM/dm_1bm_system_test_daq.sh
 create mode 100755 sbin/1BM/dm_1bm_system_test_upload.sh

diff --git a/bin/1BM/dm-1bm-daq b/bin/1BM/dm-1bm-daq
new file mode 100755
index 00000000..daed1d22
--- /dev/null
+++ b/bin/1BM/dm-1bm-daq
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Run command
+
+if [ -z $DM_ROOT_DIR ]; then
+    cd `dirname $0` && myDir=`pwd`
+    setupFile=$myDir/../../setup.sh
+    if [ ! -f $setupFile ]; then
+        echo "Cannot find setup file: $setupFile"
+        exit 1
+    fi
+    source $setupFile > /dev/null
+fi
+source $DM_ROOT_DIR/bin/dm_command_setup.sh
+
+eval "$DM_ROOT_DIR/src/python/dm/aps_beamline_tools/cli/daqCli.py $DM_COMMAND_ARGS"
+
+
diff --git a/bin/1BM/dm-1bm-upload b/bin/1BM/dm-1bm-upload
new file mode 100755
index 00000000..9f753a81
--- /dev/null
+++ b/bin/1BM/dm-1bm-upload
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Run command
+
+if [ -z $DM_ROOT_DIR ]; then
+    cd `dirname $0` && myDir=`pwd`
+    setupFile=$myDir/../../setup.sh
+    if [ ! -f $setupFile ]; then
+        echo "Cannot find setup file: $setupFile"
+        exit 1
+    fi
+    source $setupFile > /dev/null
+fi
+source $DM_ROOT_DIR/bin/dm_command_setup.sh
+
+eval "$DM_ROOT_DIR/src/python/dm/aps_beamline_tools/cli/uploadCli.py $DM_COMMAND_ARGS"
+
+
diff --git a/sbin/1BM/dm_1bm_system_test_daq.sh b/sbin/1BM/dm_1bm_system_test_daq.sh
new file mode 100755
index 00000000..7127a19a
--- /dev/null
+++ b/sbin/1BM/dm_1bm_system_test_daq.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd `dirname $0`/.. && DM_SBIN_DIR=`pwd`
+$DM_SBIN_DIR/dm_system_test_daq.sh /home/dm_bm/test
+
diff --git a/sbin/1BM/dm_1bm_system_test_upload.sh b/sbin/1BM/dm_1bm_system_test_upload.sh
new file mode 100755
index 00000000..467a9cdb
--- /dev/null
+++ b/sbin/1BM/dm_1bm_system_test_upload.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd `dirname $0`/.. && DM_SBIN_DIR=`pwd`
+$DM_SBIN_DIR/dm_system_test_upload.sh /home/dm_bm/test
+
-- 
GitLab