aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/unit/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/unit/SConscript')
-rw-r--r--src/gallium/tests/unit/SConscript33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript
new file mode 100644
index 00000000000..49f28c03691
--- /dev/null
+++ b/src/gallium/tests/unit/SConscript
@@ -0,0 +1,33 @@
+Import('*')
+
+env = env.Clone()
+
+env.Prepend(LIBS = [gallium])
+
+if env['platform'] in ('freebsd8', 'sunos'):
+ env.Append(LIBS = ['m'])
+
+if env['platform'] == 'freebsd8':
+ env.Append(LIBS = ['pthread'])
+
+progs = [
+ 'pipe_barrier_test',
+ 'u_cache_test',
+ 'u_format_test',
+ 'u_format_compatible_test',
+ 'u_half_test',
+ 'translate_test'
+]
+
+for prog in progs:
+ prog = env.Program(
+ target = prog,
+ source = prog + '.c',
+ )
+
+ env.InstallProgram(prog)
+
+ # http://www.scons.org/wiki/UnitTests
+ test_alias = env.Alias('unit', [prog], prog[0].abspath)
+ AlwaysBuild(test_alias)
+