Initial code checkin
[grml-unittests.git] / autoconfig / deploy.sh
1 #!/bin/zsh
2
3 . /etc/grml/autoconfig.functions
4
5 mkdir -p /tmp/tests
6
7 TESTS_SRC=$(getbootparam testsrc)
8 STATUS=$(getbootparam status)
9
10 if [ -n "$TESTS_SRC" ] ; then
11     cd /tmp/tests
12     wget -m -np -nd $TESTS_SRC/
13     cd -
14 fi
15 chmod +x /tmp/tests/*.sh
16
17 for file in /tmp/tests/*.sh ; do
18     PATH=/tmp/tests $file
19     RETVAL=$?
20     [ "$RETVAL" -ne 0 ] && wget $STATUS/FAIL
21
22 done
23 wget $STATUS/DONE
24