Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Michael Sammler
iris-coq
Commits
83a8c02a
Commit
83a8c02a
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
attempt to fix reftests for older versions of Coq
parent
339b0438
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile.coq.local
+11
-3
11 additions, 3 deletions
Makefile.coq.local
with
11 additions
and
3 deletions
Makefile.coq.local
+
11
−
3
View file @
83a8c02a
...
...
@@ -8,14 +8,20 @@ test: $(TESTFILES:.v=.vo)
.PHONY
:
test
COQ_TEST
=
$(
COQTOP
)
$(
COQDEBUG
)
-batch
-test-mode
REF_FILTER
=
egrep
-v
'(^Welcome to Coq|^Skipping rcfile loading.$$)'
# Can't use pipes because that discards error codes and dash provides no way to control that.
# Also egrep errors if it doesn't match anything, we have to ignore that.
# Oh Unix...
$(TESTFILES
:
.v=.vo): %.vo: %.v $(VFILES:.v=.vo)
$(
SHOW
)
COQTOP
[
test
]
$<
$(
HIDE
)
TEST
=
"
$$(
basename -s .v
$<
)
"
&&
\
TMPFILE
=
"
$$(
mktemp
)
"
&&
\
$(
TIMER
)
$(
COQ_TEST
)
$(
TIMING_ARG
)
$(
COQFLAGS
)
$(
COQLIBS
)
-load-vernac-source
$<
$(
TIMING_EXTRA
)
>
"
$$
TMPFILE"
&&
\
(
diff
-u
"tests/
$$
TEST.ref"
"
$$
TMPFILE"
||
(
rm
"tests/
$$
TEST.vo"
"
$$
TMPFILE"
&&
exit
1
))
&&
\
rm
"
$$
TMPFILE"
(
$(
REF_FILTER
)
<
"
$$
TMPFILE"
>
"
$$
TMPFILE.filtered"
||
true
)
&&
\
(
diff
-u
"tests/
$$
TEST.ref"
"
$$
TMPFILE.filtered"
||
rm
-f
"tests/
$$
TEST.vo"
"
$$
TMPFILE"
"
$$
TMPFILE.filtered"
)
&&
\
rm
"
$$
TMPFILE"
"
$$
TMPFILE.filtered"
# a target, for convenience sake, to create the .ref file with the current output
ref
:
$(TESTFILES:.v=.ref)
...
...
@@ -24,4 +30,6 @@ ref: $(TESTFILES:.v=.ref)
tests/%.ref
:
tests/%.v $(VFILES:.v=.vo)
$(
SHOW
)
COQTOP
[
ref]
$<
$(
HIDE
)
TEST
=
"
$$(
basename -s .v
$<
)
"
&&
\
$(
TIMER
)
$(
COQ_TEST
)
$(
TIMING_ARG
)
$(
COQFLAGS
)
$(
COQLIBS
)
-load-vernac-source
$<
$(
TIMING_EXTRA
)
>
"tests/
$$
TEST.ref"
$(
TIMER
)
$(
COQ_TEST
)
$(
TIMING_ARG
)
$(
COQFLAGS
)
$(
COQLIBS
)
-load-vernac-source
$<
$(
TIMING_EXTRA
)
>
"tests/
$$
TEST.ref"
&&
\
(
$(
REF_FILTER
)
<
"tests/
$$
TEST.ref"
>
"tests/
$$
TEST.ref.filtered"
||
true
)
&&
\
mv
"tests/
$$
TEST.ref.filtered"
"tests/
$$
TEST.ref"
This diff is collapsed.
Click to expand it.
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