24 lines
741 B
Python
24 lines
741 B
Python
#!/usr/bin/python
|
|
import os
|
|
Import("env", "UnitTest", "core_objs", "testing_group")
|
|
|
|
res = []
|
|
|
|
def ContainerTest(name, source):
|
|
global core_objs
|
|
if os.path.exists("../../../core/containers/%s" % source):
|
|
core_objs += [ env.Object("../../../core/containers/%s" % source) ]
|
|
run = UnitTest("core/containers/%s" % name, [ source ] + core_objs)
|
|
Alias("tests/core", run)
|
|
Alias("tests/core/containers", run)
|
|
if len(res) > 0 and testing_group(["tests/core", "tests/core/containers"]):
|
|
Depends(run, res[-1])
|
|
return run
|
|
|
|
res += [ ContainerTest("set", "set.c") ]
|
|
res += [ ContainerTest("database", "database.c") ]
|
|
res += [ ContainerTest("index", "index.c") ]
|
|
res += [ ContainerTest("queue", "queue.c") ]
|
|
|
|
Return("res")
|