Files
linuxcncAllWasm/debian/tests/rs274-test
2026-08-20 06:17:39 +08:00

25 lines
408 B
Bash
Executable File

#!/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