Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 1 | From a657fddd13a2e756b0af315301f1c44081e2f668 Mon Sep 17 00:00:00 2001 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Fri, 1 Apr 2016 17:07:34 +0300 |
| 4 | Subject: [PATCH] tests: add a target for building tests without running them |
| 5 | |
| 6 | Upstream-Status: Inappropriate [oe specific] |
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 8 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 9 | --- |
| 10 | Makefile.am | 3 +++ |
| 11 | 1 file changed, 3 insertions(+) |
| 12 | |
| 13 | diff --git a/Makefile.am b/Makefile.am |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 14 | index 7041f8e..25966cd 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | --- a/Makefile.am |
| 16 | +++ b/Makefile.am |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 17 | @@ -594,6 +594,9 @@ endif |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 18 | 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 |