linuxcnc/tests/module-loading/rtapi-app-main-fails/test.sh
John Morris 8dfc261ef3 Fix tests building RT comps against system install
Use `sudo halcompile` to install RT comps.
2020-06-10 13:54:40 +08:00

12 lines
248 B
Bash

#!/bin/sh
${SUDO} halcompile --install rtapi_app_main_fails.comp
halrun -v setup.hal
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo "the module loaded, but shouldn't have"
exit 1
fi
echo "the module failed to load, just like it should"
exit 0