From 57a0226fc9dc39cdf715cdb74ca3ac9016ca294c Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Thu, 5 Sep 2013 21:48:45 +0200 Subject: 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. --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- cgit v1.2.3