tests/cli_tests/modbus_test_tcp.bash
changeset 3926 a6ec38dcbfb5
equal deleted inserted replaced
3925:1d383b4c0a23 3926:a6ec38dcbfb5
       
     1 #!/bin/bash
       
     2 
       
     3 # Run python example throug command line, and check usual output
       
     4 
       
     5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/modbus_test_tcp build transfer run;
       
     6 
       
     7 while read -u ${COPROC[0]} line; do 
       
     8     echo "$line"
       
     9     if [[ "$line" == "TEST OK" ]]; then
       
    10         pkill -9 -s $COPROC_PID 
       
    11         exit 0
       
    12     fi
       
    13 done
       
    14 
       
    15 exit 42