43 lines
893 B
Plaintext
43 lines
893 B
Plaintext
|
#!/usr/bin/python
|
||
|
|
||
|
Import("OTest", "TestList")
|
||
|
|
||
|
|
||
|
class CoreTest(OTest):
|
||
|
Objs = []
|
||
|
|
||
|
def __init__(self, src, pkg = None, extra = None):
|
||
|
OTest.__init__(self, src, pkg)
|
||
|
if extra != None:
|
||
|
self.add_object(extra)
|
||
|
|
||
|
def add_object(self, obj):
|
||
|
path = "../../core/%s" % obj
|
||
|
CoreTest.Objs += [ OTest.Env.Object("%s-core" % obj, path) ]
|
||
|
|
||
|
def get_program(self):
|
||
|
self.add_object(self.Src)
|
||
|
return OTest.Env.Program(self.Name, [ self.Src ] + CoreTest.Objs)
|
||
|
|
||
|
|
||
|
res = TestList("core", [
|
||
|
|
||
|
OTest ("version.cpp"),
|
||
|
CoreTest("file.cpp"),
|
||
|
CoreTest("database.cpp"),
|
||
|
CoreTest("index.cpp"),
|
||
|
CoreTest("filter.cpp"),
|
||
|
CoreTest("idle.cpp"),
|
||
|
CoreTest("tags.cpp", "taglib"),
|
||
|
CoreTest("random.cpp"),
|
||
|
CoreTest("queue.cpp", extra = "callback.cpp"),
|
||
|
CoreTest("library.cpp"),
|
||
|
CoreTest("playlist.cpp"),
|
||
|
CoreTest("deck.cpp"),
|
||
|
CoreTest("driver.cpp"),
|
||
|
CoreTest("audio.cpp"),
|
||
|
|
||
|
]).prepare()
|
||
|
|
||
|
Return("res")
|