summaryrefslogtreecommitdiff
path: root/tests/module-loading/shared-test.sh
blob: 94a28c1a1cab04b2743af5c76bd9ce8498210b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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