[ntpsec-main commit] Execute the test binary with the path to data files.

Amar Takhar amar at ntpsec.org
Fri Nov 13 03:40:36 UTC 2015


Module:    ntpsec-main
Branch:    master
Commit:    8310c7c30ec604e5b8bd816760ece2b81f6a5310
Changeset: http://git.ntpsec.org//commit/?id=8310c7c30ec604e5b8bd816760ece2b81f6a5310

Author:    Amar Takhar <verm at darkbeer.org>
Date:      Thu Nov 12 22:40:19 2015 -0500

Execute the test binary with the path to data files.

---

 tests/wscript | 2 +-
 wscript       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/wscript b/tests/wscript
index 823f977..29f0800 100644
--- a/tests/wscript
+++ b/tests/wscript
@@ -33,4 +33,4 @@ def build(ctx):
         source      = test_source,
 	)
 
-	ctx.env.TEST_BIN += ["%s/tests/%s" % (bldnode, tg.target)]
+	ctx.env.TEST_BIN += [("%s/tests/%s" % (bldnode, tg.target), "%s/tests/ntpdig/data/" % srcnode)]
diff --git a/wscript b/wscript
index c851b4b..82e0caa 100644
--- a/wscript
+++ b/wscript
@@ -130,10 +130,10 @@ def build(ctx):
 
 
 	if ctx.cmd == "check":
-		for bin in ctx.env.TEST_BIN:
+		for bin, args in ctx.env.TEST_BIN:
 
 			ctx(
-				rule	= bin,
+				rule	= "%s %s" % (bin, args),
 				shell	= True
 			)
 



More information about the vc mailing list