summaryrefslogtreecommitdiffstats
path: root/src/util/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-11-25 14:17:29 +0000
committerMatt Turner <[email protected]>2014-12-01 11:28:45 -0800
commitff80b92a58ef802e2721d1b51da6157be696c932 (patch)
tree515a99108e566cbab3c69a3fb9900a8945138f5f /src/util/SConscript
parent6df72e970c0e2794a5651f7141528baa51c0c491 (diff)
util/u_atomic: Add a simple test.
It was much easier for me to verify things build and run as expected with this simple test, than building and testing whole Mesa. With scons the test can be build and run merely by doing: scons u_atomic_test Building the test with autotools is left as a future exercise. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/util/SConscript')
-rw-r--r--src/util/SConscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/SConscript b/src/util/SConscript
index ade1d6c6cfd..34b9a2deaab 100644
--- a/src/util/SConscript
+++ b/src/util/SConscript
@@ -36,3 +36,12 @@ mesautil = env.ConvenienceLibrary(
env.Alias('mesautil', mesautil)
Export('mesautil')
+
+
+# http://www.scons.org/wiki/UnitTests
+u_atomic_test = env.Program(
+ target = 'u_atomic_test',
+ source = ['u_atomic_test.c'],
+)
+alias = env.Alias("u_atomic_test", u_atomic_test, u_atomic_test[0].abspath)
+AlwaysBuild(alias)