Add integration test framework (with 2 tests).
[oweals/dinit.git] / src / igr-tests / basic / run-test.sh
1 #!/bin/sh
2
3 rm -f ./basic-ran
4
5 ../../dinit -d sd -u -p socket -q \
6         basic
7
8 STATUS=FAIL
9 if [ -e basic-ran ]; then
10    if [ "$(cat basic-ran)" = "ran" ]; then
11        STATUS=PASS
12    fi
13 fi
14
15 if [ $STATUS = PASS ]; then exit 0; fi
16 exit 1