Mesa (master): scons: Add aliases for unit tests.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Apr 1 12:18:46 PDT 2011


Module: Mesa
Branch: master
Commit: 3f68d4b0583bd51b18eba6eb1e4be58f37c61778
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f68d4b0583bd51b18eba6eb1e4be58f37c61778

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Apr  1 20:12:10 2011 +0100

scons: Add aliases for unit tests.

---

 src/gallium/tests/unit/SConscript |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript
index 49f28c0..edc1e80 100644
--- a/src/gallium/tests/unit/SConscript
+++ b/src/gallium/tests/unit/SConscript
@@ -19,13 +19,13 @@ progs = [
     'translate_test'
 ]
 
-for prog in progs:
+for progname in progs:
     prog = env.Program(
-        target = prog,
-        source = prog + '.c',
+        target = progname,
+        source = progname + '.c',
     )
     
-    env.InstallProgram(prog)
+    env.Alias(progname, env.InstallProgram(prog))
 
     # http://www.scons.org/wiki/UnitTests
     test_alias = env.Alias('unit', [prog], prog[0].abspath)



More information about the mesa-commit mailing list