From: Joel Rosdahl Date: Sat, 12 Dec 2009 20:46:36 +0000 (+0100) Subject: Reenable .ii tests X-Git-Tag: v3.0pre0~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84fc7d1ce515cbeb783d254769b0721f8b264a86;p=thirdparty%2Fccache.git Reenable .ii tests Hopefully, it's OK to require a working C++ installation to run the tests. --- diff --git a/test.sh b/test.sh index ce48caf0e..da9ff3798 100755 --- a/test.sh +++ b/test.sh @@ -237,18 +237,15 @@ base_tests() { checkstat 'cache hit (preprocessed)' 10 checkstat 'cache miss' 38 - # removed these tests as some compilers (including newer versions of gcc) - # determine which language to use based on .ii/.i extension, and C++ may - # not be installed -# testname="direct .ii file" -# mv test1.i test1.ii -# $CCACHE_COMPILE -c test1.ii -# checkstat 'cache hit (preprocessed)' 10 -# checkstat 'cache miss' 39 - -# $CCACHE_COMPILE -c test1.ii -# checkstat 'cache hit (preprocessed)' 11 -# checkstat 'cache miss' 39 + testname="direct .ii file" + mv test1.i test1.ii + $CCACHE_COMPILE -c test1.ii + checkstat 'cache hit (preprocessed)' 10 + checkstat 'cache miss' 39 + + $CCACHE_COMPILE -c test1.ii + checkstat 'cache hit (preprocessed)' 11 + checkstat 'cache miss' 39 testname="stderr-files" num=`find $CCACHE_DIR -name '*.stderr' | wc -l`