summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-02-19 10:29:59 +0000
committerJosé Fonseca <[email protected]>2011-02-19 10:56:05 +0000
commit91ea60395ef1fe046188b58753b2710301d07599 (patch)
treee5be1f5c1bc8bedbe771163d6366b0a36ec3fee5 /src
parent57d4e922a62921e7a8cfb1023ce0f68af806d898 (diff)
scons: Add aliases for the llvmpipe unit tests.
Now one can simply do scons lp_test_format
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/SConscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript
index 26b258b9569..c10a8cbc12c 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')