From 800dd7677276f9e425c5db37b3e31e56ab1dad32 Mon Sep 17 00:00:00 2001 From: dickmao Date: Tue, 28 Aug 2018 21:48:31 -0400 Subject: Add tests for castling legality and ics response handling. Fixes misinterpretation of "e1-b1" as a valid queenside castle, and makes more sense of ics basic response handling #21. `make test` should run the historic.pgn test and the new ecukes tests. --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 9153f9f..7ce0e93 100644 --- a/Makefile.am +++ b/Makefile.am @@ -108,6 +108,11 @@ 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 $@ +.PHONY: test +test: $(TESTS) $(ELCFILES) + $(top_builddir)/chess-test + cask exec ecukes + test/twic.pgn: (set -e; f=$$(pwd)/$@; tmp_dir=`mktemp -d`; \ cd $$tmp_dir; \ -- cgit v1.2.3