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:
Anna Schumaker 2015-12-11 14:17:46 -05:00
parent 850af16c87
commit 8ad45ebef3
1 changed files with 8 additions and 8 deletions

View File

@ -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")