aboutsummaryrefslogtreecommitdiffstats
path: root/testing/peek/fix-parallel-build.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-06-20 12:41:38 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-20 08:13:24 -0300
commitadec9d5314ba33289cea3473bb348f2a9a56ece6 (patch)
tree478b40e159d1339aaa7e0fb00d0b19ef64a6c4f2 /testing/peek/fix-parallel-build.patch
parent22167855cb4c705576d6a4897653c54e83160212 (diff)
downloadaports-adec9d5314ba33289cea3473bb348f2a9a56ece6.tar.bz2
aports-adec9d5314ba33289cea3473bb348f2a9a56ece6.tar.xz
testing/peek: new aport
Diffstat (limited to 'testing/peek/fix-parallel-build.patch')
-rw-r--r--testing/peek/fix-parallel-build.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/peek/fix-parallel-build.patch b/testing/peek/fix-parallel-build.patch
new file mode 100644
index 0000000000..727eb4cf1e
--- /dev/null
+++ b/testing/peek/fix-parallel-build.patch
@@ -0,0 +1,53 @@
+From: Boyuan Yang <073plan@gmail.com>
+Date: Wed, 13 Jun 2018 18:07:42 +0800
+Subject: tests: Force build tests after main executable target
+
+---
+ tests/CMakeLists.txt | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 23a4db3..087d0ca 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -17,6 +17,10 @@ add_test(
+ test-desktop-integration
+ ${PROJECT_NAME}-test-desktop-integration)
+
++add_dependencies(
++ ${PROJECT_NAME}-test-desktop-integration
++ ${PROJECT_NAME})
++
+ # /utils/
+ vala_precompile(VALA_TEST_UTILS_C
+ test-utils.vala
+@@ -34,6 +38,10 @@ add_test(
+ test-utils
+ ${PROJECT_NAME}-test-utils)
+
++add_dependencies(
++ ${PROJECT_NAME}-test-utils
++ ${PROJECT_NAME})
++
+ # /screen-recorder/recording-area/
+ vala_precompile(VALA_TEST_RECORDING_AREA_C
+ screen-recorder/test-recording-area.vala
+@@ -50,6 +58,10 @@ add_test(
+ screen-recorder-test-recording-area
+ ${PROJECT_NAME}-screen-recorder-test-recording-area)
+
++add_dependencies(
++ ${PROJECT_NAME}-screen-recorder-test-recording-area
++ ${PROJECT_NAME})
++
+ # /screen-recorder/cli-screen-recorder/
+ vala_precompile(VALA_TEST_COMMAND_LINE_SCREEN_RECORDER_C
+ screen-recorder/test-cli-screen-recorder.vala
+@@ -79,3 +91,7 @@ add_executable(
+ add_test(
+ test-screen-recorder-cli-screen-recorder
+ ${PROJECT_NAME}-test-screen-recorder-cli-screen-recorder)
++
++add_dependencies(
++ ${PROJECT_NAME}-test-screen-recorder-cli-screen-recorder
++ ${PROJECT_NAME})