ocarina/tests/core/Sconscript
Anna Schumaker 2276a44a07 tests/core: Update string test to the new framework
I converted the test to the new framework, and I introduced a new
"test.h" file in the source directory to help with mixing C and C++
code.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-10-07 08:19:49 -04:00

40 lines
798 B
Python

#!/usr/bin/python
import os
Import("UnitTest")
def CoreTest(name, source):
src_list = [ source ]
if os.path.exists("../../core/%s" % source):
src_list += [ "../../core/%s" % source ]
run = UnitTest("core/%s" % name, src_list)
Alias("tests/core", run)
return run
res = [ CoreTest("version", "version.c") ]
res += [ CoreTest("string", "string.cpp") ]
Return("res")
#test( "file" )
#test( "database" )
#test( "index" )
#test( "filter" )
#test( "idle" )
#
#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" )