c88746d2da
I move all of the core tests into the core/ directory to keep them together. Gui unit tests will be put in new directories. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
43 lines
893 B
Python
43 lines
893 B
Python
#!/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")
|