ocarina/tests/core/Sconscript

41 lines
978 B
Plaintext
Raw Normal View History

#!/usr/bin/python
import os
Import("env", "UnitTest")
objs = []
def CoreTest(name, source):
global objs
if os.path.exists("../../core/%s" % source):
objs += [ env.Object("../../core/%s" % source) ]
run = UnitTest("core/%s" % name, [ source ] + objs)
Alias("tests/core", run)
return run
res = [ CoreTest("version", "version.c") ]
res += [ CoreTest("string", "string.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") ]
Return("res")
#
#test( "tags/generic" )
#test( "tags/artist" )
#test( "tags/album" )
#test( "tags/genre" )
#test( "tags/library" )
#test( "tags/track" )
#
#test( "random" )
#
#objs += [ get_test_obj("tags/tags", "core") ]
#test( "queue" )
#test_env.UsePackage("taglib")
#test( "library" )
#test( "playlist" )
#test( "deck" )
#test( "audio" )