From 8e581747d2342950ff44488064eef53768b3ae82 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Tue, 18 Aug 2015 12:42:57 -0700 Subject: mesa/formats: make format testing a gtest We currently check that our format info table is sane during context initialization in debug builds. Perform this check during `make check` instead. This enables format testing in release builds and removes the requirement of an exhuastive switch for _mesa_uncompressed_format_to_type_and_comps(). v2. indentation and conditional inclusion fixes (Chad). allow tests to continue running if any format fails and display the failing format name. Reviewed-by: Chad Versace Signed-off-by: Nanley Chery --- src/mesa/main/tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/tests/Makefile.am') diff --git a/src/mesa/main/tests/Makefile.am b/src/mesa/main/tests/Makefile.am index 251474d5c25..9467f3ba8c6 100644 --- a/src/mesa/main/tests/Makefile.am +++ b/src/mesa/main/tests/Makefile.am @@ -27,6 +27,7 @@ AM_CPPFLAGS += -DHAVE_SHARED_GLAPI main_test_SOURCES += \ dispatch_sanity.cpp \ + mesa_formats.cpp \ program_state_string.cpp main_test_LDADD += \ -- cgit v1.2.3