OSDN Git Service

Added a test-time-run target which runs a test for day changes
authordaigo <beatles@users.sourceforge.jp>
Sat, 18 Sep 2010 02:04:26 +0000 (11:04 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 18 Sep 2010 02:04:26 +0000 (11:04 +0900)
Makefile

index e470e69..941b3fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ doc: clean
 test-run: 
        ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
 
 test-run: 
        ./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: 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
@@ -16,6 +17,10 @@ test-run-daemon:
 stop-daemon:
        kill `cat shogi-server.pid`
 
 stop-daemon:
        kill `cat shogi-server.pid`
 
+.PHONY: test-time-run
+test-time-run: 
+       ruby -r sample/test_time.rb ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
+
 .PHONY: clean
 clean:
        -rm -rf doc
 .PHONY: clean
 clean:
        -rm -rf doc