From 6917ef10f20d2c6de92e5432b9483d9648d8b0c0 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 13 Apr 2010 07:05:13 +0900 Subject: 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 --- src/gallium/tests/unit/SConscript | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/gallium/tests/unit/SConscript (limited to 'src/gallium/tests/unit/SConscript') diff --git a/src/gallium/tests/unit/SConscript b/src/gallium/tests/unit/SConscript new file mode 100644 index 0000000000..0db3bb687c --- /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) + -- cgit v1.2.3