ocarina/tests/core/Sconscript

37 lines
930 B
Plaintext
Raw Normal View History

#!/usr/bin/python
import os
Import("env", "UnitTest")
core_objs = []
def CoreTest(name, source):
global core_objs
if os.path.exists("../../core/%s" % source):
core_objs += [ env.Object("../../core/%s" % source) ]
run = UnitTest("core/%s" % name, [ source ] + core_objs)
Alias("tests/core", run)
return run
Export("core_objs")
res = [ CoreTest("version", "version.c") ]
res += [ CoreTest("string", "string.cpp") ]
res += [ CoreTest("random", "random.cpp") ]
res += [ CoreTest("file", "file.cpp") ]
res += [ CoreTest("database", "database.cpp") ]
res += [ CoreTest("index", "index.cpp") ]
res += [ CoreTest("filter", "filter.cpp") ]
res += [ CoreTest("idle", "idle.cpp") ]
res += SConscript("tags/Sconscript")
res += [ CoreTest("queue", "queue.cpp") ]
Return("res")
#
#test_env.UsePackage("taglib")
#test( "library" )
#test( "playlist" )
#test( "deck" )
#test( "audio" )