summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/tests')
-rw-r--r--lib/mesa/src/gallium/tests/graw/SConscript2
-rw-r--r--lib/mesa/src/gallium/tests/unit/SConscript12
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/mesa/src/gallium/tests/graw/SConscript b/lib/mesa/src/gallium/tests/graw/SConscript
index d9d480e85..c5fa3fe59 100644
--- a/lib/mesa/src/gallium/tests/graw/SConscript
+++ b/lib/mesa/src/gallium/tests/graw/SConscript
@@ -6,7 +6,7 @@ env.Prepend(LIBS = [mesautil, gallium])
env.Prepend(LIBPATH = [graw.dir])
env.Prepend(LIBS = ['graw'])
-
+
if env['platform'] in ('freebsd8', 'sunos'):
env.Append(LIBS = ['m'])
diff --git a/lib/mesa/src/gallium/tests/unit/SConscript b/lib/mesa/src/gallium/tests/unit/SConscript
index 065080401..a816e2fea 100644
--- a/lib/mesa/src/gallium/tests/unit/SConscript
+++ b/lib/mesa/src/gallium/tests/unit/SConscript
@@ -24,8 +24,10 @@ for progname in progs:
target = progname,
source = progname + '.c',
)
- if progname not in [
- 'u_cache_test', # too long
- 'translate_test', # unreliable
- ]:
- env.UnitTest(progname, prog)
+
+ env.Alias(progname, env.InstallProgram(prog))
+
+ # http://www.scons.org/wiki/UnitTests
+ test_alias = env.Alias('unit', [prog], prog[0].abspath)
+ AlwaysBuild(test_alias)
+