Import LinuxCNC source tree
This commit is contained in:
17
tests/module-loading/shared-test.sh
Normal file
17
tests/module-loading/shared-test.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
halrun setup.hal > hal-output 2>&1
|
||||
RESULT=$?
|
||||
|
||||
NUM_PINS=$(grep -Ec "$(cat PIN_NAME_REGEX)" hal-output)
|
||||
|
||||
if [ $RESULT -ne "$(cat RESULT)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$NUM_PINS" -ne "$(cat NUM_PINS)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user