Import LinuxCNC source tree
This commit is contained in:
14
tests/linuxcncrsh/checkresult
Executable file
14
tests/linuxcncrsh/checkresult
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
TEST_DIR=$(dirname "$1")
|
||||
cd "$TEST_DIR" || { echo "E: Could not change directory to '$TEST_DIR'"; exit 1; }
|
||||
|
||||
# show deviation from expected output
|
||||
diff -uwB expected-gcode-output gcode-output || exit 1
|
||||
diff -uwB expected-telnet-output telnet-output || exit 1
|
||||
|
||||
# search all output for possible errors
|
||||
grep 'error_type' result && exit 1
|
||||
grep 'CMS_ERROR' result && exit 1
|
||||
grep 'Recent errors repeated' result && exit 1
|
||||
exit 0
|
||||
Reference in New Issue
Block a user