2015-08-27 09:04:21 -04:00
|
|
|
#!/usr/bin/python
|
2015-12-11 14:12:54 -05:00
|
|
|
Import("env", "CoreTest", "core_objs", "testing_group")
|
2015-12-11 11:33:39 -05:00
|
|
|
|
|
|
|
res = []
|
2015-08-27 09:04:21 -04:00
|
|
|
|
2015-12-11 14:17:46 -05:00
|
|
|
def TagTest(name):
|
2015-12-11 14:52:52 -05:00
|
|
|
run = CoreTest("tags/%s" % name)
|
2015-08-27 09:04:21 -04:00
|
|
|
Alias("tests/core/tags", run)
|
2015-12-11 14:12:54 -05:00
|
|
|
if len(res) > 0 and testing_group([ "tests/core/tags" ]):
|
2015-12-11 11:33:39 -05:00
|
|
|
Depends(run, res[-1])
|
2015-08-27 09:04:21 -04:00
|
|
|
return run
|
|
|
|
|
2015-10-31 10:53:40 -04:00
|
|
|
env.UsePackage("taglib_c")
|
2015-12-11 14:17:46 -05:00
|
|
|
res += [ TagTest("artist") ]
|
2016-05-03 07:54:54 -04:00
|
|
|
res += [ TagTest("album") ]
|
2015-12-11 14:17:46 -05:00
|
|
|
res += [ TagTest("genre") ]
|
|
|
|
res += [ TagTest("library") ]
|
|
|
|
|
2015-11-12 10:42:21 -05:00
|
|
|
core_objs += [ env.Object("../../../core/tags/tags.c") ]
|
|
|
|
|
2015-12-11 14:17:46 -05:00
|
|
|
res += [ TagTest("track") ]
|
2015-09-21 09:02:13 -04:00
|
|
|
|
2015-08-27 09:04:21 -04:00
|
|
|
Return("res")
|