diff options
author | Brad King <brad.king@kitware.com> | 2013-04-16 13:27:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-04-16 13:35:29 (GMT) |
commit | ec1ba9b0ae27a5731b98fecab648fa3edcfcffa2 (patch) | |
tree | 92bf0ea6452a8f76035dc75ecf3972e0934c8a01 /Tests/ComplexOneConfig/VarTests.cmake | |
parent | df71f968cd269854ab15147b012b6f07b1da6109 (diff) | |
download | CMake-ec1ba9b0ae27a5731b98fecab648fa3edcfcffa2.zip CMake-ec1ba9b0ae27a5731b98fecab648fa3edcfcffa2.tar.gz CMake-ec1ba9b0ae27a5731b98fecab648fa3edcfcffa2.tar.bz2 |
get_filename_component: Add explicit unit tests
Add test RunCMake.get_filename_component to cover cases of the command.
Remove redundant coverage of these cases from the "complex" tests.
Diffstat (limited to 'Tests/ComplexOneConfig/VarTests.cmake')
-rw-r--r-- | Tests/ComplexOneConfig/VarTests.cmake | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Tests/ComplexOneConfig/VarTests.cmake b/Tests/ComplexOneConfig/VarTests.cmake index 52ec1fc..70b803a 100644 --- a/Tests/ComplexOneConfig/VarTests.cmake +++ b/Tests/ComplexOneConfig/VarTests.cmake @@ -182,17 +182,3 @@ set(FOREACH_CONCAT "") foreach (INDEX a;b;c;d;e;f;g) set(FOREACH_CONCAT "${FOREACH_CONCAT}${INDEX}") endforeach() - -# -# Test FIND_FILE, FIND_PATH and various GET_FILENAME_COMPONENT combinations -# -find_file(FILENAME_VAR "VarTests.cmake" ${Complex_SOURCE_DIR}) - -get_filename_component(FILENAME_VAR_PATH ${FILENAME_VAR} PATH) -get_filename_component(FILENAME_VAR_PATH_NAME ${FILENAME_VAR_PATH} NAME) -get_filename_component(FILENAME_VAR_NAME ${FILENAME_VAR} NAME) -get_filename_component(FILENAME_VAR_EXT ${FILENAME_VAR} EXT) -get_filename_component(FILENAME_VAR_NAME_WE ${FILENAME_VAR} NAME_WE CACHE) - -find_path(PATH_VAR "cmTestConfigure.h.in" ${Complex_SOURCE_DIR}) -get_filename_component(PATH_VAR_NAME ${PATH_VAR} NAME) |