diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2014-03-19 23:12:31 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2014-03-19 23:12:31 +0100 |
commit | ef4f563559f195672d07114670a461a7c55ea22b (patch) | |
tree | 300e583a062fd7fe017d59fc68edef5d84184a85 /tests/incomplete.sh | |
parent | 3b410e54d3925a903adb2cc479177afc579c7679 (diff) | |
download | pcitool-ef4f563559f195672d07114670a461a7c55ea22b.tar.gz pcitool-ef4f563559f195672d07114670a461a7c55ea22b.tar.bz2 pcitool-ef4f563559f195672d07114670a461a7c55ea22b.tar.xz pcitool-ef4f563559f195672d07114670a461a7c55ea22b.zip |
Add HEB scripts and re-organize the structure
Diffstat (limited to 'tests/incomplete.sh')
-rwxr-xr-x | tests/incomplete.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/incomplete.sh b/tests/incomplete.sh deleted file mode 100755 index 5c80198..0000000 --- a/tests/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 |