From f3ea4cfd7c7e76fd14730604cc7b1d4e368a0b40 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 19 Jun 2021 10:21:34 +0200 Subject: [PATCH] Add variants.ini testing to CI --- .github/workflows/fairy.yml | 4 ++++ tests/protocol.sh | 4 +++- 2 files changed, 7 insertions(+), 1 deletions(-) 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 -- 1.7.0.4