]> pd.if.org Git - newsd/commitdiff
Added config file for make test
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 6 Oct 2012 19:01:55 +0000 (19:01 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 6 Oct 2012 19:01:55 +0000 (19:01 +0000)
Makefile
t/test.conf [new file with mode: 0644]

index 54a369c3741548371e9ae0d6f35edfbd96a0cd77..7102ea4d19cac11c0aa497201fc9ed2b8ff78af8 100644 (file)
--- 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 (file)
index 0000000..ef6440f
--- /dev/null
@@ -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