#!/usr/bin/python import sys Import("env") check_depends = True for arg in sys.argv: if arg.find("tests") == 0: env.Append( CCFLAGS = [ "-DCONFIG_TEST" ] ) if len(arg) > 5: check_depends = False break src = SConscript("src/Sconscript") tests = [ "version" , "file" ] #, "file", "database", "index", "filter", "idle", "tag_db", # "queue" ] #scripts = [ "playlist", "library", "deck", "audio", "gui" ] prev = None for test in tests: t = Command("%s.out" % test, [], "./tests/src/%s.run" % test) if prev and (check_depends == True): Depends(t, prev) Depends(t, src) AlwaysBuild(t) Alias("tests/%s" % test, t) prev = t