]> code.delx.au - gnu-emacs-elpa/commitdiff
'make check' is now 0-based, like the rest of the database-related code. Only
authorJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 04:11:50 +0000 (00:11 -0400)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 04:11:50 +0000 (00:11 -0400)
in the display code (the top-level user interface) are database games
presented using a 1-base system.

Makefile.am

index 2b888b02bdaf25c06edffb569c59f3ac862662a4..4d58055e5b0248e16d68180fc871c3bb2a1c7603 100644 (file)
@@ -71,7 +71,7 @@ chess-eco.fen: chess-eco.pos chess-eco.el
 
 TESTS   = chess-test
 DATABASE = $(shell test -r test/largedb.sg3 && echo test/largedb || echo test/historic.pgn)
-START   = $(shell test -r test/largedb.sg3 && perl -e 'print int(rand(4000000)), "\n";' || echo 1)
+START   = $(shell test -r test/largedb.sg3 && perl -e 'print int(rand(4000000)), "\n";' || echo 0)
 COUNT   = 100000
 
 # Note: There are 4,209,433 games in test/largedb, if you download the files
@@ -85,8 +85,8 @@ COUNT  = 100000
 # since the Makefile will not regenerate it if you aborted a previous test
 # run).
 #
-#   chess1 $ rm -f chess-test; nice -n 20 make START=1 COUNT=2104716 check
-#   chess2 $ rm -f chess-test; nice -n 20 make START=2104716 COUNT=-1 check
+#   chess1 $ rm -f chess-test; nice -n 20 make START=0 COUNT=2104715 check
+#   chess2 $ rm -f chess-test; nice -n 20 make START=2104715 COUNT=-1 check
 #
 # I run both of these using `screen', with a vertical split so I can watch
 # them both running.  I type C-a H in each screen window before starting, so