From: Joel Rosdahl Date: Tue, 30 Jan 2018 21:07:52 +0000 (+0100) Subject: test: Add and fix cpp1 suite X-Git-Tag: v3.4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cde23924b132b95f8ee7ba9328f5e2b21acaa5f;p=thirdparty%2Fccache.git test: Add and fix cpp1 suite I messed up when adapting Anders's work in f58741b5 to the new test layout. --- diff --git a/test/run b/test/run index 10214b73d..f33237bbb 100755 --- a/test/run +++ b/test/run @@ -343,6 +343,7 @@ fi all_suites=" base nocpp2 +cpp1 multi_arch serialize_diagnostics debug_prefix_map diff --git a/test/suites/cpp1.bash b/test/suites/cpp1.bash index 6d07dcb02..965d46678 100644 --- a/test/suites/cpp1.bash +++ b/test/suites/cpp1.bash @@ -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