edouard@3749: #!/bin/bash edouard@3749: edouard@3749: # Run IEC61131 language test through command line, and check for success in output edouard@3749: edouard@3749: coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/iec61131_lang_test build transfer run; edouard@3749: edouard@3749: while read -t 5 -u ${COPROC[0]} line; do edouard@3749: echo "$line" edouard@3749: if [[ "$line" == *ALL\ TESTS\ OK* ]]; then edouard@3749: pkill INT -s $COPROC_PID edouard@3749: exit 0 edouard@3749: fi edouard@3749: done edouard@3749: edouard@3749: exit 42