Thanks, now I'm trying to test the lib built with :
libssh2-1.8.0\build>cmake --build . --target RUN_TESTS
but all the test failed:
0% tests passed, 10 tests failed out of 10
Total Test time (real) = 1.15 sec
The following tests FAILED:
Errors while running CTest
1 - test_hostkey (Exit code 0xc0000135
)
2 - test_hostkey_hash (Exit code 0xc0000135
)
3 - test_password_auth_succeeds_with_correct_credentials
(Exit code 0xc0000135
)
4 - test_password_auth_fails_with_wrong_password (Exit code 0xc0000135
)
5 - test_password_auth_fails_with_wrong_username (Exit code 0xc0000135
)
6 - test_public_key_auth_fails_with_wrong_key (Exit code 0xc0000135
)
7 - test_public_key_auth_succeeds_with_correct_rsa_key (Exit
code 0xc0000135
)
8 - test_public_key_auth_succeeds_with_correct_dsa_key (Exit
code 0xc0000135
)
9 - test_keyboard_interactive_auth_fails_with_wrong_response
(Exit code 0xc0000135
)
10 - test_keyboard_interactive_auth_succeeds_with_correct_response
(Exit code 0xc0000135
)
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: La commande "setlocal\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: "C:\Program Files\CMake\bin\ctest.exe"
--force-new-ctest-process -C Debug\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\buil
d\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :cmEnd\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto
:cmDone\r [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxp
roj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :cmErrorLevel\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: exit /b %1\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :cmDone\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :VCEnd" s'est arrêtée avec le code 8.
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
I've also compiled manually the lib openssl :
perl Configure VC-WIN32 --prefix=c:\tools\OpenSSL\vc-win32
--openssldir=c:\tools\OpenSSL\SSL no-asm
On Mon, Feb 18, 2019 at 11:30 AM Jan Ehrhardt <phpdev_at_ehrhardt.nl> wrote:
>
> Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
> +0100):
> >Thanks looks like that with only the ROOT dir and with an absolute path works !
>
> Tricky thing: paths are relative to the directory with the
> CMakeLists.txt, so it is best to use absolute paths.
> --
> Jan
>
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2019-02-19