Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lennard Gäher
Iris
Commits
2eb9667f
Commit
2eb9667f
authored
Dec 10, 2020
by
Ralf Jung
Browse files
minor cleanup in test harness
parent
72fe576e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.coq.local
View file @
2eb9667f
...
...
@@ -8,7 +8,7 @@ MAKE_REF:=
real-all
:
$(if $(NO_TEST)
,,
test)
# the test suite
TESTFILES
:=
$(
wildcard
tests/
*
.v
)
TESTFILES
:=
$(
shell
find tests/
-name
"
*.v
"
)
NORMALIZER
:=
test-normalizer.sed
test
:
$(TESTFILES:.v=.vo)
...
...
@@ -35,11 +35,10 @@ 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)TEST
=
"
$
$(
basename
-s .v
$<
)
"
&&
\
if
test
-f
"tests/
$$
TEST.
$(COQ_MINOR_VERSION)
.ref"
;
then
\
REF
=
"tests/
$$
TEST.
$(COQ_MINOR_VERSION)
.ref"
;
\
$(HIDE)
if
test
-f
$*
".
$(COQ_MINOR_VERSION)
.ref"
;
then
\
REF
=
$*
".
$(COQ_MINOR_VERSION)
.ref"
;
\
else
\
REF
=
"tests/
$$
TEST
.ref"
;
\
REF
=
$*
"
.ref"
;
\
fi
&&
\
echo
"COQTEST
$(
if
$(COQ_OLD)
, [no ref],
$(
if
$(MAKE_REF)
, [make ref],
))
$<
$(
if
$(COQ_OLD)
,, (ref:
$$
REF
))
"
&&
\
TMPFILE
=
"
$
$(mktemp)
"
&&
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment