linuxcnc/tests/module-loading/shared-test.sh
2012-12-14 23:08:27 -07:00

17 lines
247 B
Bash

#!/bin/bash
halrun setup.hal > hal-output 2>&1
RESULT=$?
NUM_PINS=$(cat hal-output | egrep $(cat PIN_NAME_REGEX) | wc -l)
if [ $RESULT -ne $(cat RESULT) ]; then
exit 1
fi
if [ "$NUM_PINS" -ne $(cat NUM_PINS) ]; then
exit 1
fi
exit 0