summaryrefslogtreecommitdiff
path: root/src/gallium/tests/unit
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-04-13 13:31:04 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-04-14 07:19:04 +0100
commit50ddf03ada3cc167f7dcb6b26f82adb20162f983 (patch)
tree4a81fcbb92eeb5cb1531fee7cb346d87d276189b /src/gallium/tests/unit
parent9ae0e8ee3cf5e422804dcecd248dc28bb5dc63dc (diff)
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 <sroland@vmware.com>
Diffstat (limited to 'src/gallium/tests/unit')
-rw-r--r--src/gallium/tests/unit/SConscript12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript
index a816e2fea41..0650804018b 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)