comparison ui/tests/CMakeLists.txt @ 637:be30d50bc4f0

Add remaining tests to check binverify functionality
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 24 Jun 2014 15:24:09 +0200
parents 2fd4f9980a2a
children 2c69298b4188
comparison
equal deleted inserted replaced
636:2fd4f9980a2a 637:be30d50bc4f0
79 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.pem 79 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.pem
80 -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key 80 -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key
81 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe 81 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe
82 -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-signed.exe 82 -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-signed.exe
83 ) 83 )
84 add_custom_command(
85 TARGET binverifytest
86 POST_BUILD
87 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.pem
88 -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.key
89 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe
90 -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-other-key.exe
91 )
92 add_custom_command(
93 TARGET binverifytest
94 POST_BUILD
95 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.pem
96 -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.key
97 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe
98 -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-other-cert.exe
99 )
100 add_custom_command(
101 TARGET binverifytest
102 POST_BUILD
103 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.pem
104 -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key
105 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe
106 -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-invalid.exe &&
107 ${CMAKE_STRIP} ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-invalid.exe
108 )
84 endif() 109 endif()
85 else () 110 else ()
86 add_custom_test (binverifytest.cpp "") 111 add_custom_test (binverifytest.cpp "")
87 endif () 112 endif ()
88 113

http://wald.intevation.org/projects/trustbridge/