summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake
blob: 547852d77938908968b0fdfc1520f90f11cca5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if(NOT CPackComponentsDEB_SOURCE_DIR)
  message(FATAL_ERROR "CPackComponentsDEB_SOURCE_DIR not set")
endif()

include(${CPackComponentsDEB_SOURCE_DIR}/RunCPackVerifyResult.cmake)


set(actual_output)
run_cpack(actual_output
          CPack_output
          CPack_error
          EXPECT_FAILURE
          CONFIG_ARGS ${config_args}
          CONFIG_VERBOSE ${config_verbose})

string(REGEX MATCH "dpkg-shlibdeps: error: (cannot|couldn't) find library\n[ \t]*libmyprivatelib.so.1 needed by ./usr/bin/mylibapp3" expected_error ${CPack_error})
if(NOT expected_error)
  message(FATAL_ERROR "Did not get the expected error-message!")
endif()