tests: Only enable CONFIG_TEST if we are building tests

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-03-03 12:09:51 -05:00 committed by Anna Schumaker
parent c263e0e524
commit 972eb3c2aa
1 changed files with 5 additions and 1 deletions

View File

@ -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" ]