Debian Codegraph @

tests/Makefile.am

raw
1 EXTRA_DIST = data test-cli.in
2 check_PROGRAMS =
3 TESTS =
4 AM_CFLAGS =
5 AM_LDFLAGS =
6
7 if COND_GCOV
8 AM_CFLAGS += --coverage
9 endif # COND_GCOV
10
11 GCOV_FILES = *.gcda *.gcno *.gcov
12
13 if USE_CHECK
14
15 TESTS += test-api
16 check_PROGRAMS += test-api
17 test_api_SOURCES = test_main.c test_pdb.c test_freesasa.c test_structure.c \
18 test_classifier.c test_coord.c test_nb.c test_selection.c tools.h tools.c \
19 test_node.c
20
21 AM_CFLAGS += -I$(top_srcdir)/src -DDATADIR=\"$(top_srcdir)/tests/data/\" -DSHAREDIR=\"$(top_srcdir)/share/\"
22
23 test_api_LDADD = ../src/libfreesasa.a
24
25 if USE_JSON
26 test_api_SOURCES += test_json.c
27 test_api_LDADD += -ljson-c
28 endif # USE_JSON
29
30 if USE_XML
31 test_api_SOURCES += test_xml.c
32 test_api_LDADD += ${libxml2_LIBS}
33 AM_CFLAGS += ${libxml2_CFLAGS}
34 endif # USE_XML
35
36 endif # USE_CHECK
37
38 if RUN_CLI_TESTS # on by default
39 TESTS += test-cli
40 endif # RUN_CLI_TESTS
41
42
43 CLEANFILES = tmp/* $(GCOV_FILES) *~ .deps/*
44
45 clean-local:
46 -rm -rf *.dSYM