|
From: | Jon Schlueter |
Subject: | Re: [gpsd-dev] [PATCH 3/3] Adds 'build-tests' and 'build-all' targets. |
Date: | Thu, 3 Mar 2016 23:09:11 -0500 |
The 'build-tests' target builds all tests listed in testprogs,
including ones that aren't actually run as part of 'check'. This can
be used to verify that tests build correctly.
The 'build-all' target combines the default 'build' target with
'build-tests', thereby buildimg all programs.
This change also removes the redundant 'test_timespec' item from the
'test_nondaemon' list, since its build is already implied as a
dependency of 'timespec_regress'.
TESTED:
Verified that the two new targets build as expected. Also verified
that building 'timespec-regress' builds its test as expected.
---
SConstruct | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/SConstruct b/SConstruct
index 17bfdfc..9e17dfd 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1764,7 +1764,6 @@ test_nondaemon = [
time_regress,
unpack_regress,
json_regress,
- test_timespec,
timespec_regress,
]
@@ -1774,6 +1773,8 @@ env.Alias('test-nondaemon', test_nondaemon)
env.Alias('test-noclean', test_noclean)
check = env.Alias('check', test_noclean + [testclean] )
env.Alias('testregress', check)
+env.Alias('build-tests', testprogs)
+env.Alias('build-all', build + testprogs)
# Remove all shared-memory segments. Normally only needs to be run
# when a segment size changes.
--
2.7.2
[Prev in Thread] | Current Thread | [Next in Thread] |