From: Bernhard Bauer Date: Mon, 24 May 2010 21:27:38 +0000 (-0700) Subject: Add test for -x compiler option. X-Git-Tag: v3.0~76^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=048e718410515085d029c31fd90077c440b00c0a;p=thirdparty%2Fccache.git Add test for -x compiler option. --- diff --git a/test.sh b/test.sh index 7c13ff5fe..9f73ad9b5 100755 --- a/test.sh +++ b/test.sh @@ -300,16 +300,21 @@ base_tests() { checkstat 'cache hit (preprocessed)' 10 checkstat 'cache miss' 38 + testname="-x" + $CCACHE_COMPILE -x c -c test1.ccc 2> /dev/null + checkstat 'cache hit (preprocessed)' 10 + checkstat 'cache miss' 39 + if [ -x /usr/bin/printf ]; then /usr/bin/printf 'char foo[] = "\xa3";\n' >cp1250.c if CCACHE_DISABLE=1 $COMPILER -c -finput-charset=cp1250 cp1250.c >/dev/null 2>&1; then testname="-finput-charset" $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c checkstat 'cache hit (preprocessed)' 10 - checkstat 'cache miss' 39 + checkstat 'cache miss' 40 $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c checkstat 'cache hit (preprocessed)' 11 - checkstat 'cache miss' 39 + checkstat 'cache miss' 40 fi fi