summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2016-03-03 18:18:35 -0800
committerJon Schlueter <jon.schlueter@gmail.com>2016-03-03 23:00:56 -0500
commita39f3e105c1db2a4bae93046503e0bed729d0c00 (patch)
treeadc6be573b85e3398b402880bfaecae019b8b7ff
parentd42f3f9d1a770a6adcbfd3d7a232206268fc2bd0 (diff)
downloadgpsd-a39f3e105c1db2a4bae93046503e0bed729d0c00.tar.gz
Adds 'build-tests' and 'build-all' targets.
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. Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 9b2085bf..edad986d 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)
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.