summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-26 09:55:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-26 09:55:37 (GMT)
commite67eb946a93f2217291e1dd27e287e1b1f2f030a (patch)
tree19ac040223e833b25b8485055cf47eaf7179e4d8 /BuildTools/SCons
parentc2886c9ff6152130e2adb006f84268f972e629cc (diff)
downloadswift-contrib-e67eb946a93f2217291e1dd27e287e1b1f2f030a.zip
swift-contrib-e67eb946a93f2217291e1dd27e287e1b1f2f030a.tar.bz2
Moving tests around.
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/Tools/Test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/BuildTools/SCons/Tools/Test.py b/BuildTools/SCons/Tools/Test.py
index 883da45..40eaeb1 100644
--- a/BuildTools/SCons/Tools/Test.py
+++ b/BuildTools/SCons/Tools/Test.py
@@ -16,7 +16,12 @@ def generate(env) :
env.Command("**dummy**", target,
SCons.Action.Action(ignore_prefix + env.get("TEST_RUNNER", "") + cmd + " " + params, cmdstr = "$TESTCOMSTR"))
+ def registerScriptTests(env, scripts, name, type) :
+ if env["TEST_TYPE"] == "all" or env["TEST_TYPE"] == type :
+ pass
+
env.AddMethod(registerTest, "Test")
+ env.AddMethod(registerScriptTests, "ScriptTests")
def exists(env) :
return True