From 5b3c0c151b2d9b109935d47c1cd108b4d1f1ae64 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 27 Feb 2010 20:28:16 +0000 Subject: progs/gallium: Add unit tests for pixel format packing/unpacking. --- progs/gallium/unit/SConscript | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 progs/gallium/unit/SConscript (limited to 'progs/gallium/unit/SConscript') diff --git a/progs/gallium/unit/SConscript b/progs/gallium/unit/SConscript new file mode 100644 index 0000000000..7c614f628e --- /dev/null +++ b/progs/gallium/unit/SConscript @@ -0,0 +1,15 @@ +Import('*') + +env = env.Clone() + +env.Prepend(LIBS = [gallium]) + +progs = [ + 'u_format_test' +] + +for prog in progs: + prog = env.Program( + target = prog, + source = prog + '.c', + ) -- cgit v1.2.3 From c05c675de6fda5a17836d21c0d6920e51f5181a0 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 27 Feb 2010 23:46:32 +0000 Subject: progs/gallium: Make a phony target "unit" to run unit tests. --- progs/gallium/unit/SConscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'progs/gallium/unit/SConscript') diff --git a/progs/gallium/unit/SConscript b/progs/gallium/unit/SConscript index 7c614f628e..9891440df6 100644 --- a/progs/gallium/unit/SConscript +++ b/progs/gallium/unit/SConscript @@ -13,3 +13,8 @@ for prog in progs: target = prog, source = prog + '.c', ) + + # http://www.scons.org/wiki/UnitTests + test_alias = env.Alias('unit', [prog], prog[0].abspath) + AlwaysBuild(test_alias) + -- cgit v1.2.3