OSDN Git Service

Added new targets to test the server: test-run-daemon and stop-daemon
authordaigo <beatles@users.sourceforge.jp>
Sun, 25 Jul 2010 03:41:32 +0000 (12:41 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sun, 25 Jul 2010 03:41:32 +0000 (12:41 +0900)
Makefile

index f2ec135..e470e69 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,17 @@ doc: clean
        rdoc --main README -o doc \
          . shogi-server README mk_html mk_rate csa-file-filter
 
-.PHONY:test-run
+.PHONY: test-run
 test-run: 
-       ./shogi-server hoge 4000 --floodgate-games floodgate-900-0,floodgate-3600-0
+       ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
+
+.PHONY: test-run-daemon
+test-run-daemon: 
+       ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 --daemon . --pid-file ./shogi-server.pid --player-log-dir ./player-logs hoge 4000
+
+.PHONY: stop-daemn
+stop-daemon:
+       kill `cat shogi-server.pid`
 
 .PHONY: clean
 clean: