tests/core/tags: Don't pass source to TagTest
We can use the test name to find the source file. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
850af16c87
commit
8ad45ebef3
|
@ -3,21 +3,21 @@ Import("env", "CoreTest", "core_objs", "testing_group")
|
|||
|
||||
res = []
|
||||
|
||||
def TagTest(name, source):
|
||||
run = CoreTest("tags/%s" % name, source)
|
||||
def TagTest(name):
|
||||
run = CoreTest("tags/%s" % name, "%s.c" % name)
|
||||
Alias("tests/core/tags", run)
|
||||
if len(res) > 0 and testing_group([ "tests/core/tags" ]):
|
||||
Depends(run, res[-1])
|
||||
return run
|
||||
|
||||
res += [ TagTest("album", "album.c") ]
|
||||
res += [ TagTest("artist", "artist.c") ]
|
||||
res += [ TagTest("genre", "genre.c") ]
|
||||
res += [ TagTest("library", "library.c") ]
|
||||
|
||||
env.UsePackage("taglib_c")
|
||||
res += [ TagTest("album") ]
|
||||
res += [ TagTest("artist") ]
|
||||
res += [ TagTest("genre") ]
|
||||
res += [ TagTest("library") ]
|
||||
|
||||
core_objs += [ env.Object("../../../core/tags/tags.c") ]
|
||||
|
||||
res += [ TagTest("track", "track.c") ]
|
||||
res += [ TagTest("track") ]
|
||||
|
||||
Return("res")
|
||||
|
|
Loading…
Reference in New Issue