#!/usr/bin/python import sys Import("env") if sys.argv.count("tests") > 0: env.Append( CCFLAGS = [ "-DCONFIG_TEST" ] ) src = SConscript("src/Sconscript") tests = [ "version", "file", "db_entry", "database", "index" ] #scripts = [ "filter", "idle", "playlist", "library", "playqueue", "deck", "audio", "gui" ] prev = None for test in tests: t = Command("%s.out" % test, [], "./tests/%s" % test) if prev: Depends(t, prev) Depends(t, src) AlwaysBuild(t) prev = t