beremiz
Clone
Summary
Browse
Changes
Graph
tests: CLI: add simple test running python example
2022-07-15, Edouard Tisserant
6210c08c1c41
Parents
c1d627434cd1
Children
f2dff88db448
tests: CLI: add simple test running python example
1 files changed, 15 insertions(+), 0 deletions(-)
+15
-0
tests/cli_tests/run_python_example.bash
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/cli_tests/run_python_example.bash Fri Jul 15 14:47:23 2022 +0200
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Run python example throug command line, and check usual output
+
+coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home ~/src/beremiz/exemples/python build transfer run;
+
+while read -u ${COPROC[0]} line; do
+ echo "$line"
+ if [[ "$line" == *Grumpf* ]]; then
+ pkill -9 -s $COPROC_PID
+ exit 0
+ fi
+done
+
+exit 42