From 8ad45ebef3bbaadea542c37a0c36e6e64c8a63cf Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Fri, 11 Dec 2015 14:17:46 -0500 Subject: [PATCH] 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 --- tests/core/tags/Sconscript | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/core/tags/Sconscript b/tests/core/tags/Sconscript index c6520d29..70f34edb 100644 --- a/tests/core/tags/Sconscript +++ b/tests/core/tags/Sconscript @@ -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")