masqmail
diff tests/hostname-stdin/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 | tests/Makefile@3cb6f383f07e |
children | 60bb2dbe2866 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/hostname-stdin/makefile Sun May 30 16:05:49 2010 +0200 1.3 @@ -0,0 +1,20 @@ 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 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/SMTP_HOST/`hostname`/; 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 +clean: 1.19 + rm -f test.conf test 1.20 + 1.21 +realclean: clean 1.22 + rm -rf ./input ./lock 1.23 + rm -f *.log `logname`