Create run_unit_tests.sh
This commit is contained in:
11
src/tests/run_unit_tests.sh
Normal file
11
src/tests/run_unit_tests.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
fatal() {
|
||||
echo "fatal: $*" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ -d "./tests" ] || fatal "must be run from parent directory"
|
||||
|
||||
./bin/yait --help 2>&1 || fatal "failed on --help"
|
||||
./bin/yait --version 2>&1 || fatal "failed on --version"
|
||||
Reference in New Issue
Block a user