TEST: add util/wrap.pl and use it#11110
Conversation
|
Looks promising. But I need to try it out first. |
Of course! I assumed nothing less |
|
I like it. How about giving it a cool and catchy name? My favourite is just but you could also call it |
|
I'm all for |
|
It dawned on me that the functionality of the wrapping script is useful on VMS and Windows cmd as well, so I'm re-writing it in perl. |
|
Hold on a bit before approving, the narrative needs more extensive changes... which means that I need to make a squashing rebase so it doesn't get messier |
d56f06e to
6cee974
Compare
|
Done. It'll be exciting to see if I got it right for Appveyor |
|
There are merge conflicts already. |
|
Argh... |
|
Well, they were easy to deal with |
6cee974 to
3d4e918
Compare
|
Done |
|
CI reset |
|
I hope to have solved the Appveyor failure. Travis failure was just a worker timeout |
|
Fixed a syntax error in Test.pm and pushed it to your repo: 3a92c221cc16fa84b3ec913cdbe12ad3cdcf3afd. |
|
Maybe you should handle the respectively the |
|
Works like a charm on Linux. I'll test it on Windows today or tomorrow. |
|
Thanks. |
|
Windows perl is... incorrect, it's So I had to hack wrap.pl to use system() instead. It should work out, I hope the theory holds |
3ff2f40 to
1b0c798
Compare
|
CIs are happy now! |
|
Ping |
|
Would you mind autosquashing the fixups (without moving the merge-base)? This would make it easier to check online what change goes where. |
|
From a user viewpoint, all looks fine. I tested the script on windows and linux. Side note: On my windows maschine the fipsinstall test crashes, but it seems to have nothing to do with the wrap.pl script. Since AppVeyor succeeds, this won't stop me from approving. I'll have to do a full rebuild and recheck the fipsinstall test. I'll open a separate issue if the problem persists. |
@levitte the fact that you delete every file explicitly, seems to push Windows to its limits. |
Please create an issue |
Could that be related to #11150? |
It seems like my windows build directory was just in a desolate state. After cleaning all build artifacts manually and rebuilding, the fipsinstall test succeeded. |
Ok. After the testsuite has passed, I'll try to clean again and if the problem persists, I'll create an issue. |
mspncp
left a comment
There was a problem hiding this comment.
I have literally no idea what this VMS stuff is all about. It looks even more cryptic than all your Perl code I've seen up to now. ;-) But the rest looks reasonable and I tested it on Windows and Linux.
|
I'll introduce you to VMS some day 😉 |
Done, see #11163. |
1b0c798 to
2078938
Compare
|
Had to rebase, INSTALL.md got updated with my changes in INSTALL |
What changes do you mean? Your branch before rebasing did not contain any changes in INSTALL, did it? So unless I'm missing something, it's reconfirmed. |
|
Oh, forget it. I mixed up INSTALL and CHANGES in my mind ;-) |
|
FWIW: I don't think this (trivial) rebase necessitates renewing the grace period. |
I was hoping you'd say so, but wanted to leave that choice to you |
util/wrap.pl is a script that defines the environment variables OPENSSL_ENGINES and OPENSSL_MODULES, then calls the command line that's given as its arguments. On a POSIX platform, the command line call is done via util/shlib_wrap.sh to ensure that the shared library paths are correct. For other platforms, util/wrap.pl currently assumes that similar things are already in place through other means. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from openssl#11110)
Since we've now switched to use util/wrap.pl to wrap uninstalled programs everywhere, there's no need to set the environment variables OPENSSL_ENGINES and OPENSSL_MODULES globally for the tests. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from openssl#11110)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from openssl#11110)
2078938 to
30a4cda
Compare
util/wrap.pl is a script that defines the environment variables
OPENSSL_ENGINES and OPENSSL_MODULES, then calls the command line
that's given as its arguments.
On a POSIX platform, the command line call is done via
util/shlib_wrap.sh to ensure that the shared library paths are
correct. For other platforms, util/wrap.pl currently assumes that
similar things are already in place through other means.
This is an alternative to #11100