progs/gallium: Make a phony target "unit" to run unit tests.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 27 Feb 2010 23:46:32 +0000 (23:46 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 13:08:06 +0000 (13:08 +0000)
progs/gallium/unit/SConscript

index 7c614f628e9408de703a20fe2869494748081a32..9891440df6af151e3477b49f7828b300aa7cf7dd 100644 (file)
@@ -13,3 +13,8 @@ for prog in progs:
         target = prog,
         source = prog + '.c',
     )
+
+    # http://www.scons.org/wiki/UnitTests
+    test_alias = env.Alias('unit', [prog], prog[0].abspath)
+    AlwaysBuild(test_alias)
+