1 GNULIB= ../gnulib/lib/libgnu.la
2 GNULIB_CFLAGS= -I $(top_srcdir)/gnulib/lib
4 AM_CFLAGS = $(AUGEAS_CFLAGS) $(WARN_CFLAGS) $(GNULIB_CFLAGS) \
5 $(LIBXML_CFLAGS) -I $(top_builddir)/src
7 VALGRIND=libtool --mode=execute valgrind --quiet --leak-check=full
10 VALGRIND="$(VALGRIND)" \
11 AUGPARSE=$(abs_top_builddir)/src/augparse \
12 AUGTOOL=$(abs_top_builddir)/src/augtool
16 $(TESTS_ENVIRONMENT) $(VALGRIND) ./leak
21 lens-activemq_conf.sh \
22 lens-activemq_xml.sh \
23 lens-afs_cellalias.sh \
27 lens-apt_update_manager.sh \
28 lens-aptcacherngsecurity.sh \
29 lens-aptpreferences.sh \
32 lens-authorized_keys.sh \
36 lens-backuppchosts.sh \
47 lens-cobblersettings.sh \
48 lens-cobblermodules.sh \
71 lens-fai_diskconfig.sh \
78 lens-gtkbookmarks.sh \
82 lens-hosts_access.sh \
113 lens-mailscanner.sh \
114 lens-mailscanner_rules.sh \
115 lens-masterpasswd.sh \
116 lens-mcollective.sh \
122 lens-modules_conf.sh \
123 lens-mongodbserver.sh \
128 lens-nagiosobjects.sh \
130 lens-networkmanager.sh \
139 lens-openshift_config.sh \
140 lens-openshift_http.sh \
141 lens-openshift_quickstarts.sh \
152 lens-postfix_access.sh \
153 lens-postfix_main.sh \
154 lens-postfix_master.sh \
155 lens-postfix_passwordmap.sh \
156 lens-postfix_sasl_smtpd.sh \
157 lens-postfix_transport.sh \
158 lens-postfix_virtual.sh \
163 lens-puppet_auth.sh \
165 lens-puppetfileserver.sh \
166 lens-pylonspaste.sh \
167 lens-pythonpaste.sh \
173 lens-reprepro_uploaders.sh \
186 lens-shellvars_list.sh \
187 lens-simplelines.sh \
192 lens-solaris_system.sh \
204 lens-sysconfig_route.sh \
210 lens-trapperkeeper.sh \
216 lens-vmware_config.sh \
224 lens-xymon_alerting.sh \
227 lens-xendconfsxp.sh \
231 ME = tests/Makefile.am
233 # Ensure that the above list stays up to date:
234 # Construct two lists: list of lens-*.sh from lens_tests = ... above,
235 # and the list of ../lenses/tests/test_*.aug names.
236 # If they're not the same, print the new or removed names and fail.
237 check: check-lens-tests
238 .PHONY: check-lens-tests
241 @u=$$({ sed -n '/^$(_v) =[ ]*\\$$/,/[^\]$$/p' \
242 $(srcdir)/Makefile.am \
243 | sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \
244 | sed 's,\.sh.*\\,.sh,'; \
245 ls -1 $(srcdir)/../lenses/tests/test_*.aug \
246 | sed 's,.*/test_\([^./]*\)\.aug$$,lens-\1.sh,'; \
247 } | LC_ALL=C sort | uniq -u); \
248 test "x$$u" = x && : \
249 || { printf '%s\n' "$$u" >&2; \
250 echo '$(ME): new test(s)? update lens_tests' >&2; exit 1; }
252 DISTCLEANFILES = $(lens_tests)
253 $(lens_tests): lens-test-1
257 test-interpreter.sh \
259 test-get.sh test-augtool.sh \
260 test-put-symlink.sh test-put-symlink-augnew.sh \
261 test-put-symlink-augsave.sh test-put-symlink-augtemp.sh \
262 test-put-mount.sh test-put-mount-augnew.sh test-put-mount-augsave.sh \
263 test-save-empty.sh test-bug-1.sh test-idempotent.sh test-preserve.sh \
264 test-events-saved.sh test-save-mode.sh test-unlink-error.sh \
265 test-augtool-empty-line.sh test-augtool-modify-root.sh \
266 test-span-rec-lens.sh
269 test-augtool root lens-test-1 \
270 $(check_SCRIPTS) $(wildcard modules/*.aug) xpath.tests run.tests
272 noinst_SCRIPTS = $(check_SCRIPTS)
274 noinst_PROGRAMS = leak
276 check_PROGRAMS = fatest test-xpath test-load test-perf test-save test-api test-run
278 TESTS_ENVIRONMENT = \
279 PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
280 abs_top_builddir='$(abs_top_builddir)' \
281 abs_top_srcdir='$(abs_top_srcdir)' \
284 TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
286 INCLUDES = -I$(top_srcdir)/src
288 fatest_SOURCES = fatest.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
289 fatest_LDADD = $(top_builddir)/src/libfa.la $(LIBXML_LIBS) $(GNULIB)
291 test_xpath_SOURCES = test-xpath.c cutest.c cutest.h $(top_srcdir)/src/memory.c
292 test_xpath_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
294 test_load_SOURCES = test-load.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
295 test_load_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
297 test_save_SOURCES = test-save.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
298 test_save_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
300 test_api_SOURCES = test-api.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
301 test_api_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
303 test_run_SOURCES = test-run.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
304 test_run_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
306 test_perf_SOURCES = test-perf.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
307 test_perf_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
309 leak_SOURCES = leak.c
310 leak_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
312 FAILMALLOC_START ?= 1
314 FAILMALLOC_PROG ?= ./fatest
316 include $(top_srcdir)/Makefile.inc