diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-11-30 17:31:42 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-11-30 17:31:42 +0000 |
| commit | 563b56e09c1b3545894c8210bbf295a1ff5aad1e (patch) | |
| tree | c5471d0f0698b667331fb9731150a7e2fb8f5554 /tests | |
| parent | 455f675806670fb095b824a2cdb99350a63eeefc (diff) | |
[trunk] fix error about the way to detect the additional test suite
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nonregression/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index 4589ddfc..966a198d 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -95,7 +95,8 @@ IF (TEST_SUITE_FILES) # Avoid to process the official test suite SET(FILE_ALREADY_READ 0) - STRING(REGEX MATCH "test_suite.ctest.in$" FILE_ALREADY_READ ${TEST_SUITE_FILE}) + GET_FILENAME_COMPONENT(TEST_SUITE_FILENAME ${TEST_SUITE_FILE} NAME) + STRING(REGEX MATCH "^test_suite.ctest.in$" FILE_ALREADY_READ ${TEST_SUITE_FILENAME}) IF(NOT FILE_ALREADY_READ) # Configure the additional test suite file: |
