masqmail

diff tests/relay-to-hostname-mta/makefile @ 63:49ca781e1503

reworked the test cases completely they are split into four independent tests now and each one is tested to work with the current version
author meillo@marmaro.de
date Sun, 30 May 2010 16:05:49 +0200
parents
children 08932c629849
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/relay-to-hostname-mta/makefile	Sun May 30 16:05:49 2010 +0200
     1.3 @@ -0,0 +1,23 @@
     1.4 +# Makefile by markus schnalke <meillo@marmaro.de>
     1.5 +# heavily based on Makefile.am written by oliver kurth
     1.6 +
     1.7 +all: test test.conf test.route
     1.8 +	mkdir -p ./input ./lock
     1.9 +
    1.10 +test.conf: test.conf.tpl
    1.11 +	# fails if the current path contains `^'.
    1.12 +	sed "s^PWD^`pwd`^" $< >$@
    1.13 +
    1.14 +test: test.tpl
    1.15 +	sed s/RECV_HOST/`hostname`/ $< >$@
    1.16 +	chmod +x $@
    1.17 +
    1.18 +test.route:
    1.19 +	echo mail_host=\"`hostname`\" >$@
    1.20 +
    1.21 +clean:
    1.22 +	rm -f test.conf test test.route
    1.23 +
    1.24 +realclean: clean
    1.25 +	rm -rf ./input ./lock
    1.26 +	rm -f *.log