Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

2
tests/overrun/README Normal file
View 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
View 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
View 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