ocarina/tests/core/tags/Sconscript

16 lines
423 B
Python

#!/usr/bin/python
import os
Import("env", "UnitTest", "core_objs")
def TagTest(name, source):
global core_objs
if os.path.exists("../../../core/tags/%s" % source):
core_objs += [ env.Object("../../../core/tags/%s" % source) ]
run = UnitTest("core/tags/%s" % name, [ source ] + core_objs)
Alias("tests/core", run)
Alias("tests/core/tags", run)
return run
res = [ TagTest("generic", "generic.cpp") ]
Return("res")