diff options
Diffstat (limited to 'tests/run.sh')
| -rw-r--r-- | tests/run.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh new file mode 100644 index 0000000..d92cc29 --- /dev/null +++ b/tests/run.sh @@ -0,0 +1,18 @@ +set -e + +export p4dcc="../../../p4dcc" + +export testcase=$1 +export tmp_dir="tests/tmp/$testcase" + +test_file="tests/$testcase.sh" + +if [[ ! -f "$test_file" ]]; then + echo "no test $testcase" >&2 + exit 1 +fi + +echo "$test_file" +mkdir -p "$tmp_dir" +cd "$tmp_dir" +bash "../../../$test_file" |
