blob: 881494a3543e426b4227b539787626a2e7141d13 [file] [log] [blame]
Patrick Williamsf52e3dd2024-01-26 13:04:43 -06001From 738e73b386352fd90f1f26cc1ee75427cf4dc23b 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
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060014index e738eb3..dab17dd 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015--- a/Makefile.am
16+++ b/Makefile.am
Patrick Williams169d7bc2024-01-05 11:33:25 -060017@@ -710,6 +710,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