Skip to content

Commit

Permalink
Be more Mac OSX proof (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Oct 25, 2024
1 parent 008b756 commit 6230f75
Show file tree
Hide file tree
Showing 49 changed files with 90 additions and 180 deletions.
6 changes: 2 additions & 4 deletions examples/run-example-000.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ set -x
#
# Note also that the line numbers tend to be one larger in old
# versions of Coq (<= 8.6?)
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
Set
: Type
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1\(0\|1\), characters 0-15:
Expand All @@ -55,7 +55,6 @@ I think the error is 'Error: The command has not failed\s\?!
.\?'\.
The corresponding regular expression is 'File "\[^"\]+", line (\[0-9\]+), characters \[0-9-\]+:\\\\n(Error:\\\\s+The\\\\s+command\\\\s+has\\\\s+not\\\\s+failed.*
EOF
)

# pre-build the files to normalize the output for the run we're testing
find "$DIR/$EXAMPLE_DIRECTORY" \( -name "*.vo" -o -name "*.glob" \) -delete
Expand Down Expand Up @@ -89,15 +88,14 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ("-emacs"\( "-w" "-deprecated-native-compiler-option,-native-compiler-disabled"\)\?\( "-native-compiler" "ondemand"\)\? "-nois" "-R" "\." "Top"\( "-top" "Top\.example_[0-9]\+"\)\?) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Fail Check Set\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-012.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 6-10:
Error: Illegal application (Non-functional construction):\s
The expression "Set" of type "Type"
Expand All @@ -52,7 +52,6 @@ The corresponding regular expression is 'File "\[^"\]+", line (\[0-9\]+), charac
\?Is this correct? \[(y)es/(n)o\] Traceback (most recent call last):
EOF
)
# pre-build the files to normalize the output for the run we're testing
# ??? sometimes this doesn't create the output file, cf https://gitlab.com/coq/coq/-/jobs/591578724 ????
# so for now, we emit the output
Expand Down Expand Up @@ -94,14 +93,13 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Notation "(+ \*) " := (Set Set)\.
Check (+\*)\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-013.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters \(6-9\|0-16\):
Error:
The term "foo" has type "Type" while it is expected to have type[
]\+"Set".*
EOF
)
# pre-build the files to normalize the output for the run we're testing
rm -f *.vo *.glob *.d .*.d
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" -R . Foo # 2>/dev/null >/dev/null
Expand Down Expand Up @@ -77,7 +76,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" -R . Foo || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Expand All @@ -87,7 +86,6 @@ Definition foo := Set\.
Check foo : Set\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line [0-9]\+, characters 6-\(13\|41\):
Error:\(
\|\s*\)The term "eq_refl" has type "forall x : ?[0-9A-Z]\+, eq x x"
\s*while it is expected to have type "eq v (forall x : Prop, x)"\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
rm -f *.vo *.glob *.d .*.d
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" --arg=-impredicative-set 2>/dev/null >/dev/null
Expand Down Expand Up @@ -77,7 +76,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines\(, then from [0-9]\+ lines to [0-9]\+ lines\)\? \*)
(\* coqc version [^\*]*\*)
Expand All @@ -87,7 +86,6 @@ Definition v := ((forall x : Set, eq x x) : Set)\.
Check eq_refl : eq v (forall x : Prop, x)\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-015.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
Set
: Type
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 0-15:
Expand All @@ -48,7 +48,6 @@ Error: The command has not failed\s\?!
I think the error is 'Error: The command has not failed\s\?!
.\?'\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" 2>/dev/null >/dev/null
# kludge: create the .glob file so we don't run the makefile
Expand Down Expand Up @@ -80,15 +79,14 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Fail Check Set\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-016.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 6-\(7\|13\):
Error:\(
\| \)The term "X" has type "\(Set ->\|forall _ : Set,\) Set" while it is expected to have type
EOF
)
# pre-build the files to normalize the output for the run we're testing
"${COQBIN}coqc" -nois -R Bar Qux Bar/A.v -q
"${COQBIN}coqc" -nois -R Baz Qux Baz/A.v -q
Expand Down Expand Up @@ -78,7 +77,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines\(, then from [0-9]\+ lines to [0-9]\+ lines\)\? \*)
(\* coqc version [^\*]*\*)
Expand All @@ -88,7 +87,6 @@ Import Qux\.A\.
Check X : Set\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-017.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
Error:[
]*The term "X" has type "Type" while it is expected to have type[
]*"Y".*
EOF
)
# pre-build the files to normalize the output for the run we're testing
cd "PLACEHOLDER/PLACEHOLDER" || exit $?
${COQBIN}coqc -nois -R ../.. Foo ../../A.v
Expand Down Expand Up @@ -75,7 +74,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Expand All @@ -85,7 +84,6 @@ Definition Y := Set.
Check X : Y.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
3 changes: 1 addition & 2 deletions examples/run-example-018.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ ${PYTHON} "$DIR/../minimize-requires.py" "$EXAMPLE_INPUT_COPY" -i --absolutize |
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
Require Import Coq.Program.Program.
Require Export Coq.Arith.Arith.
Definition foo : True. program_simpl. Qed.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_INPUT_COPY" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-019.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 2-39:
Error: Tactic failure\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
${COQBIN}coqc -nois -q example_19.v
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" 2>/dev/null >/dev/null
Expand Down Expand Up @@ -73,7 +72,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines\(, then from [0-9]\+ lines to [0-9]\+ lines\)\? \*)
(\* coqc version [^\*]*\*)
Expand All @@ -83,7 +82,6 @@ Goal x\.
lazymatch goal with \|- x => fail end\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-020.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 2-7:
Error: Tactic failure\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
${COQBIN}coqc -nois -q example_19.v
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" 2>/dev/null >/dev/null
Expand Down Expand Up @@ -73,7 +72,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines\(, then from [0-9]\+ lines to [0-9]\+ lines\)\? \*)
(\* coqc version [^\*]*\*)
Expand All @@ -83,7 +82,6 @@ Goal x\.
fail\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-021.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 6-9:
Error: The reference aaa was not found in the current environment\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
${COQBIN}coqc -q example_21.v
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" 2>/dev/null >/dev/null
Expand Down Expand Up @@ -73,14 +72,13 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines\(, then from [0-9]\+ lines to [0-9]\+ lines\)\? \*)
(\* coqc version [^\*]*\*)
Check aaa.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-025.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 0-31:
Error: The command has not failed\s\?!
.\?Does this output display the correct error? \[(y)es/(n)o\]\s
I think the error is 'Error: The command has not failed\s\?!
.\?'\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
echo "y" | find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" 2>/dev/null >/dev/null
# kludge: create the .glob file so we don't run the makefile
Expand Down Expand Up @@ -79,7 +78,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Expand All @@ -93,7 +92,6 @@ Definition baz := Eval unfold bar in bar\.
Fail Definition foo := 1 + baz\.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
6 changes: 2 additions & 4 deletions examples/run-example-026.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ set -x
# free to remove this section.
#
# Note that the -top argument only appears in Coq >= 8.4
EXPECTED_ERROR=$(cat <<EOF
{ EXPECTED_ERROR=$(cat); } <<EOF
File "/[a-z]\+/tmp[A-Za-z0-9_/]\+\.v", line 1[0-9], characters 0-23:
Error: The command has not failed\s\?!
.\?Does this output display the correct error? \[(y)es/(n)o\]\s
I think the error is 'Error: The command has not failed\s\?!
.\?'\.
EOF
)
# pre-build the files to normalize the output for the run we're testing
rm -f ${FILES_TO_REMOVE}
for i in ${EXTRA_FILES}; do
Expand Down Expand Up @@ -88,7 +87,7 @@ find_bug "$EXAMPLE_INPUT" "$EXAMPLE_OUTPUT" "${EXTRA_ARGS[@]}" || exit $?
# Put some segment that you expect to see in the file here. Or count
# the number of lines. Or make some other test. Or remove this block
# entirely if you don't care about the minimized file.
EXPECTED=$(cat <<EOF
{ EXPECTED=$(cat); } <<EOF
(\* -\*- mode: coq; coq-prog-args: ([^)]*) -\*- \*)
(\* File reduced by coq-bug-minimizer from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)
(\* coqc version [^\*]*\*)
Expand All @@ -98,7 +97,6 @@ Axiom a : Set.
Fail Definition b := a.
EOF
)

EXPECTED_ONE_LINE="$(echo "$EXPECTED" | grep -v '^$' | tr '\n' '\1')"
ACTUAL="$(cat "$EXAMPLE_OUTPUT" | grep -v '^$' | tr '\n' '\1')"
Expand Down
Loading

0 comments on commit 6230f75

Please sign in to comment.