Files
sysprof/tests/Makefile.am
Christian Hergert 61fed5b8f2 build: split profiler and gtk widgets into separate libraries
This will make it easier to support installing just sysprof-cli and the
sysprofd helper daemon on systems where GTK is not feasible or necessary.
This does not, however, do that. It simply gets things broken up into
pieces.
2016-04-13 21:09:52 -07:00

48 lines
1.0 KiB
Makefile

TESTS =
test_cflags = \
$(SYSPROF_CFLAGS) \
-I$(top_srcdir)/lib \
-I$(top_builddir)/lib
test_libs = \
$(SYSPROF_LIBS) \
$(top_builddir)/lib/libsysprof-@API_VERSION@.la
test_ui_cflags = \
$(SYSPROF_UI_CFLAGS) \
-I$(top_srcdir)/lib \
-I$(top_builddir)/lib
test_ui_libs = \
$(SYSPROF_UI_LIBS) \
$(top_builddir)/lib/libsysprof-@API_VERSION@.la \
$(top_builddir)/lib/libsysprof-ui-@API_VERSION@.la
TESTS += 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)
TESTS += test-capture
test_capture_SOURCES = test-capture.c
test_capture_CFLAGS = $(test_cflags)
test_capture_LDADD = $(test_libs)
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))
TEST_PROGS = test-model-filter
LOG_COMPILER = $(top_srcdir)/tap-test
noinst_PROGRAMS = $(TESTS)
check_PROGRAMS = $(TESTS)
-include $(top_srcdir)/git.mk