-# #!/bin/bash
+#!/bin/sh
#
# Run specific build tests for a given OS environment.
#
-if test -f "./test-suite/buildtests/os-${1}.opts" ; then
- echo "TESTING: ${1}"
- ./test-suite/buildtest.sh ./test-suite/buildtests/os-${1}
+tmp="${1}"
+if test -x "./test-suite/buildtests/os-${tmp}.opts" ; then
+ echo "TESTING: ${tmp}"
+ ./test-suite/buildtest.sh ./test-suite/buildtests/os-${tmp}
fi
#
#
for f in `ls -1 ./test-suite/buildtests/layer*.opts` ; do
- echo "TESTING: ${f/.opts}"
- ./test-suite/buildtest.sh ${f/.opts}
+ arg=`echo "${f}" | sed s/\\.opts//`
+ echo "TESTING: ${arg}"
+ ./test-suite/buildtest.sh "${arg}"
done
-# #!/bin/bash
+#!/bin/sh -ex
#
# Configure and run a test build against any given set of configure options
# or compile-time flags.
log=`echo "${dist}" | sed s/..test-suite.buildtests.//g `
# ... and send everything there...
-(
+{
-if test -f ${dist/.opts}.opts ; then
- echo "BUILD: ${dist/.opts}.opts"
- . ./${dist/.opts}.opts
+if test -x ${dist%%.opts}.opts ; then
+ echo "BUILD: ${dist%%.opts}.opts"
+ . ./${dist%%.opts}.opts
else
echo "BUILD: DEFAULT"
OPTS=""
fi
-if test -f ${dist/.opts/}.flags ; then
-# echo "DEBUG: ${dist/.opts}.flags"
- FLAGS=`cat ./${dist}.flags`
+if test -f ${dist%%.opts}.flags ; then
+# echo "DEBUG: ${dist%%.opts}.flags"
+ FLAGS=`cat ./${dist%%.opts}.flags`
# else nothing set for flags.
fi
make check &&
make
-
-) 2>&1 > ./buildtest_${log}.log
+} 2>&1 > ./buildtest_${log}.log
# do not build any of the install's ...