summaryrefslogtreecommitdiffstats
path: root/tests/ipecamera
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ipecamera')
-rwxr-xr-xtests/ipecamera/autotrigger.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ipecamera/autotrigger.sh b/tests/ipecamera/autotrigger.sh
new file mode 100755
index 0000000..1c8f353
--- /dev/null
+++ b/tests/ipecamera/autotrigger.sh
@@ -0,0 +1,18 @@
+#! /bin/bash
+
+function pci {
+ PCILIB_PATH="../../"
+ 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 80000a01
+usleep 10000000
+pci -w 9040 80000001
+
+echo "Waiting grabber to finish"
+wait $pid