summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/unit/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-13 07:05:13 +0900
committerJosé Fonseca <[email protected]>2010-04-13 07:05:46 +0900
commit6917ef10f20d2c6de92e5432b9483d9648d8b0c0 (patch)
tree86c95f54d7ce0dcc02a3a55ab617b723b6fc76b2 /src/gallium/tests/unit/SConscript
parent6cd82eb399c8a6c248c2d9b135bafefbac8fbe0f (diff)
progs/gallium: Move into src/gallium/tests
Two reasons: - progs will eventually have its own repository - it is just to easy to forget updating the code for interface changes when it is outside of src
Diffstat (limited to 'src/gallium/tests/unit/SConscript')
-rw-r--r--src/gallium/tests/unit/SConscript23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript
new file mode 100644
index 00000000000..0db3bb687c6
--- /dev/null
+++ b/src/gallium/tests/unit/SConscript
@@ -0,0 +1,23 @@
+Import('*')
+
+env = env.Clone()
+
+env.Prepend(LIBS = [gallium])
+
+progs = [
+ 'u_format_test',
+ 'u_half_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)
+