summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2015-11-03 17:18:35 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2015-11-03 17:18:35 (GMT)
commit341cd934897b3e37319b978113a1fdf9bea21c6d (patch)
tree96cc307f9eb166f151cd2cc967ca46c64d35181a /Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
parentb87bed0ff6d724a91bbe5ee97b5608eed588d1af (diff)
downloadCMake-341cd934897b3e37319b978113a1fdf9bea21c6d.zip
CMake-341cd934897b3e37319b978113a1fdf9bea21c6d.tar.gz
CMake-341cd934897b3e37319b978113a1fdf9bea21c6d.tar.bz2
CPackDeb: ctest tests for compression scheme leak
Test that changing compression of debian package content does not affect DEBIAN/ files which must be gzipped
Diffstat (limited to 'Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake')
-rw-r--r--Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake b/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
index bf9f81d..b4e567c 100644
--- a/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
+++ b/Tests/CPackComponentsDEB/RunCPackVerifyResult.cmake
@@ -86,7 +86,7 @@ function(run_lintian lintian_output)
message(FATAL_ERROR "error: run_lintian needs FILENAME to be set")
endif()
- # run lintian
+ # run dpkg-deb
execute_process(COMMAND ${LINTIAN_EXECUTABLE} ${run_lintian_deb_FILENAME}
WORKING_DIRECTORY "${CPACK_TEMPORARY_DIRECTORY}"
OUTPUT_VARIABLE LINTIAN_OUTPUT
@@ -167,6 +167,10 @@ function(run_dpkgdeb dpkg_deb_output)
ERROR_VARIABLE DPKGDEB_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE )
+ if(NOT ("${DPKGDEB_RESULT}" EQUAL "0"))
+ message(FATAL_ERROR "Error '${DPKGDEB_RESULT}' returned by dpkg-deb: '${DPKGDEB_ERROR}'")
+ endif()
+
set(${dpkg_deb_output} "${DPKGDEB_OUTPUT}" PARENT_SCOPE)
else()
message(FATAL_ERROR "run_dpkgdeb called without dpkg-deb executable being present")