Mercurial > sm-archive
view test.bash @ 28:946961e534b4 default tip
Added tag stable-1-0-10 for changeset 9298f8b00db2
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 24 May 2018 10:38:44 -0700 |
parents | 75e1a9bcbc2e |
children |
line wrap: on
line source
#!/bin/bash # build the test.cf file make -f Makefile.test test.cf # start the milter pid=/var/run/sm-archive.pid echo start the milter mkdir -p /var/run/smarchive chmod 700 /var/run/smarchive #chown smarchive:smarchive /var/run/smarchive [ -f "$pid" ] && mv -f $pid $pid.save valgrind --leak-check=full --show-reachable=yes src/smarchive -d 10 -p local:/var/run/smarchive/smarchive.sock sleep 5 P2=`cat $pid` [ -f "$pid.save" ] && mv -f $pid.save $pid echo started smarchive milter as process $P2 /usr/lib/sendmail -bd -Ctest.cf -Lsmarchive sleep 5 P3=`head -1 /var/run/sm-test.pid` echo started sendmail as process $P3 echo "eventually, run the following two kill commands" echo kill -SIGINT $P2 echo kill -KILL $P3