summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-03-08 19:22:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-03-08 19:22:28 (GMT)
commit5148d0b92d8e5b6ff3061f1e0a3d1bc4b00a0f8f (patch)
tree055826d35754aa6dd07d07db980bfa7fb8830b9f /Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
parent9c1344f33bde890f7cec13962f477a914ae716c5 (diff)
parentdc9965f9a05f23615300c6ffa00b1b35b8afd58e (diff)
downloadCMake-5148d0b92d8e5b6ff3061f1e0a3d1bc4b00a0f8f.zip
CMake-5148d0b92d8e5b6ff3061f1e0a3d1bc4b00a0f8f.tar.gz
CMake-5148d0b92d8e5b6ff3061f1e0a3d1bc4b00a0f8f.tar.bz2
Merge topic 'CPackRPM-enableCPackTests'
dc9965f CPackRPM do not run test if build dir contains space e4d4dfc CPackRPM activate CPackRPM test on Linux systems where rpmbuild is found
Diffstat (limited to 'Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake')
-rw-r--r--Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
index e797b7c..1fac232 100644
--- a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
+++ b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
@@ -50,6 +50,23 @@ if(CPackGen MATCHES "ZIP")
if (${CPackComponentWay} STREQUAL "AllGroupsInOne")
set(expected_count 1)
endif (${CPackComponentWay} STREQUAL "AllGroupsInOne")
+elseif (CPackGen MATCHES "RPM")
+ set(expected_file_mask "${CPackComponentsForAll_BINARY_DIR}/MyLib-*.rpm")
+ if (${CPackComponentWay} STREQUAL "default")
+ set(expected_count 1)
+ endif(${CPackComponentWay} STREQUAL "default")
+ if (${CPackComponentWay} STREQUAL "OnePackPerGroup")
+ set(expected_count 2)
+ endif (${CPackComponentWay} STREQUAL "OnePackPerGroup")
+ if (${CPackComponentWay} STREQUAL "IgnoreGroup")
+ set(expected_count 4)
+ endif (${CPackComponentWay} STREQUAL "IgnoreGroup")
+ if (${CPackComponentWay} STREQUAL "AllInOne")
+ set(expected_count 1)
+ endif (${CPackComponentWay} STREQUAL "AllInOne")
+ if (${CPackComponentWay} STREQUAL "AllGroupsInOne")
+ set(expected_count 1)
+ endif (${CPackComponentWay} STREQUAL "AllGroupsInOne")
endif(CPackGen MATCHES "ZIP")
# clean-up previously CPack generated files