test.sh
1 #!/bin/sh 2 halcompile --install rtapi_app_main_fails.comp 3 halrun -v setup.hal 4 RETVAL=$? 5 6 if [ $RETVAL -eq 0 ]; then 7 echo "the module loaded, but shouldn't have" 8 exit 1 9 fi 10 11 echo "the module failed to load, just like it should" 12 exit 0