Index: tests/runtest/test_suite-cache.shtest =================================================================== --- tests/runtest/test_suite-cache.shtest +++ tests/runtest/test_suite-cache.shtest @@ -14,8 +14,16 @@ # RUN: --cmake-define FOO=BAR \ # RUN: -D BAR=BAZ \ # RUN: &> %t.cmake-cache.log -# RUN: FileCheck --check-prefix CHECK-CACHE < %t.cmake-cache.log %s -# CHECK-CACHE: Execute: {{.*}}cmake -DCMAKE_CXX_COMPILER:FILEPATH={{.*}}/FakeCompilers/clang++-r154331 -DCMAKE_C_COMPILER:FILEPATH={{.*}}FakeCompilers/clang-r154331 -C {{.*}}/Release.cmake {{.*}}-DFOO=BAR{{.*}}-DBAR=BAZ +# RUN: FileCheck --check-prefix CHECK-CACHE1 < %t.cmake-cache.log %s +# CHECK-CACHE1: Execute: {{.*}}cmake {{(.+ )?}}-DCMAKE_CXX_COMPILER:FILEPATH={{.*}}/FakeCompilers/clang++-r154331 +# RUN: FileCheck --check-prefix CHECK-CACHE2 < %t.cmake-cache.log %s +# CHECK-CACHE2: Execute: {{.*}}cmake {{(.+ )?}}-DCMAKE_C_COMPILER:FILEPATH={{.*}}FakeCompilers/clang-r154331 +# RUN: FileCheck --check-prefix CHECK-CACHE3 < %t.cmake-cache.log %s +# CHECK-CACHE3: Execute: {{.*}}cmake {{(.+ )?}}-C {{.*}}/Release.cmake +# RUN: FileCheck --check-prefix CHECK-CACHE4 < %t.cmake-cache.log %s +# CHECK-CACHE4: Execute: {{.*}}cmake {{(.+ )?}}-DFOO=BAR +# RUN: FileCheck --check-prefix CHECK-CACHE5 < %t.cmake-cache.log %s +# CHECK-CACHE5: Execute: {{.*}}cmake {{(.+ )?}}-DBAR=BAZ # RUN: rm -rf %t.SANDBOX # Check a run of test-suite using a invalid cmake cache @@ -29,5 +37,5 @@ # RUN: --use-lit %S/Inputs/test-suite-cmake/fake-lit \ # RUN: --cmake-cache Debug \ # RUN: &> %t.cmake-cache2.err || true -# RUN: FileCheck --check-prefix CHECK-CACHE2 < %t.cmake-cache2.err %s -# CHECK-CACHE2: Could not find CMake cache file +# RUN: FileCheck --check-prefix CHECK-CACHE6 < %t.cmake-cache2.err %s +# CHECK-CACHE6: Could not find CMake cache file