]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Reenable .ii tests
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 12 Dec 2009 20:46:36 +0000 (21:46 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 5 Jan 2010 17:53:03 +0000 (18:53 +0100)
Hopefully, it's OK to require a working C++ installation to run the tests.

test.sh

diff --git a/test.sh b/test.sh
index ce48caf0e9b73630e8cd63a6942ee1c7610dc2c2..da9ff3798a6632b4bf5f3b434e384ed39ffef155 100755 (executable)
--- 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`