2c5b14c7f3
Use db_init() and db_deinit() instead. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
24 lines
709 B
Python
24 lines
709 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") ]
|
|
res += [ TagTest("artist", "artist.cpp") ]
|
|
res += [ TagTest("album", "album.cpp") ]
|
|
res += [ TagTest("genre", "genre.cpp") ]
|
|
res += [ TagTest("library", "library.cpp") ]
|
|
|
|
core_objs += [ env.Object("../../../core/tags/tags.cpp") ]
|
|
res += [ TagTest("track", "track.cpp") ]
|
|
|
|
Return("res")
|