keepGoing="yes"
shift
;;
+ --use-config-cache)
+ #environment variable will be picked up by buildtest.sh
+ cache_file=/tmp/config.cache.$$
+ export cache_file
+ shift
+ ;;
*)
break
;;
fi
}
+# if using cache, make sure to clear it up first
+if [ -n "$cache_file" -a -e "$cache_file" ]; then
+ rm $cache_file
+fi
+
# Decide what tests to run, $* contains test spec names or filenames.
# Use all knows specs if $* is empty or a special macro called 'all'.
if test -n "$*" -a "$*" != all; then
config="${1}"
base="`dirname ${0}`"
+# cache_file may be set by environment variable
+configcache=""
+if [ -n "$cache_file" ]; then
+ configcache="--cache-file=$cache_file"
+fi
+
#if we are on Linux, let's try parallelizing
if [ -z "$pjobs" -a -e /proc/cpuinfo ]; then
ncpus=`grep '^processor' /proc/cpuinfo | tail -1|awk '{print $3}'`
# above command currently encounters dependancy problems on cleanup.
#
# do not build any of the install's ...
- $base/../configure ${OPTS} 2>&1 &&
+ $base/../configure ${OPTS} ${configcache} 2>&1 &&
make ${pjobs} ${MAKETEST} 2>&1
# Remember and then explicitly return the result of the last command