Import LinuxCNC source tree
This commit is contained in:
24
debian/tests/rs274-test
vendored
Executable file
24
debian/tests/rs274-test
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ -z "$AUTOPKGTEST_TMP" ]; then
|
||||
AUTOPKGTEST_TMP="."
|
||||
fi
|
||||
log=$AUTOPKGTEST_TMP/rs274.out
|
||||
|
||||
if ! rs274 -g rs274.ngc > "$log" 2>&1 ; then
|
||||
echo "error: failed to run rs274"
|
||||
cat "$log"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! diff -u "$log" rs274.res ; then
|
||||
echo "error: rs274 output do not match rs274.res"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "success: rs274 output matches rs274.res"
|
||||
exit 0
|
||||
Reference in New Issue
Block a user