From 3cd2e0e2d5d92266da57fabe6b4435dcf528ca1f Mon Sep 17 00:00:00 2001 From: Joseph Snyder Date: Wed, 13 Aug 2014 18:03:53 -0400 Subject: [PATCH] Tests: Fix DelphiCoverage test file selection The HTML file for the Delphi Code coverage was being found by the Dashboard coverage run of CMake itself. Switch it to be a configured file to eliminate this extra reading. --- Tests/CMakeLists.txt | 5 +++-- ...(UTCovTest.pas).html => UTCovTest(UTCovTest.pas).html.in} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename Tests/DelphiCoverage/{UTCovTest(UTCovTest.pas).html => UTCovTest(UTCovTest.pas).html.in} (100%) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 3f28c2522..ae61bca5e 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -2587,8 +2587,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release "${CMake_BINARY_DIR}/Testing/DelphiCoverage/DartConfiguration.tcl") file(COPY "${CMake_SOURCE_DIR}/Tests/DelphiCoverage/src" DESTINATION "${CMake_BINARY_DIR}/Testing/DelphiCoverage") - file(COPY "${CMake_SOURCE_DIR}/Tests/DelphiCoverage/UTCovTest(UTCovTest.pas).html" - DESTINATION "${CMake_BINARY_DIR}/Testing/DelphiCoverage") + configure_file( + "${CMake_SOURCE_DIR}/Tests/DelphiCoverage/UTCovTest(UTCovTest.pas).html.in" + "${CMake_BINARY_DIR}/Testing/DelphiCoverage/UTCovTest(UTCovTest.pas).html") add_test(NAME CTestDelphiCoverage COMMAND cmake -E chdir ${CMake_BINARY_DIR}/Testing/DelphiCoverage diff --git a/Tests/DelphiCoverage/UTCovTest(UTCovTest.pas).html b/Tests/DelphiCoverage/UTCovTest(UTCovTest.pas).html.in similarity index 100% rename from Tests/DelphiCoverage/UTCovTest(UTCovTest.pas).html rename to Tests/DelphiCoverage/UTCovTest(UTCovTest.pas).html.in