Skip to content

Commit

Permalink
Merge commit '7f1ebbeb3035b9a401de461969263efb6a1ad52e' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rpspringuel committed Jan 22, 2025
2 parents c7f969c + 7f1ebbe commit fdf5812
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,16 @@ function gabc_gtex_test {
then
fail "Did not fail" "$filename should have failed"
else
${SED} -e 's/^\(% File generated by gregorio \).*/\1@/' \
-e 's/\(\GregorioTeXAPIVersion{\)[^}]\+/\1@/' \
-e 's/\(\GreBeginScore{\)[^}]\+/\1@/' \
${SED} -E -e 's/^(% File generated by gregorio ).*/\1@/' \
-e 's/(\\GregorioTeXAPIVersion\{)[^}]+/\1@/' \
-e 's/(\\GreBeginScore\{)[^}]+/\1@/' \
"$outfile" > "$outfile-"
if [ -f "$expfile" ]
then
$verify "$filename" && ${SED} \
-e 's/^\(% File generated by gregorio \).*/\1@/' \
-e 's/\(\GregorioTeXAPIVersion{\)[^}]\+/\1@/' \
-e 's/\(\GreBeginScore{\)[^}]\+/\1@/' \
$verify "$filename" && ${SED} -E \
-e 's/^(% File generated by gregorio ).*/\1@/' \
-e 's/(\\GregorioTeXAPIVersion\{)[^}]+/\1@/' \
-e 's/(\\GreBeginScore\{)[^}]+/\1@/' \
"$expfile" > "$expfile-"
maybe_run "$filename" diff -q "$outfile-" "$expfile-"
else
Expand Down Expand Up @@ -346,12 +346,12 @@ function gabc_dump_test {
then
fail "Did not fail" "$filename should have failed"
else
${SED} -e 's/[0-9]\+\( (\(GRE\|S\|G\|L\|SP\|\)_\)/@\1/' "$outfile" \
${SED} -E -e 's/[0-9]*( \((GRE_|S_|G_|L_|SP_|_))/@\1/' "$outfile" \
> "$outfile-"
if [ -f "$expfile" ]
then
$verify "$filename" && ${SED} \
-e 's/[0-9]\+\( (\(GRE\|S\|G\|L\|SP\|\)_\)/@\1/' "$expfile" \
$verify "$filename" && ${SED} -E \
-e 's/[0-9]*( \((GRE_|S_|G_|L_|SP_|_))/@\1/' "$expfile" \
> "$expfile-"
maybe_run "$filename" diff -q "$outfile-" "$expfile-"
else
Expand Down Expand Up @@ -420,18 +420,18 @@ function gabc_gabc_test {
then
fail "Did not fail" "$filename should have failed"
else
${SED} -e 's/^\(% File generated by gregorio \).*/\1@/' \
-e 's/^\(generated-by: \).*;$/\1@;/' \
-e 's/^\(\GregorioTeXAPIVersion{\)[^}]*/\1@/' \
-e 's/^\(\GreBeginScore{\)[^}]*/\1@/' "$outfile" \
${SED} -E -e 's/^(% File generated by gregorio ).*/\1@/' \
-e 's/^(generated-by: ).*;$/\1@;/' \
-e 's/^(\\GregorioTeXAPIVersion\{)[^}]*/\1@/' \
-e 's/^(\\GreBeginScore\{)[^}]*/\1@/' "$outfile" \
> "$outfile-"
if [ -f "$expfile" ]
then
$verify "$filename" && ${SED} \
-e 's/^\(% File generated by gregorio \).*/\1@/' \
-e 's/^\(generated-by: \).*;$/\1@;/' \
-e 's/^\(\GregorioTeXAPIVersion{\)[^}]*/\1@/' \
-e 's/^\(\GreBeginScore{\)[^}]*/\1@/' "$expfile" \
$verify "$filename" && ${SED} -E \
-e 's/^(% File generated by gregorio ).*/\1@/' \
-e 's/^(generated-by: ).*;$/\1@;/' \
-e 's/^(\\GregorioTeXAPIVersion\{)[^}]*/\1@/' \
-e 's/^(\\GreBeginScore\{)[^}]*/\1@/' "$expfile" \
> "$expfile-"
maybe_run "$filename" diff -q "$outfile-" "$expfile-"
else
Expand Down Expand Up @@ -528,7 +528,7 @@ function typeset_and_compare {
pdffile="$filebase.pdf"
cmdoutfile="$filebase.cmdout"

if "$@" --output-directory="$outdir" "$texfile" >&"$outdir"/"$cmdoutfile"
if "$@" --output-directory="$outdir" "$texfile" >"$outdir"/"$cmdoutfile" 2>&1
then
if [[ "$indir/" == */should-fail/* ]]
then
Expand Down

0 comments on commit fdf5812

Please sign in to comment.