diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-06 14:43:21 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-06 14:43:21 +0000 |
| commit | 275680bdb74c612aa3b2726792e269400e4c8ff4 (patch) | |
| tree | 8fa6be2bf40877568f5440ba0513a57b1fb5dfb1 /tests/nonregression/checkmd5refs.cmake | |
| parent | 4d5d1f0f66b9146b81bac94b6c8a3fc4b3ff2d54 (diff) | |
[trunk] Make sure that all output files from the test suite are using a different output name
Fixes issue 271
Diffstat (limited to 'tests/nonregression/checkmd5refs.cmake')
| -rw-r--r-- | tests/nonregression/checkmd5refs.cmake | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/nonregression/checkmd5refs.cmake b/tests/nonregression/checkmd5refs.cmake index 9c1fa6ca..f94d7c09 100644 --- a/tests/nonregression/checkmd5refs.cmake +++ b/tests/nonregression/checkmd5refs.cmake @@ -19,10 +19,17 @@ #message("0: ${REFFILE}") #message("1: ${CMAKE_CURRENT_BINARY_DIR}") #message("2: ${FILENAME}") -file(GLOB globfiles "Temporary/${FILENAME}*.pgx" "Temporary/${FILENAME}*.png") +#get_filename_component(pgxfile ${pgxfullpath} NAME) +get_filename_component(OUTFILENAME_NAME ${OUTFILENAME} NAME) +string(FIND ${OUTFILENAME_NAME} "." SHORTEST_EXT_POS REVERSE) +string(SUBSTRING ${OUTFILENAME_NAME} 0 ${SHORTEST_EXT_POS} OUTFILENAME_NAME_WE) +#message("3: ${OUTFILENAME_NAME}") +#message("4: ${OUTFILENAME_NAME_WE}") +#file(GLOB globfiles "Temporary/${FILENAME}*.pgx" "Temporary/${FILENAME}*.png") +file(GLOB globfiles "Temporary/${OUTFILENAME_NAME_WE}*.pgx" "Temporary/${OUTFILENAME_NAME_WE}*.png") #message("6: ${globfiles}") if(NOT globfiles) - message(SEND_ERROR "Could not find output PGX files: ${FILENAME}") + message(SEND_ERROR "Could not find output PGX files: ${OUTFILENAME_NAME_WE}") endif() # REFFILE follow what md5sum -c would expect as input: |
