Repository navigation
Conversation
dfandrich
left a comment
There was a problem hiding this comment.
I'm glad someone who knows cmake is looking at this!
4fe17d1 to
4c76a2a
Compare
test_read tests cross-build-friendly
test_read tests cross-build-friendlytest_read runs cross-build-friendly
test_read runs cross-build-friendlytest_read runs cross-build-friendly
edb4eea to
ee89c75
Compare
Also include failed CRYPT/MAC name in error message.
ee89c75 to
5649204
Compare
|
I should mention that the other reason I created a file per test is that on autoconf builds, there's no other way to easily run the crypt & hash tests since they're not integrated into automake yet. I'm not sure if automake allows the kind of environment variable override that this PR is doing in the cmake builds. If not, then we should keep the test script stubs so that we can run the tests in automake as well. |
|
For autotools, could a single script work instead of one per test? Since autotools needs a unixy shell anyway, do we also need the batch files? |
|
We don't need batch files, so if cmake is the only way for Windows people
without a Bourne shell to run tests, those can go. But, I'd rather see each
crypt and hash method test show up individually in automake's check output
rather than lumping them all into a single test.
|
|
Autotools never executed these new tests 1, so this feels out of scope for this PR. For the heck of it, I've made a single script (easier to read, extend, and reuse with any build tool). Appended it to autotools' UPDATE 1: It run successfully on Linux 2, failed on MSYS2 3. autotools stdout helpfully says: "See tests/test-suite.log". The actual test output is in that file. Some research turned up a thread with a solution: UPDATE 2: Solution works 4, with the output visible for each individual test. MSYS2 fails because "Failed to build docker image", so we now have another problem. Footnotes
|
|
My near-term goal is to get them running on autotools as well. The only thing
that has stopped me from doing it yet is that the way the test suite gets the
IP address from Docker isn't working on my machine (this is a problem mentioned
by someone else, too) and I didn't want to submit anything without testing it
locally first.
If it working right, it should say TOTAL: 35 (or whatever) and the end of the
test run, not TOTAL: 3. The latter is confusing to the user, even if all the
tests were actually run.
|
ecb96c1 to
f7698a5
Compare
|
Shell scripts restored. |
This seems stuck from the first resolved review. Please reopen if I missed something pending.
test_read runs cross-build-friendlytest_read runs cross-build-friendly
Improve tests added in 7487dcf by running `test_read` commands directly. This makes external shell/batch files unnecessary, and is friendlier with cross-builds and when run from non-default shells, like MSYS2. Also extend CRYPT/MAC test error messages with the CRYPT/MAC name. External runner shell scripts kept for future use. Closes libssh2#814
Improve tests added in 7487dcf by
running
test_readcommands directly. This makes external shell/batchfiles unnecessary, and is friendlier with cross-builds and when run
from non-default shells, like MSYS2.
Also extend CRYPT/MAC test error messages with the CRYPT/MAC name.
Closes #814
NOTE: After this, new test will have to be re-applied in pending PR #655. Sorry about this.