From: José Fonseca Date: Sat, 19 Feb 2011 10:29:59 +0000 (+0000) Subject: scons: Add aliases for the llvmpipe unit tests. X-Git-Tag: 062012170305~7110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91ea60395ef1fe046188b58753b2710301d07599;p=profile%2Fivi%2Fmesa.git scons: Add aliases for the llvmpipe unit tests. Now one can simply do scons lp_test_format --- diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript index 26b258b..c10a8cb 100644 --- a/src/gallium/drivers/llvmpipe/SConscript +++ b/src/gallium/drivers/llvmpipe/SConscript @@ -96,10 +96,15 @@ if env['platform'] != 'embedded': tests.append('round') for test in tests: + testname = 'lp_test_' + test target = env.Program( - target = 'lp_test_' + test, - source = ['lp_test_' + test + '.c', 'lp_test_main.c'], + target = testname, + source = [testname + '.c', 'lp_test_main.c'], ) env.InstallProgram(target) + + # http://www.scons.org/wiki/UnitTests + alias = env.Alias(testname, [target], target[0].abspath) + AlwaysBuild(alias) Export('llvmpipe')