Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Commits
c317cd31
Commit
c317cd31
authored
1 year ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
sync test output check with Iris
parent
bc24e51c
No related branches found
No related tags found
No related merge requests found
Pipeline
#100083
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.coq.local
+9
-9
9 additions, 9 deletions
Makefile.coq.local
test-normalizer.sed
+0
-6
0 additions, 6 deletions
test-normalizer.sed
with
9 additions
and
15 deletions
Makefile.coq.local
+
9
−
9
View file @
c317cd31
...
...
@@ -24,8 +24,10 @@ test: $(TESTFILES:.v=.vo)
.PHONY
:
test
COQ_TEST
=
$(
COQTOP
)
$(
COQDEBUG
)
-batch
-test-mode
# These versions of Coq are known to have different output so we don't test them.
# Need to make this a lazy variable (`=` instead of `:=`) since COQ_VERSION is only set later.
COQ_MINOR_VERSION
=
$(
shell
echo
"
$(
COQ_VERSION
)
"
|
grep
-E
'^[0-9]+\.[0-9]+\b'
-o
)
# Make sure to recognize both 8.$NUM.0 and 8.$NUM+alpha.
COQ_NOREF
=
$(
shell
echo
"
$(
COQ_VERSION
)
"
|
grep
-E
"^8
\.
(16|17|18|20
)
[.+]"
-q
&&
echo
1
)
tests/.coqdeps.d
:
$(TESTFILES)
$(
SHOW
)
'COQDEP TESTFILES'
...
...
@@ -41,17 +43,15 @@ tests/.coqdeps.d: $(TESTFILES)
# - Either compare the result with the reference file, or move it over the reference file.
# - Cleanup, and mark as done for make.
$(TESTFILES
:
.v=.vo): %.vo: %.v $(if $(MAKE_REF)
,,
%.ref) $(NORMALIZER)
$(
HIDE
)
if
test
-f
$*
".
$(
COQ_MINOR_VERSION
)
.ref"
;
then
\
REF
=
$*
".
$(
COQ_MINOR_VERSION
)
.ref"
;
\
else
\
REF
=
$*
".ref"
;
\
fi
&&
\
echo
"COQTEST
$(
if
$(
MAKE_REF
)
, [make ref],
)
$<
(ref:
$$
REF)"
&&
\
$(
HIDE
)
REF
=
$*
".ref"
&&
\
echo
"COQTEST
$(
if
$(
COQ_NOREF
)
, [ref diff ignored],
$(
if
$(
MAKE_REF
)
, [make ref],
))
$<
(ref:
$$
REF)"
&&
\
TMPFILE
=
"
$$(
mktemp
)
"
&&
\
unset
OCAMLRUNPARAM
&&
\
$(
TIMER
)
$(
COQ_TEST
)
$(
COQFLAGS
)
$(
COQLIBS
)
-load-vernac-source
$<
>
"
$$
TMPFILE"
&&
\
sed
-f
$(
NORMALIZER
)
"
$$
TMPFILE"
>
"
$$
TMPFILE"
.new
&&
\
sed
-E
-f
$(
NORMALIZER
)
"
$$
TMPFILE"
>
"
$$
TMPFILE"
.new
&&
\
mv
"
$$
TMPFILE"
.new
"
$$
TMPFILE"
&&
\
$(
if
$(
MAKE_REF
)
,mv
"
$$
TMPFILE"
"
$$
REF"
,diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
)
&&
\
$(
if
$(
COQ_NOREF
)
,
(
diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
||
true
)
,
\
$(
if
$(
MAKE_REF
)
,mv
"
$$
TMPFILE"
"
$$
REF"
,diff
--strip-trailing-cr
-u
"
$$
REF"
"
$$
TMPFILE"
)
\
)
&&
\
rm
-f
"
$$
TMPFILE"
&&
\
touch
$@
This diff is collapsed.
Click to expand it.
test-normalizer.sed
+
0
−
6
View file @
c317cd31
# adjust for https://github.com/coq/coq/pull/13656
s
/
subgoal
/
goal
/
g
# merge with subsequent line for https://github.com/coq/coq/pull/14999
/
[
0-9
]
*
focused goals
\?
$
/
{
N
;
s
/
\n
*
/
/;
}
# locations in Fail added in https://github.com/coq/coq/pull/15174
/
^
File
/
d
# extra space removed in https://github.com/coq/coq/pull/16130
s
/
=
$
/
=
/
This diff is collapsed.
Click to expand it.
Ralf Jung
@jung
mentioned in merge request
!549 (closed)
·
1 year ago
mentioned in merge request
!549 (closed)
mentioned in merge request !549
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment