File: Makefile.am

package info (click to toggle)
nullmailer 1.00RC7-22
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 695
  • sloc: cpp: 4,375; sh: 519; makefile: 249; perl: 184; ansic: 10
file content (23 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
noinst_PROGRAMS = address-test
EXTRA_DIST = address-trace.cc

INCLUDES = -I../lib

address_test_SOURCES = address-test.cc # address-trace.cc
address_test_LDADD = ../lib/libnullmailer.a

# The following makes sure that we can't produce a package without the
# tests executing properly
dist-hook: test
	cp -r tests $(distdir)

test: all
	./address-test
	@failed=0; \
	for test in `find tests -type f | fgrep -v .svn`; do \
		echo Running test $$test...; \
		if env - SYSCONFDIR=$(sysconfdir)/nullmailer bash $$test; \
			then echo 'Done.'; \
			else echo '******************************Failed!******************************'; failed=1; \
		fi; \
	done 2>&1; exit $$failed