gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 2/2] Makes testclean more complete and effective.


From: Fred Wright
Subject: [gpsd-dev] [PATCH 2/2] Makes testclean more complete and effective.
Date: Fri, 26 Feb 2016 18:48:29 -0800

This replaces the hard-coded (and incomplete) list of test executables
to remove with a list derived from testprogs.  It also adds the
corresponding object files to the list.

TESTED:
Verified that the 'check' works properly, with more complete cleanup.
---
 SConstruct | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index e700a5d..f7036ba 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1723,8 +1723,12 @@ flocktest = Utility("flocktest", [], "cd devtools; 
./flocktest " + gitrepo)
 # Run all normal regression tests
 describe = Utility('describe', [],
                    ['@echo "Run normal regression tests for %s..."' % 
(rev.strip(),)])
+
+# Delete all test programs
+test_exes = [str(p) for p in Flatten(testprogs)]
+test_objs = [p + '.o' for p in test_exes]
 testclean = Utility('testclean', [],
-                    'rm -f test_bits test_geoid test_json test_libgps 
test_matrix test_mktime test_packet')
+                    'rm -f %s' % ' '.join(test_exes + test_objs))
 
 test_nondaemon = [
     describe,
-- 
2.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]