mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 01:35:13 +03:00
53 lines
1.5 KiB
Diff
53 lines
1.5 KiB
Diff
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})
|