Files
sysprof/tests/Makefile.am
Christian Hergert 5d25b8a242 build: be a bit more flexible with configuration options
It would be nice if we can be a bit more flexible with where the
sysprof-cli tool can run. Lets try to break out the system checks a
bit more.
2016-04-14 00:59:28 -07:00

59 lines
1.2 KiB
Makefile

TESTS =
TEST_PROGS =
test_cflags = \
$(GIO_CFLAGS) \
$(POLKIT_CFLAGS) \
-I$(top_srcdir)/lib \
-I$(top_builddir)/lib
test_libs = \
$(GIO_LIBS) \
$(POLKIT_LIBS) \
$(top_builddir)/lib/libsysprof-@API_VERSION@.la
TESTS += test-capture
test_capture_SOURCES = test-capture.c
test_capture_CFLAGS = $(test_cflags)
test_capture_LDADD = $(test_libs)
if ENABLE_GTK
test_ui_cflags = \
$(GIO_CFLAGS) \
$(GTK_CFLAGS) \
$(POLKIT_CFLAGS) \
-I$(top_srcdir)/lib \
-I$(top_builddir)/lib
test_ui_libs = \
$(GIO_LIBS) \
$(GTK_LIBS) \
$(POLKIT_LIBS) \
$(top_builddir)/lib/libsysprof-@API_VERSION@.la \
$(top_builddir)/lib/libsysprof-ui-@API_VERSION@.la
TESTS += test-model-filter
TEST_PROGS += test-model-filter
test_model_filter_SOURCES = test-model-filter.c
test_model_filter_CFLAGS = $(test_ui_cflags)
test_model_filter_LDADD = $(test_ui_libs)
endif
TEST_ENVIRONMENT = \
G_TEST_SRCDIR="$(abs_srcdir)" \
G_TEST_BUILDDIR="$(abs_builddir)" \
G_DEBUG=gc-friendly \
GSETTINGS_BACKEND=memory \
MALLOC_CHECK_=2 \
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
LOG_COMPILER = $(top_srcdir)/tap-test
noinst_PROGRAMS = $(TESTS)
check_PROGRAMS = $(TESTS)
-include $(top_srcdir)/git.mk