runtest.sh 589 Bytes
Newer Older
1
2
3
4
5
#!/bin/sh

#
# Prepares, builds and tests 
#
6
SRCDIR=$PWD
7
if test -z "${IOFWD_SRCDIR}" ; then
8
   echo "Need IOFWD_SRCDIR ! (to find configoptions)"
9
10
11
12
   exit 1
fi


13
14
SCRIPTDIR="${IOFWD_SRCDIR}/scripts"
CONFIGFILE="${SCRIPTDIR}/configoptions.$(hostname)"
15
if test -r "${CONFIGFILE}" ; echo "config file is $CONFIGFILE" ; then
16
17
   source  "${CONFIGFILE}" ; echo "configure options = $CONFIGURE_OPTIONS" 
else echo "could not use config file"
18
19
fi

20
OLDDIR="${PWD}"
21
cd ${SRCDIR}
22
23
./prepare || exit 1

24
25
26
${SRCDIR}/configure ${DISTCHECK_CONFIGURE_FLAGS} || exit 2
make distcheck || exit 3
cd "${OLDDIR}"
27

28