aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/all.sh
blob: 4ff368848851cc59eeff099392f18e2f43b4f3d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set -e

export p4dcc="../../../p4dcc"

rm -rf tests/tmp
mkdir -p tests/tmp
for i in $(seq 1 999); do
    testcase=$(printf '%03d' $i)
    test_file="tests/$testcase.sh"
    if [[ -f "$test_file" ]]; then
        bash tests/run.sh "$testcase"
    else
        echo "All tests passed."
        exit
    fi
done