summaryrefslogtreecommitdiffstats
path: root/tests/grab.sh
blob: 5fa6100213f7e28bf9260747c645c4aa6d3ac6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash

function pci {
    PCILIB_PATH="/root/pcitool"
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
}

rm -f images.raw


echo "Starting the grabber"
pci -g -o images.raw --run-time 3000000 &
pid=$!

usleep 1000000

for i in `seq 1 10`; do
    echo "Trigger $i"
    pci --trigger
    usleep 100000
done

echo "Waiting grabber to finish"
wait $pid