comparison test.bash @ 163:97d7da45fe2a

spamassassin changes
author carl
date Sun, 26 Aug 2007 19:03:17 -0700
parents
children d6531c702be3
comparison
equal deleted inserted replaced
162:c4bce911c276 163:97d7da45fe2a
1 #!/bin/bash
2
3 #rebuild
4 make
5
6 # build the test.cf file
7 make -f Makefile.test test.cf
8
9 # start the milter
10 pid=/var/run/dnsbl.pid
11 echo start the milter
12 mkdir -p /var/run/dnsbl
13 chmod 700 /var/run/dnsbl
14 #chown dnsbl:dnsbl /var/run/dnsbl
15 [ -f "$pid" ] && mv -f $pid $pid.save
16 #src/dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2
17 #valgrind --leak-check=full --show-reachable=yes src/dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2
18 valgrind src/dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2
19 sleep 5
20 P2=`cat $pid`
21 [ -f "$pid.save" ] && mv -f $pid.save $pid
22 echo started dnsbl milter as process $P2
23
24 /usr/lib/sendmail -bd -Ctest.cf -Ldnsbltest
25 sleep 5
26 P3=`head -1 /var/run/sm-test.pid`
27 echo started sendmail as process $P3
28
29 echo "eventually, run the following two kill commands"
30 echo kill -SIGINT $P2
31 echo kill -KILL $P3