File: runtest

package info (click to toggle)
linux-gpib-user 4.3.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,760 kB
  • sloc: ansic: 10,381; perl: 1,120; xml: 375; makefile: 335; yacc: 335; tcl: 308; python: 173; php: 157; lex: 144; sh: 134; lisp: 94
file content (24 lines) | stat: -rwxr-xr-x 615 bytes parent folder | download
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
# Note: it is possible to run the two instances of libgpib_test on different
# computers by calling one through ssh instead of running it directly.
COMMON_OPTIONS="$*"
MASTER_OPTIONS="--master"
SLAVE_OPTIONS="--slave"
MYFIFO="/tmp/libgpib_test_fifo"

rm -f $MYFIFO
mknod $MYFIFO p
./libgpib_test $COMMON_OPTIONS $MASTER_OPTIONS 0< $MYFIFO 2> master_out | \
	./libgpib_test $COMMON_OPTIONS $SLAVE_OPTIONS 1>> $MYFIFO 2>slave_out
rm -f $MYFIFO

echo
echo ==========
echo "Output of master run:"
echo ==========
cat master_out
echo
echo ==========
echo "Output of slave run:"
echo ==========
cat slave_out