From: Joel Rosdahl Date: Sat, 10 Nov 2012 10:27:51 +0000 (+0100) Subject: test: Add safeguard against running test.sh in directories with spacy names X-Git-Tag: v3.2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5cf6b3c002b7f96539758fad8d95c24ef9605b8;p=thirdparty%2Fccache.git test: Add safeguard against running test.sh in directories with spacy names --- diff --git a/test.sh b/test.sh index 924b63500..09b6d5bbc 100755 --- a/test.sh +++ b/test.sh @@ -64,7 +64,6 @@ randcode() { ) >> "$outfile" } - getstat() { stat="$1" value=`$CCACHE -s | grep "$stat" | cut -c34-` @@ -295,7 +294,6 @@ base_tests() { 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 @@ -867,7 +865,6 @@ EOF 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 @@ -2041,6 +2038,14 @@ b" ###################################################################### # main program +if pwd | grep '[^A-Za-z0-9/.,=_%+-]' >/dev/null 2>&1; then + cat <