scons: Add aliases for unit tests.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 1 Apr 2011 19:12:10 +0000 (20:12 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 1 Apr 2011 19:18:22 +0000 (20:18 +0100)
src/gallium/tests/unit/SConscript

index 49f28c036910baf351c64bc8c57a2a32c9300d51..edc1e80a412052982e8d932c3559299b882c112f 100644 (file)
@@ -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)