1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
SUBDIRS = data
AM_CFLAGS = $(CHAFA_CFLAGS) $(GLIB_CFLAGS)
LDADD = $(GLIB_LIBS) $(top_builddir)/chafa/libchafa.la
## --- Test driver ---
# Our custom test driver is based on Automake's, with the addition that
# it will print logs of failed tests to the console. This simplifies log
# perusal in build systems. Requires Automake 1.12+.
LOG_DRIVER = $(top_srcdir)/tests/test-driver.sh
## --- Backend tests ---
noinst_PROGRAMS = \
canvas-test \
term-info-test
canvas_test_SOURCES = \
canvas-test.c
term_info_test_SOURCES = \
term-info-test.c
## --- Frontend tests ---
if WANT_TOOLS
TOOL_CHECKS = \
chafa-tool-bad-test.sh \
chafa-tool-closed-test.sh \
chafa-tool-cmode-test.sh \
chafa-tool-format-test.sh \
chafa-tool-grid-test.sh \
chafa-tool-loader-test.sh \
chafa-tool-options-test.sh \
chafa-tool-pipe-test.sh \
chafa-tool-retval-test.sh
else
TOOL_CHECKS =
endif
TESTS = \
canvas-test \
term-info-test \
$(TOOL_CHECKS)
AM_TESTS_ENVIRONMENT = \
export top_builddir=$(top_builddir) \
export top_srcdir=$(top_srcdir) \
;
## --- General ---
## Include $(top_builddir)/chafa to get generated chafaconfig.h.
AM_CPPFLAGS = \
-I$(top_srcdir)/chafa \
-I$(top_builddir)/chafa
EXTRA_DIST = \
$(TOOL_CHECKS) \
chafa-tool-gallery.sh \
chafa-tool-test-common.sh \
test-driver.sh
|