Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | 58 | | |||
59 | ########### next target ############### | 59 | ########### next target ############### | ||
60 | 60 | | |||
61 | set(HelperTest_SRCS HelperTest.cpp TestHelper.cpp) | 61 | set(HelperTest_SRCS HelperTest.cpp TestHelper.cpp) | ||
62 | ecm_add_test(${HelperTest_SRCS} | 62 | ecm_add_test(${HelperTest_SRCS} | ||
63 | TEST_NAME KAuthHelperTest | 63 | TEST_NAME KAuthHelperTest | ||
64 | LINK_LIBRARIES Qt5::Test kauth_tests_static | 64 | LINK_LIBRARIES Qt5::Test kauth_tests_static | ||
65 | ) | 65 | ) | ||
66 | | ||||
67 | ########### test kauth-policy-gen ############### | ||||
68 | add_test(NAME KAuthPolicyGenTest | ||||
69 | COMMAND kauth-policy-gen ${CMAKE_SOURCE_DIR}/autotests/foo_actions.actions | ||||
70 | ${CMAKE_BINARY_DIR}/generated-foo.policy) | ||||
71 | add_test(KAuthPolicyGenTestCompare ${CMAKE_COMMAND} -E compare_files | ||||
72 | ${CMAKE_BINARY_DIR}/generated-foo.policy ${CMAKE_SOURCE_DIR}/autotests/foo.policy) | ||||
73 | |