runtest 615 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # Note: it is possible to run the two instances of libgpib_test on different
  3. # computers by calling one through ssh instead of running it directly.
  4. COMMON_OPTIONS="$*"
  5. MASTER_OPTIONS="--master"
  6. SLAVE_OPTIONS="--slave"
  7. MYFIFO="/tmp/libgpib_test_fifo"
  8. rm -f $MYFIFO
  9. mknod $MYFIFO p
  10. ./libgpib_test $COMMON_OPTIONS $MASTER_OPTIONS 0< $MYFIFO 2> master_out | \
  11. ./libgpib_test $COMMON_OPTIONS $SLAVE_OPTIONS 1>> $MYFIFO 2>slave_out
  12. rm -f $MYFIFO
  13. echo
  14. echo ==========
  15. echo "Output of master run:"
  16. echo ==========
  17. cat master_out
  18. echo
  19. echo ==========
  20. echo "Output of slave run:"
  21. echo ==========
  22. cat slave_out