From: Fabian Fichter Date: Sat, 19 Jun 2021 08:21:34 +0000 (+0200) Subject: Add variants.ini testing to CI X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f3ea4cfd7c7e76fd14730604cc7b1d4e368a0b40;p=fairystockfish.git Add variants.ini testing to CI --- diff --git a/.github/workflows/fairy.yml b/.github/workflows/fairy.yml index 74162a8..e260e9e 100644 --- a/.github/workflows/fairy.yml +++ b/.github/workflows/fairy.yml @@ -64,6 +64,10 @@ jobs: run: | ../tests/protocol.sh + - name: Test variants.ini + run: | + ! ./stockfish check variants.ini 2>&1 >/dev/null | grep -v "Parsing variant" + - name: Test variant perft run: | ../tests/perft.sh all diff --git a/tests/protocol.sh b/tests/protocol.sh index 5382afa..d66d9a1 100755 --- a/tests/protocol.sh +++ b/tests/protocol.sh @@ -50,7 +50,7 @@ cat << EOF > ucicyclone.exp EOF cat << EOF > xboard.exp - spawn ./stockfish + spawn ./stockfish load variants.ini send "xboard\\n" send "protover 2\\n" expect "feature done=1" @@ -58,6 +58,8 @@ cat << EOF > xboard.exp expect "pong" send "ping\\n" expect "pong" + send "variant 3check-crazyhouse\\n" + expect "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR\\\\\[] w KQkq - 3+3 0 1" send "quit\\n" expect eof EOF