Import LinuxCNC source tree
This commit is contained in:
2
tests/overrun/README
Normal file
2
tests/overrun/README
Normal file
@@ -0,0 +1,2 @@
|
||||
This test makes sure that the "overrun" detection works. It is an XFAIL
|
||||
because the testing infrastructure will believe it is a failure.
|
||||
5
tests/overrun/checkresult
Executable file
5
tests/overrun/checkresult
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
grep -q "overrun detected in sampler" "$1"
|
||||
grep -q "10 overruns detected, giving up" "$1"
|
||||
grep -q "1 tests run, 0 successful, 1 failed . 0 expected" "$1"
|
||||
7
tests/overrun/test.sh
Executable file
7
tests/overrun/test.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
TMPDIR=$(mktemp -d /tmp/overrun.XXXXXX)
|
||||
trap 'rm -rf "$TMPDIR"' 0 1 2 3 15
|
||||
|
||||
echo loadusr -w echo overrun > "$TMPDIR/test.hal"
|
||||
|
||||
! $RUNTESTS "$TMPDIR" 2>&1
|
||||
Reference in New Issue
Block a user