/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to tests/autotrigger.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-13 23:35:09 UTC
  • Revision ID: csa@suren.me-20150813233509-hlr6rss105ttaodk
Improve autotrigger test

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/bash
2
2
 
 
3
#Example options:
 
4
# ./autotrigger.sh --threads 4                                                  - use multiple threads for preprocessing
 
5
# ./autotrigger.sh --data raw --format raw                                      - test raw_data_callback functionality
 
6
# PCILIB_DEBUG_MISSING_EVENTS=1 IPECAMERA_DEBUG_HARDWARE=1 ./autotrigger.sh     - debug missing frames 
 
7
 
3
8
function pci {
4
9
    APP_PATH=`dirname $0`/..
5
10
    if [ -d $APP_PATH/../pcitool ]; then
14
19
}
15
20
 
16
21
echo "Starting the grabber"
17
 
pci -g -o /dev/null --run-time 1002000000 --verbose 10 &
 
22
pci -g -o /dev/null --run-time 10002000000 --verbose 10 $@ &
18
23
pid=$!
19
24
 
20
 
trap "{ /usr/bin/kill -s INT $!; }" SIGINT
 
25
trap "{ kill -s INT $!; }" SIGINT
21
26
 
22
27
sleep 0.1
23
28
pci -w 9040 80004a01
24
 
sleep 1000
 
29
sleep 10000
25
30
pci -w 9040 80000201
26
31
 
27
32
echo "Waiting grabber to finish"