Make test scripts callable from any path
[strongswan.git] / testing / make-testing
1 #!/bin/bash
2
3 DIR=$(dirname `readlink -f $0`)
4 . $DIR/testing.conf
5
6 rm -f $LOGFILE
7
8 if [ $ENABLE_BUILD_BASEIMAGE = "yes" ]
9 then
10         $DIR/scripts/build-baseimage || exit 1
11 fi
12
13 if [ $ENABLE_BUILD_ROOTIMAGE = "yes" ]
14 then
15         $DIR/scripts/build-rootimage || exit 1
16 fi
17
18 if [ $ENABLE_BUILD_GUESTKERNEL = "yes" ]
19 then
20         $DIR/scripts/build-guestkernel || exit 1
21 fi
22
23 if [ $ENABLE_BUILD_GUESTIMAGES = "yes" ]
24 then
25         $DIR/scripts/build-guestimages $HOSTS || exit 1
26 fi