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
9 $(MAKE) $(MAKEFLAGS) check \
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 \
28 lens-apt_update_manager.sh \
29 lens-aptcacherngsecurity.sh \
30 lens-aptpreferences.sh \
34 lens-authorized_keys.sh \
35 lens-authselectpam.sh \
39 lens-backuppchosts.sh \
52 lens-cobblersettings.sh \
53 lens-cobblermodules.sh \
78 lens-fai_diskconfig.sh \
88 lens-gtkbookmarks.sh \
92 lens-hosts_access.sh \
106 lens-jmxpassword.sh \
109 lens-known_hosts.sh \
123 lens-mailscanner.sh \
124 lens-mailscanner_rules.sh \
125 lens-masterpasswd.sh \
126 lens-mcollective.sh \
132 lens-modules_conf.sh \
133 lens-mongodbserver.sh \
138 lens-nagiosobjects.sh \
140 lens-networkmanager.sh \
150 lens-openshift_config.sh \
151 lens-openshift_http.sh \
152 lens-openshift_quickstarts.sh \
164 lens-postfix_access.sh \
165 lens-postfix_main.sh \
166 lens-postfix_master.sh \
167 lens-postfix_passwordmap.sh \
168 lens-postfix_sasl_smtpd.sh \
169 lens-postfix_transport.sh \
170 lens-postfix_virtual.sh \
175 lens-puppet_auth.sh \
177 lens-puppetfileserver.sh \
178 lens-pylonspaste.sh \
179 lens-pythonpaste.sh \
186 lens-reprepro_uploaders.sh \
201 lens-shellvars_list.sh \
202 lens-simplelines.sh \
207 lens-solaris_system.sh \
221 lens-sysconfig_route.sh \
229 lens-trapperkeeper.sh \
236 lens-vmware_config.sh \
244 lens-xymon_alerting.sh \
247 lens-xendconfsxp.sh \
251 ME = tests/Makefile.am
253 # Ensure that the above list stays up to date:
254 # Construct two lists: list of lens-*.sh from lens_tests = ... above,
255 # and the list of ../lenses/tests/test_*.aug names.
256 # If they're not the same, print the new or removed names and fail.
257 check: check-lens-tests
258 .PHONY: check-lens-tests
261 @u=$$({ sed -n '/^$(_v) =[ ]*\\$$/,/[^\]$$/p' \
262 $(srcdir)/Makefile.am \
263 | sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \
264 | sed 's,\.sh.*\\,.sh,'; \
265 ls -1 $(srcdir)/../lenses/tests/test_*.aug \
266 | sed 's,.*/test_\([^./]*\)\.aug$$,lens-\1.sh,'; \
267 } | LC_ALL=C sort | uniq -u); \
268 test "x$$u" = x && : \
269 || { printf '%s\n' "$$u" >&2; \
270 echo '$(ME): new test(s)? update lens_tests' >&2; exit 1; }
272 DISTCLEANFILES = $(lens_tests)
273 $(lens_tests): lens-test-1
278 test-interpreter.sh \
280 test-get.sh test-augtool.sh \
281 test-put-symlink.sh test-put-symlink-augnew.sh \
282 test-put-symlink-augsave.sh test-put-symlink-augtemp.sh \
283 test-put-mount.sh test-put-mount-augnew.sh test-put-mount-augsave.sh \
284 test-save-empty.sh test-bug-1.sh test-idempotent.sh test-preserve.sh \
285 test-events-saved.sh test-save-mode.sh test-unlink-error.sh \
286 test-augtool-empty-line.sh test-augtool-modify-root.sh \
287 test-span-rec-lens.sh test-nonwritable.sh test-augmatch.sh \
289 test-function-modified.sh test-createfile.sh
292 test-augtool test-augprint root lens-test-1 \
293 $(check_SCRIPTS) $(wildcard modules/*.aug) xpath.tests run.tests
295 noinst_SCRIPTS = $(check_SCRIPTS)
297 noinst_PROGRAMS = leak
299 check_PROGRAMS = fatest test-xpath test-load test-perf test-save test-api test-run
301 TESTS_ENVIRONMENT = \
302 PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
303 abs_top_builddir='$(abs_top_builddir)' \
304 abs_top_srcdir='$(abs_top_srcdir)' \
307 TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
309 INCLUDES = -I$(top_srcdir)/src
311 fatest_SOURCES = fatest.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
312 fatest_LDADD = $(top_builddir)/src/libfa.la $(LIBXML_LIBS) $(GNULIB)
314 test_xpath_SOURCES = test-xpath.c cutest.c cutest.h $(top_srcdir)/src/memory.c
315 test_xpath_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
317 test_load_SOURCES = test-load.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
318 test_load_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
320 test_save_SOURCES = test-save.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
321 test_save_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
323 test_api_SOURCES = test-api.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
324 test_api_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
326 test_run_SOURCES = test-run.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
327 test_run_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
329 test_perf_SOURCES = test-perf.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
330 test_perf_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
332 leak_SOURCES = leak.c
333 leak_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
335 FAILMALLOC_START ?= 1
337 FAILMALLOC_PROG ?= ./fatest
339 include $(top_srcdir)/Makefile.inc