1SUBDIRS = fuzzer 2 3if BUILD_TESTS 4 5AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/gallium/include $(CHECK_CFLAGS) -I$(top_srcdir)/src/gallium/auxiliary $(DEFINES) 6 7TEST_LIBS = libvrtest.la $(top_builddir)/src/libvirglrenderer.la $(CHECK_LIBS) 8 9run_tests = test_virgl_init test_virgl_transfer test_virgl_resource test_virgl_cmd 10 11noinst_LTLIBRARIES = libvrtest.la 12libvrtest_la_SOURCES = testvirgl.c \ 13 testvirgl.h \ 14 testvirgl_encode.c \ 15 testvirgl_encode.h 16 17noinst_PROGRAMS = $(run_tests) 18TESTS = $(run_tests) 19 20test_virgl_init_SOURCES = test_virgl_init.c 21test_virgl_init_LDADD = $(TEST_LIBS) 22test_virgl_init_LDFLAGS = -no-install 23 24test_virgl_resource_SOURCES = test_virgl_resource.c 25test_virgl_resource_LDADD = $(TEST_LIBS) 26test_virgl_resource_LDFLAGS = -no-install 27 28test_virgl_transfer_SOURCES = test_virgl_transfer.c 29test_virgl_transfer_LDADD = $(TEST_LIBS) 30test_virgl_transfer_LDFLAGS = -no-install 31 32test_virgl_cmd_SOURCES = test_virgl_cmd.c large_shader.h 33test_virgl_cmd_LDADD = $(TEST_LIBS) 34test_virgl_cmd_LDFLAGS = -no-install 35 36if HAVE_VALGRIND 37VALGRIND_FLAGS= \ 38 --leak-check=full \ 39 --quiet \ 40 --error-exitcode=3 \ 41 --suppressions=$(srcdir)/valgrind.suppressions 42 43valgrind: 44 $(MAKE) check-TESTS LOG_COMPILER="$(VALGRIND)" LOG_FLAGS="$(VALGRIND_FLAGS)" CK_FORK=no 45 46check: valgrind 47 48EXTRA_DIST = valgrind.suppressions 49endif 50endif 51 52-include $(top_srcdir)/git.mk 53