From 972eb3c2aacd02307a7abb213e11ca1c2035108e Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 3 Mar 2014 12:09:51 -0500 Subject: [PATCH] tests: Only enable CONFIG_TEST if we are building tests Signed-off-by: Anna Schumaker --- tests/Sconscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Sconscript b/tests/Sconscript index f7413fc9..e3c2c035 100644 --- a/tests/Sconscript +++ b/tests/Sconscript @@ -1,7 +1,11 @@ #!/usr/bin/python + +import sys Import("env") -env.Append( CCFLAGS = [ "-DCONFIG_TEST" ] ) +if sys.argv.count("tests") > 0: + env.Append( CCFLAGS = [ "-DCONFIG_TEST" ] ) + src = SConscript("src/Sconscript") tests = [ "version", "file" ]