From 1eeae4015bca728160f651f781d73851cc4c43ae Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 11 Apr 2017 17:19:21 +0200 Subject: Don't include tests together with modules We have tests that go through the modules directory --- test-modules/test_execute_and_compare.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test-modules/test_execute_and_compare.cmake (limited to 'test-modules') diff --git a/test-modules/test_execute_and_compare.cmake b/test-modules/test_execute_and_compare.cmake new file mode 100644 index 00000000..0f325d95 --- /dev/null +++ b/test-modules/test_execute_and_compare.cmake @@ -0,0 +1,11 @@ +string(REPLACE / ";" processedArgs "${ARG_UNPARSED_ARGUMENTS}") + +execute_process(COMMAND qmlplugindump -nonrelocatable ${processedArgs} ${KDE_INSTALL_QMLDIR} > ${CMAKE_CURRENT_SOURCE_DIR}/plugins.qmltypes RESULT_VARIABLE code) +if(code) + message(FATAL_ERROR "Could not call qmlplugindump successfully. Exited with code ${code}") +endif() + +execute_process(COMMAND diff -I "//*" ${INPUT} ${CMAKE_CURRENT_SOURCE_DIR}/plugins.qmltypes RESULT_VARIABLE code OUTPUT_VARIABLE out) +if(code) + message(FATAL_ERROR "both plugin dumps differ:\n${out}") +endif() -- cgit v1.2.1