From 4a052defa9090519e386754af7328770f40294be Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Sat, 14 Oct 2023 18:35:44 +0200 Subject: [PATCH] Fix tests. --- crossref-short.bib | 6 ++++++ literatur.bib | 1 - tests/run-tests.sh | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/crossref-short.bib b/crossref-short.bib index de0c84b..b261af2 100644 --- a/crossref-short.bib +++ b/crossref-short.bib @@ -362,6 +362,12 @@ @Proceedings{cav2010 year = "2010" } +@Proceedings{cig2008, + title = "Proc.\ CIG 2008", + booktitle = "Proc.\ CIG 2008", + year = "2008" +} + @Proceedings{cocomile2012, title = "Proc.\ CoCoMile 2012", booktitle = "Proc.\ CoCoMile 2012", diff --git a/literatur.bib b/literatur.bib index f38c539..e99bfc2 100644 --- a/literatur.bib +++ b/literatur.bib @@ -2784,7 +2784,6 @@ @Proceedings{chien-et-al-2000 @InProceedings{childs-et-al-cig2008, author = "Benjamin E. Childs and James H. Brodeur and Levente Kocsis", title = "Transpositions and Move Groups in {Monte Carlo} Tree Search", - booktitle = "2008 {IEEE} Symposium On Computational Intelligence and Games", crossref = "cig2008", pages = "389--395", year = "2008" diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 5020b3a..348ffed 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -14,7 +14,7 @@ function test() { # Check for bibtex warnings. # Crossrefs without author/editor will show up as standalone entries at the beginning of the bibliography, # but they occur too often to be worth fixing. - (bibtex -min-crossrefs=99 ${prefix} | grep "Warning--" | grep -v "Warning--to sort, need") && exit 1 || exit 0 + (bibtex -min-crossrefs=99 ${prefix} | grep "Warning--" | grep -v "Warning--to sort, need") && return 1 || return 0 } # Change into the directory of this script. @@ -23,3 +23,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")" cd paper test "paper" test "paper-short" +echo "All tests passed."