From: Nathan Wagner Date: Sat, 6 Oct 2012 19:01:55 +0000 (+0000) Subject: Added config file for make test X-Git-Url: https://pd.if.org/git/?p=newsd;a=commitdiff_plain;h=c5e22893a304fad20df6c65494961df4c3920dc5 Added config file for make test --- diff --git a/Makefile b/Makefile index 54a369c..7102ea4 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ testserver: test: -test -f newsd.pid && kill `cat newsd.pid` rm -f news.log - PERL5LIB=./Net-Server-NNTP/lib ./newsd conf_file=test.conf + PERL5LIB=./Net-Server-NNTP/lib ./newsd conf_file=t/test.conf sleep 1 -prove t/*.t -test -f newsd.pid && kill `cat newsd.pid` @@ -52,7 +52,7 @@ test: vtest: -test -f newsd.pid && kill `cat newsd.pid` rm -f news.log - PERL5LIB=./Net-Server-NNTP/lib ./newsd conf_file=test.conf + PERL5LIB=./Net-Server-NNTP/lib ./newsd conf_file=t/test.conf sleep 1 -prove -v t/*.t -test -f newsd.pid && kill `cat newsd.pid` diff --git a/t/test.conf b/t/test.conf new file mode 100644 index 0000000..ef6440f --- /dev/null +++ b/t/test.conf @@ -0,0 +1,9 @@ +port 20203 +pid_file newsd.pid +user nw +group nw +log_level 4 +log_file news.log +server_type Single +first_timeout 120 +timeout 900