diff --git a/tests/Sconscript b/tests/Sconscript index a99f8a91..a2107b2f 100644 --- a/tests/Sconscript +++ b/tests/Sconscript @@ -3,8 +3,14 @@ import sys Import("env") -if sys.argv.count("tests") > 0: - env.Append( CCFLAGS = [ "-DCONFIG_TEST" ] ) +check_depends = True + +for arg in sys.argv: + if arg.find("tests") == 0: + env.Append( CCFLAGS = [ "-DCONFIG_TEST" ] ) + if len(arg) > 5: + check_depends = False + break src = SConscript("src/Sconscript") @@ -17,8 +23,9 @@ prev = None for test in tests: t = Command("%s.out" % test, [], "./tests/%s" % test) - if prev: + if prev and (check_depends == True): Depends(t, prev) Depends(t, src) AlwaysBuild(t) + Alias("tests/%s" % test, t) prev = t