3 # This script is used to setup the regression testing environment
4 # invoke the tests and record the results. It expects the following
5 # variables to be in the environment.
8 # $BRANCH the name of the branch, or HEAD.
11 # it is expected that $BUILDSPOOL/freeswan contains a checked out copy
12 # of the source tree that is ready for building.
14 # In general, this script is in fact running from
15 # $BUILDSPOOL/freeswan/testing/utils/regress-stage2.sh
17 # invoked from regress-nightly.sh. The two stages permit the regress-nightly.sh
18 # scritpt, which must be invoked from outside of the CVS tree to change
21 # This script will further look for $HOME/freeswan-regress-env.sh for a list
22 # of variables to include.
27 # die if anything dies.
30 mkdir -p $BUILDSPOOL/UMLPOOL
32 umlsetup=$BUILDSPOOL/freeswan/umlsetup.sh
34 echo "#" `date` >$umlsetup
35 echo "POOLSPACE=$BUILDSPOOL/UMLPOOL" >>$umlsetup
36 echo "BUILDTOP=$BUILDSPOOL/freeswan export BUILDTOP" >>$umlsetup
38 # freeswan-regress-eng.sh should have the following variables
39 # defined. This should be the only local configuration required.
41 # KERNPOOL=/abigail/kernel/linux-2.4.17
42 # UMLPATCH=/abigail/user-mode-linux/uml-patch-2.4.17-4.bz2
43 # BASICROOT=/abigail/user-mode-linux/root-6.0
44 # SHAREDIR=${BASICROOT}/usr/share
46 # Please see doc/umltesting.html for details on filling in these variables.
49 if [ -f $HOME/freeswan-regress-env.sh ]
51 cat $HOME/freeswan-regress-env.sh >>$umlsetup
52 . $HOME/freeswan-regress-env.sh
55 echo "FREESWANDIR=\$BUILDTOP" >>$umlsetup
56 echo "REGULARHOSTS='sunrise sunset nic'" >>$umlsetup
57 echo "FREESWANHOSTS='east west japan'" >>$umlsetup
59 # setup regression test recording area.
60 REGRESSRESULTS=${REGRESSTREE}/${BRANCH}/${TODAY} export REGRESSRESULTS
61 mkdir -p ${REGRESSRESULTS}
63 perl -e 'print time()."\n";' >${REGRESSRESULTS}/datestamp
65 cd $BUILDSPOOL/freeswan && make check
67 perl $BUILDSPOOL/freeswan/testing/utils/regress-summarize-results.pl $REGRESSRESULTS