You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In that other bug, building libnetconf 2.1.31 succeeded but running the tests failed:
12/13 Testing: test_client_ssh
12/13 Test: test_client_ssh
Command: "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests/test_client_ssh"
Directory: /var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests
"test_client_ssh" start time: Mar 25 11:15 EDT
Output:
----------------------------------------------------------
[==========] Running 16 test(s).
[ RUN ] test_nc_client_ssh_setting_auth_pref
[ OK ] test_nc_client_ssh_setting_auth_pref
[ RUN ] test_nc_client_ssh_setting_auth_hostkey_check_clb
[ OK ] test_nc_client_ssh_setting_auth_hostkey_check_clb
[ RUN ] test_nc_client_ssh_setting_auth_password_clb
[ OK ] test_nc_client_ssh_setting_auth_password_clb
[ RUN ] test_nc_client_ssh_setting_auth_interactive_clb
[ OK ] test_nc_client_ssh_setting_auth_interactive_clb
[ RUN ] test_nc_client_ssh_setting_auth_privkey_passphrase_clb
[ OK ] test_nc_client_ssh_setting_auth_privkey_passphrase_clb
[ RUN ] test_nc_client_ssh_adding_keypair
[ERR]: _nc_client_ssh_get_keypair: invalid argument (idx).
[ERR]: SSH key pair already set.
[ERR]: _nc_client_ssh_del_keypair: invalid argument (idx).
[ OK ] test_nc_client_ssh_adding_keypair
[ RUN ] test_nc_client_ssh_setting_username
[ OK ] test_nc_client_ssh_setting_username
[ RUN ] test_nc_connect_ssh_interactive_succesfull
[INF]: Trying to connect via IPv4 to 127.0.0.1:8080.
[INF]: Successfully connected to 127.0.0.1:8080 over IPv4.
[INF]: Password SSH authentication method was disabled.
[INF]: Publickey SSH authentication method was disabled.
[INF]: Keyboard-interactive authentication.
[INF]: Authentication successful.
libyang[2]: Searching for "ietf-inet-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-inet-types@2013-07-15" not found, using this as the latest revision.
libyang[2]: Searching for "ietf-yang-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-yang-types@2013-07-15" not found, using this as the latest revision.
[WRN]: Missing ietf-netconf module in context, unable to send <close-session>.
[ OK ] test_nc_connect_ssh_interactive_succesfull
[ RUN ] test_nc_connect_ssh_password_succesfull
[INF]: Trying to connect via IPv4 to 127.0.0.1:8080.
[INF]: Successfully connected to 127.0.0.1:8080 over IPv4.
[INF]: Interactive SSH authentication method was disabled.
[INF]: Publickey SSH authentication method was disabled.
[INF]: Password authentication (host "127.0.0.1", user "username").
[INF]: Authentication successful.
libyang[2]: Searching for "ietf-inet-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-inet-types@2013-07-15" not found, using this as the latest revision.
libyang[2]: Searching for "ietf-yang-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-yang-types@2013-07-15" not found, using this as the latest revision.
[WRN]: Missing ietf-netconf module in context, unable to send <close-session>.
[ OK ] test_nc_connect_ssh_password_succesfull
[ RUN ] test_nc_connect_ssh_pubkey_succesfull
[INF]: Trying to connect via IPv4 to 127.0.0.1:8080.
[INF]: Successfully connected to 127.0.0.1:8080 over IPv4.
[INF]: Interactive SSH authentication method was disabled.
[INF]: Password SSH authentication method was disabled.
[INF]: Publickey athentication.
[INF]: Trying to authenticate using pair "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/data/key_ecdsa" "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/data/key_ecdsa.pub".
[INF]: Authentication successful.
libyang[2]: Searching for "ietf-inet-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-inet-types@2013-07-15" not found, using this as the latest revision.
libyang[2]: Searching for "ietf-yang-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-yang-types@2013-07-15" not found, using this as the latest revision.
[WRN]: Missing ietf-netconf module in context, unable to send <close-session>.
[ OK ] test_nc_connect_ssh_pubkey_succesfull
[ RUN ] test_nc_connect_connection_failed
[INF]: Trying to connect via IPv4 to 127.0.0.1:8080.
[ERR]: connect() failed (Connection refused).
[ERR]: Unable to connect to 127.0.0.1:8080 (Connection refused).
[ OK ] test_nc_connect_connection_failed
[ RUN ] test_nc_connect_ssh_bad_hello
[INF]: Trying to connect via IPv4 to 127.0.0.1:8080.
[INF]: Successfully connected to 127.0.0.1:8080 over IPv4.
[INF]: Password SSH authentication method was disabled.
[INF]: Keyboard-interactive authentication.
[INF]: Authentication successful.
libyang[2]: Searching for "ietf-inet-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-inet-types@2013-07-15" not found, using this as the latest revision.
libyang[2]: Searching for "ietf-yang-types" in "/var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31_build/tests".
libyang[2]: Newer revision than "ietf-yang-types@2013-07-15" not found, using this as the latest revision.
[ OK ] test_nc_connect_ssh_bad_hello
[ RUN ] test_nc_client_ssh_ch_setting_username
[ OK ] test_nc_client_ssh_ch_setting_username
[ RUN ] test_nc_client_ssh_ch_add_bind_listen
[ERR]: nc_client_ch_add_bind_listen: invalid argument (address).
[ERR]: nc_client_ch_add_bind_listen: invalid argument (port).
[ ERROR ] --- 0 != 0xffffffffffffffff
[ LINE ] --- /var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/client/test_client_ssh.c:716: error: Failure!
[ FAILED ] test_nc_client_ssh_ch_add_bind_listen
[ RUN ] test_nc_accept_callhome
[ERR]: nc_accept_callhome: invalid argument (session).
[ ERROR ] --- 0 != 0xffffffffffffffff
[ LINE ] --- /var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/client/test_client_ssh.c:742: error: Failure!
[ FAILED ] test_nc_accept_callhome
[ RUN ] test_nc_client_ssh_callhome_successful
[ERR]: Could not bind "127.0.0.1" port 4334 (Address already in use).
[ ERROR ] --- 0xffffffffffffffff != 0
[ LINE ] --- /var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/client/test_client_ssh.c:794: error: Failure!
[ FAILED ] test_nc_client_ssh_callhome_successful
[==========] 16 test(s) run.
[ PASSED ] 13 test(s).
[ FAILED ] 3 test(s), listed below:
[ FAILED ] test_nc_client_ssh_ch_add_bind_listen
[ FAILED ] test_nc_accept_callhome
[ FAILED ] test_nc_client_ssh_callhome_successful
3 FAILED TEST(S)
<end of output>
Test time = 0.02 sec
----------------------------------------------------------
Test Failed.
"test_client_ssh" end time: Mar 25 11:15 EDT
"test_client_ssh" time elapsed: 00:00:00
----------------------------------------------------------
However I cannot tell whether the tests fail on the newer version as I cannot build it. :D
The text was updated successfully, but these errors were encountered:
I have tried compiling the current libnetconf2 in devel (requires libyang devel) with the flags you posted and it worked fine. So please post the exact commands to reproduce this, otherwise I cannot help.
I tried to build with the following *FLAGS to optimize the build:
-flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
.I got this error when building the testsuite binaries:
I originally found this while investigating downstream bug report https://bugs.gentoo.org/877449
In that other bug, building libnetconf 2.1.31 succeeded but running the tests failed:
However I cannot tell whether the tests fail on the newer version as I cannot build it. :D
The text was updated successfully, but these errors were encountered: