From 50ddf03ada3cc167f7dcb6b26f82adb20162f983 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Wed, 13 Apr 2016 13:31:04 +0100 Subject: scons: Add a "check" target to run all unit tests. Except: - u_cache_test -- too long - translate_test -- unreliable (it's probably testing corner cases that translate module doesn't care about.) Reviewed-by: Roland Scheidegger --- src/gallium/drivers/llvmpipe/SConscript | 6 +----- src/gallium/tests/unit/SConscript | 12 +++++------- 2 files changed, 6 insertions(+), 12 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript index 8188156..fbbd22a 100644 --- a/src/gallium/drivers/llvmpipe/SConscript +++ b/src/gallium/drivers/llvmpipe/SConscript @@ -38,10 +38,6 @@ if not env['embedded']: target = testname, source = [testname + '.c', 'lp_test_main.c'], ) - env.InstallProgram(target) - - # http://www.scons.org/wiki/UnitTests - alias = env.Alias(testname, [target], target[0].abspath) - AlwaysBuild(alias) + env.UnitTest(testname, target) Export('llvmpipe') diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript index a816e2f..0650804 100644 --- a/src/gallium/tests/unit/SConscript +++ b/src/gallium/tests/unit/SConscript @@ -24,10 +24,8 @@ for progname in progs: target = progname, source = progname + '.c', ) - - env.Alias(progname, env.InstallProgram(prog)) - - # http://www.scons.org/wiki/UnitTests - test_alias = env.Alias('unit', [prog], prog[0].abspath) - AlwaysBuild(test_alias) - + if progname not in [ + 'u_cache_test', # too long + 'translate_test', # unreliable + ]: + env.UnitTest(progname, prog) -- cgit v1.1