) >> "$outfile"
}
-
getstat() {
stat="$1"
value=`$CCACHE -s | grep "$stat" | cut -c34-`
CCACHE_DISABLE=1 $COMPILER -c test1.c -o reference_test1.o
compare_file reference_test1.o test1.o
-
testname="cache-size"
for f in *.c; do
$CCACHE_COMPILE -c $f
CCACHE_DISABLE=1 $COMPILER -c -MD test.c -o reference_test.o
compare_file reference_test.o test.o
-
rm -f test.d
$CCACHE $COMPILER -c -MD test.c
######################################################################
# main program
+if pwd | grep '[^A-Za-z0-9/.,=_%+-]' >/dev/null 2>&1; then
+ cat <<EOF
+Error: The test suite doesn't work in directories with whitespace or other
+funny characters in the name. Sorry.
+EOF
+ exit 1
+fi
+
suites="$*"
if [ -n "$CC" ]; then
COMPILER="$CC"
CCACHE=`pwd`/ccache
fi
-
# save the type of compiler because some test may not work on all compilers
COMPILER_TYPE_CLANG=0
COMPILER_TYPE_GCC=0
;;
esac
-
TESTDIR=testdir.$$
rm -rf $TESTDIR
mkdir $TESTDIR