Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Abhishek Anand
Iris
Commits
dbf8321a
Commit
dbf8321a
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
change the way we generate test reference files
parent
2f1ae293
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Makefile.coq.local
+5
-15
5 additions, 15 deletions
Makefile.coq.local
README.md
+1
-1
1 addition, 1 deletion
README.md
ci
+1
-1
1 addition, 1 deletion
ci
with
8 additions
and
18 deletions
.gitlab-ci.yml
+
1
−
1
View file @
dbf8321a
...
...
@@ -29,7 +29,7 @@ variables:
build-coq.dev
:
<<
:
*template
variables
:
BUILD_TARGET
:
"
ref
"
# don't check test output
MAKE_REF
:
"
1
"
# don't check test output
OPAM_PINS
:
"
coq
version
dev"
VALIDATE
:
"
1"
...
...
This diff is collapsed.
Click to expand it.
Makefile.coq.local
+
5
−
15
View file @
dbf8321a
...
...
@@ -19,24 +19,14 @@ tests/.coqdeps.d: $(TESTFILES)
$(
HIDE
)$(
COQDEP
)
-dyndep
var
$(
COQMF_COQLIBS_NOML
)
$^
$(
redir_if_ok
)
-include
tests/.coqdeps.d
$(TESTFILES
:
.v=.vo): %.vo: %.v
$(TESTFILES
:
.v=.vo): %.vo: %.v
$(if $(MAKE_REF)
,,
%.ref)
$(
SHOW
)
COQTOP
[
test
]
$<
$(
HIDE
)
TEST
=
"
$$(
basename -s .v
$<
)
"
&&
\
TMPFILE
=
"
$$(
mktemp
)
"
&&
\
$(
TIMER
)
$(
COQ_TEST
)
$(
TIMING_ARG
)
$(
COQFLAGS
)
$(
COQLIBS
)
-load-vernac-source
$<
$(
TIMING_EXTRA
)
>
"
$$
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"
&&
\
$(
if
$(
MAKE_REF
)
,
\
mv
"
$$
TMPFILE.filtered"
"tests/
$$
TEST.ref"
,
\
diff
-u
"tests/
$$
TEST.ref"
"
$$
TMPFILE.filtered"
)
&&
\
rm
-f
"
$$
TMPFILE"
"
$$
TMPFILE.filtered"
&&
\
touch
$@
# a target, for convenience sake, to create the .ref file with the current output
ref
:
$(TESTFILES:.v=.ref)
.PHONY
:
ref
# coqdep doesn't emit dependencies for these so we just depend on everything
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"
&&
\
(
$(
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.
README.md
+
1
−
1
View file @
dbf8321a
...
...
@@ -118,6 +118,6 @@ The files in `tests/` are test cases. Each of the `.v` files comes with a
matching
`.ref`
file containing the expected output of
`coqc`
. Adding
`Show.`
in selected places in the proofs makes
`coqc`
print the current goal state.
This is used to make sure the proof mode prints goals and reduces terms the way
we expect it to. You can run
`make
ref
`
to re-generate all the
`.ref`
files;
we expect it to. You can run
`
MAKE_REF=1
make`
to re-generate all the
`.ref`
files;
this is useful after adding or removing
`Show.`
from a test. If you do this,
make sure to check the diff for any unexpected changes in the output!
This diff is collapsed.
Click to expand it.
ci
@
8ec855ae
Compare
16c8b610
...
8ec855ae
Subproject commit
16c8b6107119db3448b6828d3d2757888f2b2376
Subproject commit
8ec855ae44ec77fa7ce4e13101c6a08441d3abba
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