tests/core: Update tags/artist test to the new framework

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-08-27 10:57:29 -04:00
parent a6d206a003
commit e6f26d036c
3 changed files with 6 additions and 8 deletions

View File

@ -24,7 +24,6 @@ res += [ CoreTest("idle", "idle.cpp") ]
res += SConscript("tags/Sconscript") res += SConscript("tags/Sconscript")
Return("res") Return("res")
#test( "tags/artist" )
#test( "tags/album" ) #test( "tags/album" )
#test( "tags/genre" ) #test( "tags/genre" )
#test( "tags/library" ) #test( "tags/library" )

View File

@ -12,4 +12,5 @@ def TagTest(name, source):
return run return run
res = [ TagTest("generic", "generic.cpp") ] res = [ TagTest("generic", "generic.cpp") ]
res += [ TagTest("artist", "artist.cpp") ]
Return("res") Return("res")

View File

@ -2,7 +2,7 @@
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <core/tags/artist.h> #include <core/tags/artist.h>
#include <tests/test.h> #include "../test.h"
static void test_artist_tag() static void test_artist_tag()
{ {
@ -34,9 +34,7 @@ static void test_artist_tag_lookup()
test_equal(artist_db.size(), (unsigned)1); test_equal(artist_db.size(), (unsigned)1);
} }
int main(int argc, char **argv) DECLARE_UNIT_TESTS(
{ UNIT_TEST("Artist Tag", test_artist_tag),
test :: run("Artist Tag Test", test_artist_tag); UNIT_TEST("Artist Tag Lookup", test_artist_tag_lookup),
test :: run("Artist Tag Lookup Test", test_artist_tag_lookup); );
return 0;
}