Fill code coverage holes in continuations.c and keywords.c
[bpt/guile.git] / test-suite / standalone / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2 ##
3 ## Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Software Foundation, Inc.
4 ##
5 ## This file is part of GUILE.
6 ##
7 ## GUILE is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU Lesser General Public License as
9 ## published by the Free Software Foundation; either version 3, or
10 ## (at your option) any later version.
11 ##
12 ## GUILE is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU Lesser General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU Lesser General Public
18 ## License along with GUILE; see the file COPYING.LESSER. If not,
19 ## write to the Free Software Foundation, Inc., 51 Franklin Street,
20 ## Fifth Floor, Boston, MA 02110-1301 USA
21
22
23 # initializations so we can use += below.
24 TESTS =
25 noinst_LTLIBRARIES =
26 check_PROGRAMS =
27 check_SCRIPTS =
28 BUILT_SOURCES =
29 EXTRA_DIST =
30
31 TESTS_ENVIRONMENT = \
32 GUILE_AUTO_COMPILE=0 "${top_builddir}/meta/uninstalled-env"
33
34 ## Check for headers in $(srcdir) and bulid dir before $(CPPFLAGS), which
35 ## may point us to an old, installed version of guile.
36 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \
37 -I$(top_srcdir)/lib -I$(top_builddir)/lib
38
39 test_cflags = \
40 -I$(top_srcdir)/test-suite/standalone -I. \
41 $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
42
43 AM_LDFLAGS = $(GUILE_CFLAGS)
44
45 snarfcppopts = \
46 -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir) \
47 -I. $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS)
48
49 SUFFIXES = .x
50 .c.x:
51 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
52
53 CLEANFILES = *.x
54
55 .DELETE_ON_ERROR:
56
57 check_SCRIPTS += test-system-cmds
58 TESTS += test-system-cmds
59
60 check_SCRIPTS += test-bad-identifiers
61 TESTS += test-bad-identifiers
62
63 check_SCRIPTS += test-require-extension
64 TESTS += test-require-extension
65
66 # test-num2integral
67 test_num2integral_SOURCES = test-num2integral.c
68 test_num2integral_CFLAGS = ${test_cflags}
69 test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
70 check_PROGRAMS += test-num2integral
71 TESTS += test-num2integral
72
73 # test-round
74 test_round_CFLAGS = ${test_cflags}
75 test_round_LDADD = ${top_builddir}/libguile/libguile.la
76 check_PROGRAMS += test-round
77 TESTS += test-round
78
79 # test-asmobs
80 noinst_LTLIBRARIES += libtest-asmobs.la
81 libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
82 libtest_asmobs_la_CFLAGS = ${test_cflags}
83 libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
84 libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
85 BUILT_SOURCES += test-asmobs-lib.x
86 check_SCRIPTS += test-asmobs
87 TESTS += test-asmobs
88
89 # test-list
90 test_list_SOURCES = test-list.c
91 test_list_CFLAGS = ${test_cflags}
92 test_list_LDADD = ${top_builddir}/libguile/libguile.la
93 check_PROGRAMS += test-list
94 TESTS += test-list
95
96 # test-unwind
97 test_unwind_SOURCES = test-unwind.c
98 test_unwind_CFLAGS = ${test_cflags}
99 test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
100 check_PROGRAMS += test-unwind
101 TESTS += test-unwind
102
103 # test-conversion
104 test_conversion_SOURCES = test-conversion.c
105 test_conversion_CFLAGS = ${test_cflags}
106 test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
107 check_PROGRAMS += test-conversion
108 TESTS += test-conversion
109
110 # test-loose-ends
111 test_loose_ends_SOURCES = test-loose-ends.c
112 test_loose_ends_CFLAGS = ${test_cflags}
113 test_loose_ends_LDADD = ${top_builddir}/libguile/libguile.la
114 check_PROGRAMS += test-loose-ends
115 TESTS += test-loose-ends
116
117 # test-fast-slot-ref
118 check_SCRIPTS += test-fast-slot-ref
119 TESTS += test-fast-slot-ref
120
121 # test-use-srfi
122 check_SCRIPTS += test-use-srfi
123 TESTS += test-use-srfi
124
125 # test-scm-c-read
126 test_scm_c_read_SOURCES = test-scm-c-read.c
127 test_scm_c_read_CFLAGS = ${test_cflags}
128 test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
129 check_PROGRAMS += test-scm-c-read
130 TESTS += test-scm-c-read
131
132 # test-scm-take-locale-symbol
133 test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
134 test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
135 test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la
136 check_PROGRAMS += test-scm-take-locale-symbol
137 TESTS += test-scm-take-locale-symbol
138
139 # test-scm-take-u8vector
140 test_scm_take_u8vector_SOURCES = test-scm-take-u8vector.c
141 test_scm_take_u8vector_CFLAGS = ${test_cflags}
142 test_scm_take_u8vector_LDADD = ${top_builddir}/libguile/libguile.la
143 check_PROGRAMS += test-scm-take-u8vector
144 TESTS += test-scm-take-u8vector
145
146 # test-extensions
147 noinst_LTLIBRARIES += libtest-extensions.la
148 libtest_extensions_la_SOURCES = test-extensions-lib.c
149 libtest_extensions_la_CFLAGS = ${test_cflags}
150 libtest_extensions_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
151 libtest_extensions_la_LIBADD = ${top_builddir}/libguile/libguile.la
152 check_SCRIPTS += test-extensions
153 TESTS += test-extensions
154
155
156 if BUILD_PTHREAD_SUPPORT
157
158 # test-with-guile-module
159 test_with_guile_module_CFLAGS = ${test_cflags}
160 test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
161 check_PROGRAMS += test-with-guile-module
162 TESTS += test-with-guile-module
163
164 test_scm_with_guile_CFLAGS = ${test_cflags}
165 test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
166 check_PROGRAMS += test-scm-with-guile
167 TESTS += test-scm-with-guile
168
169 else
170
171 EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
172
173 endif
174
175 EXTRA_DIST += ${check_SCRIPTS}