mutter/test-fixtures/Makefile.am
Robert Bragg eb7fafe700 tests: Adds our first white-box unit test
This adds a white-box unit test that verifies that GL_BLEND is disabled
when drawing an opaque rectangle, enabled when drawing a transparent
rectangle and then disabled again when drawing a transparent rectangle
but with a blend string that effectively disables blending.

This shares the test utilities and launcher infrastructure we are using
for conformance tests so we get consistent reporting and so unit tests
will be run against a range of different drivers.

This adds a --enable-unit-tests configure option which is enabled by
default but if disabled will make all UNIT_TESTS() into static inline
functions that we should expect the compiler to discard since they won't
be referenced by anything.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 9047cce06bbf9051ec77e622be2fdbb96ed767a8)
2013-06-06 21:27:16 +01:00

25 lines
495 B
Makefile

noinst_LTLIBRARIES = libtest-fixtures.la
libtest_fixtures_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/cogl \
-Wall \
$(NULL)
if !USE_GLIB
libtest_fixtures_la_CPPFLAGS += -I$(top_builddir)/deps/glib
endif
libtest_fixtures_la_CPPFLAGS += \
-DCOGL_DISABLE_DEPRECATED \
-DTESTS_DATADIR=\""$(top_srcdir)/tests/data"\" \
-DCOGL_COMPILATION
libtest_fixtures_la_CFLAGS = -g3 -O0 $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS)
libtest_fixtures_la_SOURCES = \
test-utils.h \
test-utils.c