-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make output test-suite robust against passing absolute paths to coqc #256
Make output test-suite robust against passing absolute paths to coqc #256
Comments
I think this is already fixed here https://github.com/math-comp/hierarchy-builder/pull/252/files?file-filters%5B%5D=.opam#diff-907ddde5421afcf185d3897a9d23d389ff87d6bec6b5dd03d1a0cd6dc31af60f (yet to be merged in master) |
How does that PR fix the issue? As far as I can tell, the file name will still be reported with the path that was passed to coqc, and hence my minor alteration of the build process to always pass absolute paths to coqc will break the output test. |
The makefile has two targets: build and tests. Make all does both. The opam package will stop invoking tests unless you call opam with --with-test. |
How do you build HB? |
I |
(The |
This issue showed up again at coq/coq#14798 (comment), is there a way to fix this? |
We instead report the pwd from the wrapped binary and then absolutize the file later on. This preserves output tests and closes math-comp/hierarchy-builder#256.
We instead report the pwd from the wrapped binary and then absolutize the file later on. This preserves output tests and closes math-comp/hierarchy-builder#256.
In order to effectively minimize developments from Coq's CI, I need to absolutize paths before passing them to coqc so that I can recognize which error message the file occurs in. (I can't think of any robust way to find the relevant file without absolutizing the paths.) However, this wrapping of coqc breaks HB's test-suite with the error message
Could you adapt the test-suite so that the output tests don't depend on whether the files are called with relative paths or absolute paths, so that I can support minimizing CI developments that depend on HB?
The text was updated successfully, but these errors were encountered: