X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=54a369c3741548371e9ae0d6f35edfbd96a0cd77;hb=c4c6aa228d8767a33820613568f1ebe9e0172297;hp=5f4ae7e18b713feafb875ccab7a3b85f3ad74094;hpb=ebc3461ce2a71fe7fafff83726747ddea712bd31;p=newsd diff --git a/Makefile b/Makefile index 5f4ae7e..54a369c 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,8 @@ control.ctl: newsdb: -dropdb news createdb -O news -T template0 -E SQL_ASCII news - psql -d news -c 'alter database news set search_path to nntp,public' - psql -d news -c 'alter database news set client_min_messages to warning' + $(PSQL) -c 'alter database news set search_path to nntp,public' + $(PSQL) -c 'alter database news set client_min_messages to warning' preserve: sudo su -c 'psql -1 --set ON_ERROR_STOP=1 -U news -d news -f preserve.sql' news @@ -46,7 +46,15 @@ test: rm -f news.log PERL5LIB=./Net-Server-NNTP/lib ./newsd conf_file=test.conf sleep 1 - prove t/*.t + -prove t/*.t + -test -f newsd.pid && kill `cat newsd.pid` + +vtest: + -test -f newsd.pid && kill `cat newsd.pid` + rm -f news.log + PERL5LIB=./Net-Server-NNTP/lib ./newsd conf_file=test.conf + sleep 1 + -prove -v t/*.t -test -f newsd.pid && kill `cat newsd.pid` schema: