Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
RT-PROOFS
PROSA - Formally Proven Schedulability Analysis
Commits
4daaaa25
Commit
4daaaa25
authored
2 years ago
by
Björn Brandenburg
Browse files
Options
Downloads
Patches
Plain Diff
CI: account for proof irrelevance when checking validation output
parent
f9449916
No related branches found
No related tags found
1 merge request
!217
Added refinements
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+15
-1
15 additions, 1 deletion
.gitlab-ci.yml
scripts/check-validation-output.sh
+35
-15
35 additions, 15 deletions
scripts/check-validation-output.sh
with
50 additions
and
16 deletions
.gitlab-ci.yml
+
15
−
1
View file @
4daaaa25
...
@@ -91,9 +91,10 @@ compile-and-doc-and-validate:
...
@@ -91,9 +91,10 @@ compile-and-doc-and-validate:
script
:
script
:
-
!reference
[
.install-dependencies
,
script
]
-
!reference
[
.install-dependencies
,
script
]
-
./create_makefile.sh --without-classic
-
./create_makefile.sh --without-classic
-
make -j ${NJOBS}
-
!reference
[
.make-html
,
script
]
-
!reference
[
.make-html
,
script
]
-
make validate 2>&1 | tee validation-results.txt
-
make validate 2>&1 | tee validation-results.txt
-
scripts/check-validation-output.sh validation-results.txt
-
scripts/check-validation-output.sh
--accept-proof-irrelevance
validation-results.txt
artifacts
:
artifacts
:
name
:
"
prosa-spec-$CI_COMMIT_REF_NAME"
name
:
"
prosa-spec-$CI_COMMIT_REF_NAME"
paths
:
paths
:
...
@@ -102,6 +103,19 @@ compile-and-doc-and-validate:
...
@@ -102,6 +103,19 @@ compile-and-doc-and-validate:
-
"
pretty/"
-
"
pretty/"
expire_in
:
1 week
expire_in
:
1 week
# Check that proof irrelevance shows up only due to refinements.
compile-and-validate
:
stage
:
build
extends
:
-
.not_in_wip_branches
-
.preferred-stable-version
script
:
-
!reference
[
.install-dependencies
,
script
]
-
./create_makefile.sh --without-classic --without-refinements
-
make -j ${NJOBS}
-
make validate 2>&1 | tee validation-results.txt
-
scripts/check-validation-output.sh validation-results.txt
classic-compile-and-doc-and-validate
:
classic-compile-and-doc-and-validate
:
stage
:
build
stage
:
build
extends
:
extends
:
...
...
This diff is collapsed.
Click to expand it.
scripts/check-validation-output.sh
+
35
−
15
View file @
4daaaa25
#!/bin/sh
#!/bin/sh
set
-e
set
-e
RESULTS
=
"
$1
"
while
!
[
-z
"
$1
"
]
do
case
"
$1
"
in
--accept-proof-irrelevance
)
ACCEPT_PI
=
1
;;
-
*
)
echo
"Unrecognized option:
$1
"
exit
1
;;
*
)
RESULTS
=
"
$1
"
;;
esac
shift
done
[
-e
"
$RESULTS
"
]
||
exit
2
[
-e
"
$RESULTS
"
]
||
exit
2
...
@@ -11,7 +26,9 @@ EXPECTED="/tmp/expected-validation-output"
...
@@ -11,7 +26,9 @@ EXPECTED="/tmp/expected-validation-output"
# strip the list of files and COQDEP output
# strip the list of files and COQDEP output
grep
-v
'COQDEP VFILES'
"
$RESULTS
"
|
grep
-v
'"coqchk" -silent'
>
"
$OBSERVED
"
grep
-v
'COQDEP VFILES'
"
$RESULTS
"
|
grep
-v
'"coqchk" -silent'
>
"
$OBSERVED
"
cat
>
$EXPECTED
<<
EOF
if
[
-z
"
$ACCEPT_PI
"
]
then
cat
>
$EXPECTED
<<
EOF
CONTEXT SUMMARY
CONTEXT SUMMARY
===============
===============
...
@@ -27,17 +44,8 @@ CONTEXT SUMMARY
...
@@ -27,17 +44,8 @@ CONTEXT SUMMARY
* Inductives whose positivity is assumed: <none>
* Inductives whose positivity is assumed: <none>
EOF
EOF
else
if
!
diff
--brief
"
$OBSERVED
"
"
$EXPECTED
"
>
/dev/null
cat
>
$EXPECTED
<<
EOF
then
echo
"[!!] Validation output does not match expected output."
echo
"[II] Trying workaround for https://github.com/coq/coq/issues/13324"
# strip the list of files, COQDEP output, and
# filter bogus ltac: axioms (see Coq issue 13324)
grep
-v
'COQDEP VFILES'
"
$RESULTS
"
|
grep
-v
'"coqchk" -silent'
|
grep
-v
"ltac_gen_subproof"
>
"
$OBSERVED
"
# the list of axioms should now be an empty list
cat
>
$EXPECTED
<<
EOF
CONTEXT SUMMARY
CONTEXT SUMMARY
===============
===============
...
@@ -45,6 +53,7 @@ CONTEXT SUMMARY
...
@@ -45,6 +53,7 @@ CONTEXT SUMMARY
* Theory: Set is predicative
* Theory: Set is predicative
* Axioms:
* Axioms:
Coq.Logic.ProofIrrelevance.proof_irrelevance
* Constants/Inductives relying on type-in-type: <none>
* Constants/Inductives relying on type-in-type: <none>
...
@@ -53,10 +62,21 @@ CONTEXT SUMMARY
...
@@ -53,10 +62,21 @@ CONTEXT SUMMARY
* Inductives whose positivity is assumed: <none>
* Inductives whose positivity is assumed: <none>
EOF
EOF
if
!
diff
--brief
"
$OBSERVED
"
"
$EXPECTED
"
>
/dev/null
fi
if
!
diff
--brief
"
$EXPECTED
"
"
$OBSERVED
"
>
/dev/null
then
echo
"[!!] Validation output does not match expected output."
echo
"[II] Trying workaround for https://github.com/coq/coq/issues/13324"
# strip the list of files, COQDEP output, and
# filter bogus ltac: axioms (see Coq issue 13324)
grep
-v
'COQDEP VFILES'
"
$RESULTS
"
|
grep
-v
'"coqchk" -silent'
|
grep
-v
"ltac_gen_subproof"
>
"
$OBSERVED
"
# the list of axioms should now be an empty list
if
!
diff
--brief
"
$EXPECTED
"
"
$OBSERVED
"
>
/dev/null
then
then
echo
"[!!] Validation output still does not match expected output."
echo
"[!!] Validation output still does not match expected output."
diff
-u
"
$
OBSERVED
"
"
$EXPECT
ED
"
diff
-u
"
$
EXPECTED
"
"
$OBSERV
ED
"
exit
3
exit
3
fi
fi
fi
fi
...
...
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