branch | wxPython4 |
changeset 3749 | fda6c1a37662 |
child 3824 | 5f0b02ab500c |
3748:a811e1ff718a | 3749:fda6c1a37662 |
---|---|
1 #!/bin/bash |
|
2 |
|
3 # Run IEC61131 language test through command line, and check for success in output |
|
4 |
|
5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/iec61131_lang_test build transfer run; |
|
6 |
|
7 while read -t 5 -u ${COPROC[0]} line; do |
|
8 echo "$line" |
|
9 if [[ "$line" == *ALL\ TESTS\ OK* ]]; then |
|
10 pkill INT -s $COPROC_PID |
|
11 exit 0 |
|
12 fi |
|
13 done |
|
14 |
|
15 exit 42 |