summaryrefslogtreecommitdiff
path: root/download_tests_dependencies.sh
blob: 0e2adbf820aca9f2e6bf4c01c7de3b7c6d5321b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Loop over the test folders and run the download.sh script if any

echo "Downloading test dependencies"

TESTDIR=./test/

for t in `ls -1 $TESTDIR`
do
    # Is there a run.sh executable script inside?
    if test -x $TESTDIR/$t/download.sh ; then
        echo "Downloading dependencies for test $t"
        sh $TESTDIR/$t/download.sh "$1"
        if test $? != 0 ; then
            echo "Failed to download dependencies for test $t!"
            exit $?
        fi
    fi
done