summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2013-04-17 18:41:35 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2013-04-17 18:41:35 +0200
commitfda2d65fa7e38f0e30101bce657685a8c637cb13 (patch)
treed5c599cdd160bacb6ed2ca320278046d25baf286 /tests
parentb2bead6a5fd74b4543c7bb9278558ff485c22995 (diff)
parent821a945eafaf63963d56c9bdef773760bea9a41d (diff)
downloadpcitool-fda2d65fa7e38f0e30101bce657685a8c637cb13.tar.gz
pcitool-fda2d65fa7e38f0e30101bce657685a8c637cb13.tar.bz2
pcitool-fda2d65fa7e38f0e30101bce657685a8c637cb13.tar.xz
pcitool-fda2d65fa7e38f0e30101bce657685a8c637cb13.zip
Merge important fixes for operation under LibUCA control
Diffstat (limited to 'tests')
-rwxr-xr-xtests/grabhw.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/grabhw.sh b/tests/grabhw.sh
new file mode 100755
index 0000000..0279ab4
--- /dev/null
+++ b/tests/grabhw.sh
@@ -0,0 +1,20 @@
+#! /bin/bash
+
+function pci {
+ PCILIB_PATH="/root/pcitool"
+ LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
+}
+
+function enable_hw_trigger {
+ usleep 100000
+ pci -w control 0xa01
+}
+
+rm -f images.raw
+
+enable_hw_trigger &
+pid=$!
+
+echo "Starting the grabber"
+pci -g -o images.raw --run-time 60000000 --verbose 10 -o /dev/null
+wait $pid