summaryrefslogtreecommitdiffstats
path: root/tests/autotrigger.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/autotrigger.sh')
-rwxr-xr-xtests/autotrigger.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/autotrigger.sh b/tests/autotrigger.sh
new file mode 100755
index 0000000..b7318c8
--- /dev/null
+++ b/tests/autotrigger.sh
@@ -0,0 +1,19 @@
+#! /bin/bash
+
+function pci {
+ PCILIB_PATH=`which pci`
+ #LD_LIBRARY_PATH="$PCILIB_PATH"
+ $PCILIB_PATH/pci $*
+}
+
+echo "Starting the grabber"
+pci -g -o /dev/null --run-time 12000000 --verbose 10 &
+pid=$!
+
+usleep 100000
+pci -w 9040 80004a01
+usleep 10000000
+pci -w 9040 80000201
+
+echo "Waiting grabber to finish"
+wait $pid