path: root/src/glsl/tests/
AgeCommit message (Collapse)AuthorFilesLines
2013-01-22glsl/build: Build tests via the glsl MakefileMatt Turner1-35/+0
Tested-by: Andreas Boll <>
2013-01-13tests: AM_CPPFLAGS must include $(top_srcdir) instead of $(top_builddir).Johannes Obermayr1-4/+5
Reviewed-by: Andreas Boll <>
2012-10-25src/glsl/tests/ Specify -I... in AM_CPPFLAGSMatt Turner1-4/+1
When specifying per-target CFLAGS (e.g., ralloc_test_CFLAGS) AM_CFLAGS are not used. AM_CPPFLAGS should be used for includes anyway. Fixes a build problem since 41b14d125: CC ralloc_test-ralloc.o In file included from ../../../src/glsl/ralloc.c:42:0: ../../../src/glsl/ralloc.h:57:27: fatal error: main/compiler.h: No such file or directory Acked-by: Paul Berry <>
2012-10-01build: Use PTHREAD_LIBS and PTHREAD_CFLAGSMatt Turner1-3/+5
2012-07-13automake: convert libmesa and libmesagalliumJon TURNEY1-1/+1
* "configure substitutions are not allowed in _SOURCES variables" in automake, so instead of MESA_ASM_FILES, use some AM_CONDITIONALS to choose which architecture's asm sources are used in libmesa_la_SOURCES. (Can't remove MESA_ASM_FILES autoconf variable as it's still used in sources.mak) * Update to link with the .la file in other files, and make a link to the .a file for the convenience of other Makefiles which have not yet been converted to automake v2: Remove stray -static from LDFLAGS v3: Remove .a compatibility link on clean Signed-off-by: Jon TURNEY <> Reviewed-by: Eric Anholt <> Tested-by: Matt Turner <>
2012-07-13automake: convert libglslJon TURNEY1-1/+1
v2: Use AM_V_GEN to silence generated code rules. Add BUILT_SOURCES to CLEANFILES v3: - Fix an accidental // in a path - Use automake make rules for lex/yacc rather than writing our own - Update .gitignore appropriately - Build a libglcpp convenience library rather than awkwardly including the files in libglsl and delegating the generation - Remove libglsl.a compatibility link on clean v4: - Automake's rules for lex/yacc make .cc if source is .ll or .yy, and apparently we must use those extensions "because of scons", so update everywhere glsl_parser.cpp -> and glsl_lexer.cpp -> This fixes 'make tarballs' and building with dricore enabled. Signed-off-by: Jon TURNEY <> Reviewed-by: Eric Anholt <> Tested-by: Matt Turner <>
2012-05-30glsl/tests: Plumb $(PYTHON2) and $(PYTHON_FLAGS) into optimization-test.Kenneth Graunke1-0/+4
Some distributions (like Arch Linux) make /usr/bin/python Python 3, rather than Python 2. Since compare_ir uses /usr/bin/env python, such systems will fail to run optimization-test, causing 'make check' to always fail. Automake's TESTS_ENVIRONMENT variable provides a mechanism to run programs or set environment variables in the test environment. Ideally, I think we would want to use AM_TESTS_ENVIRONMENT, since TESTS_ENVIRONMENT is supposed to be user-overridable. However, it isn't supported using the default/serial test runner. Fixes 'make check' on Arch Linux and Gentoo. Signed-off-by: Kenneth Graunke <> Acked-by: Matt Turner <>
2012-05-30ralloc: Add some basic unit tests.Kenneth Graunke1-0/+5
I started writing unit tests for a new piece of code, and discovered they all failed due to a bug in ralloc. Clearly it needs a test suite. v2: Rename to 'ralloc-test' and fix copyright date. (idr review) Signed-off-by: Kenneth Graunke <>
2012-05-23glsl/tests: Add test for uniform initialization by the linkerIan Romanick1-1/+25
v2: Put unit tests in src/glsl/tests rather than tests/glsl. Signed-off-by: Ian Romanick <> Reviewed-by: Eric Anholt <> Acked-by: Kenneth Graunke <>
2012-04-19glsl: Convert the tests directory to automake.Eric Anholt1-0/+2
This runs optimization-test and produces the usual automake test output, which may be interesting to automated build systems. This doesn't convert the tests to be individually exposed to the automake runner, because automake doesn't like wildcards (due to being nonportable in make, not that we care). Reviewed-by: Kenneth Graunke <>