blob: 7c47cc1a1ec2d916389c2c994654a83894a4b593 [file] [log] [blame]
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06001From a657fddd13a2e756b0af315301f1c44081e2f668 Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 1 Apr 2016 17:07:34 +0300
4Subject: [PATCH] tests: add a target for building tests without running them
5
6Upstream-Status: Inappropriate [oe specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06008
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05009---
10 Makefile.am | 3 +++
11 1 file changed, 3 insertions(+)
12
13diff --git a/Makefile.am b/Makefile.am
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060014index 7041f8e..25966cd 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015--- a/Makefile.am
16+++ b/Makefile.am
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060017@@ -594,6 +594,9 @@ endif
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018 TESTS = $(unit_tests)
19 AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
20
21+# This allows building tests without running them
22+buildtests: $(TESTS)
23+
24 if DBUS_RUN_SESSION
25 AM_TESTS_ENVIRONMENT += dbus-run-session --
26 endif