aboutsummaryrefslogtreecommitdiffstats
path: root/testing/peek/fix-parallel-build.patch
blob: 727eb4cf1e02e22168bc8b383551a8e295c09cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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})