summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2013-09-05 21:48:45 +0200
committerMario Lang <mlang@delysid.org>2013-09-05 21:48:45 +0200
commit57a0226fc9dc39cdf715cdb74ca3ac9016ca294c (patch)
tree7065d8a81134a5fb3b30dc7394ae557e0e9c0e06
parent4a73c7fbb3e232545ab43ab5b3163f658e794155 (diff)
Allow testsuite generation from "The Week In Chess" (twic).
"make check-twic" will download the latest twic issues as PGN, concatenate them and run test over them.
-rw-r--r--Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 5f706a0..4cbd171 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -102,6 +102,16 @@ chess-test:
echo "$(EMACS) -batch -L $(srcdir) -l chess-test.el -f chess-test '$(DATABASE)' $(START) $(COUNT); rm -f $(top_builddir)/chess-test" > $@
chmod u+x $@
+test/twic.pgn:
+ (set -e; f=$$(pwd)/$@; tmp_dir=`mktemp -d`; \
+ cd $$tmp_dir; \
+ lftp -c "open http://www.theweekinchess.com/zips/; mget twic*g.zip"; \
+ for zip in *.zip; do unzip $$zip; done; \
+ cat *.pgn > $$f; rm *.pgn)
+
+check-twic: test/twic.pgn
+ $(MAKE) DATABASE=$< START=0 COUNT=0 check
+
TAGS: $(dist_lisp_LISP)
@etags $(dist_lisp_LISP)
@echo TAGS rebuilt.