edouard@3926: #!/bin/bash edouard@3926: edouard@3926: # Run python example throug command line, and check usual output edouard@3926: edouard@3926: coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/modbus_test_tcp build transfer run; edouard@3926: edouard@3926: while read -u ${COPROC[0]} line; do edouard@3926: echo "$line" edouard@3926: if [[ "$line" == "TEST OK" ]]; then edouard@3926: pkill -9 -s $COPROC_PID edouard@3926: exit 0 edouard@3926: fi edouard@3926: done edouard@3926: edouard@3926: exit 42