]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Add and fix cpp1 suite
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 30 Jan 2018 21:07:52 +0000 (22:07 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 30 Jan 2018 21:09:27 +0000 (22:09 +0100)
I messed up when adapting Anders's work in f58741b5 to the new test
layout.

test/run
test/suites/cpp1.bash

index 10214b73d3db52c63be2e2c3b90f1bcc8d60d916..f33237bbbf3b9180ddaea1fdc660abfa8559c793 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -343,6 +343,7 @@ fi
 all_suites="
 base
 nocpp2
+cpp1
 multi_arch
 serialize_diagnostics
 debug_prefix_map
index 6d07dcb02ec022da10368cf69a5c4d4a9e676836..965d46678425d2c16480cd3aa785dc7ccb9754f2 100644 (file)
@@ -1,12 +1,12 @@
 SUITE_cpp1_PROBE() {
     touch test.c
     if $COMPILER_TYPE_GCC; then
-        if ! $UNCACHED_COMPILE -E -fdirectives-only test.c >&/dev/null; then
+        if ! $REAL_COMPILER -E -fdirectives-only test.c >&/dev/null; then
             echo "-fdirectives-only not supported by compiler"
             return
         fi
     elif $COMPILER_TYPE_CLANG; then
-        if ! $UNCACHED_COMPILE -E -frewrite-includes test.c >&/dev/null; then
+        if ! $REAL_COMPILER -E -frewrite-includes test.c >&/dev/null; then
             echo "-frewrite-includes not supported by compiler"
             return
         fi
@@ -38,7 +38,7 @@ SUITE_cpp1() {
     # -------------------------------------------------------------------------
     TEST "Base case"
 
-    $UNCACHED_COMPILE $cpp_flag -c -o reference_test1.o test1.c
+    $REAL_COMPILER $cpp_flag -c -o reference_test1.o test1.c
 
     $CCACHE_COMPILE $cpp_flag -c test1.c
     expect_stat 'cache hit (direct)' 0