summaryrefslogtreecommitdiffstats
path: root/tests/ipecamera/debug
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-20 22:01:04 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-20 22:01:04 +0200
commit77c4d6e67debf0e729734d882df033c4c0f5b0c3 (patch)
tree4a59e86332d6cc78fc5c97110ecba281b0f67bc9 /tests/ipecamera/debug
parent0002c0cc260a6a8e2b6c53f19ae99a625eca4355 (diff)
downloadpcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.gz
pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.bz2
pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.xz
pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.zip
Big redign of model structures
Diffstat (limited to 'tests/ipecamera/debug')
-rwxr-xr-xtests/ipecamera/debug/incomplete.sh37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/ipecamera/debug/incomplete.sh b/tests/ipecamera/debug/incomplete.sh
deleted file mode 100755
index 5c80198..0000000
--- a/tests/ipecamera/debug/incomplete.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /bin/bash
-
-function pci {
- PCILIB_PATH="/root/pcitool"
- LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
-}
-
-rm -f images.raw
-touch images.raw
-
-echo "Starting the grabber"
-pci --stop-dma
-pci --start-dma dma1
-pci -g -o images.raw --run-time 1000000000 &
-pid=$!
-
-usleep 1000000
-
-for i in `seq 1 100000`; do
- old_size=`ls -la images.raw | cut -d " " -f 5`
- echo "Trigger $i"
- pci --trigger
- usleep 100000
- new_size=`ls -la images.raw | cut -d " " -f 5`
- if [ $old_size -eq $new_size ]; then
- sleep 2
- new_size=`ls -la images.raw | cut -d " " -f 5`
- if [ $old_size -eq $new_size ]; then
- echo "Incomplete frame..."
- killall -SIGINT pci
- break
- fi
- fi
-done
-
-echo "Waiting grabber to finish"
-wait $pid