Skip to content

tests: gate WOLFSSH_LOCAL calls on TEST_INTERNAL - #1316

Open
ejohnstown wants to merge 2 commits into
wolfSSL:masterfrom
ejohnstown:scp-recursive-test-internal
Open

ejohnstown wants to merge 2 commits into
wolfSSL:masterfrom
ejohnstown:scp-recursive-test-internal

Conversation

@ejohnstown

@ejohnstown ejohnstown commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

The MSVC api-test project links the wolfSSH DLL import library, where WOLFSSH_LOCAL symbols are not exported, so tests/api.c tests that call library internals fail to link in a DLL Release build. The autotools api.test is built with WOLFSSH_TEST_INTERNAL and keeps running them all. Supersedes #1303.

  • gate test_wolfSSH_SCP_SendRecursiveEntry() on WOLFSSH_TEST_INTERNAL; this is the nightly-QNX-tests link failure
  • gate the OsshCert_* tests, their RSA/ECDSA vectors, and test_wolfSSH_KeyboardInteractive_emptyPrompt() the same way, latent until a winvs config enables those features

test_wolfSSH_SCP_SendRecursiveEntry() drives wsScpSendCallback(), a
WOLFSSH_LOCAL symbol. The autotools api.test defines
WOLFSSH_TEST_INTERNAL and links the test library, so it still runs
there. The MSVC api-test project links the DLL import library, where
the symbol is not exported, so the test now compiles to its stub.

- fixes LNK2001 on wsScpSendCallback in the DLL Release build
Copilot AI balanced review requested due to automatic review settings October 12, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #1316

Scan targets checked: wolfssh-bugs
Coverage: 1 of 1 in-scope changed file(s) opened by the reviewer

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

The OsshCert_* tests and test_wolfSSH_KeyboardInteractive_emptyPrompt()
call WOLFSSH_LOCAL functions, which the winvs DLL import library does
not export. Gate them on WOLFSSH_TEST_INTERNAL, like the SCP
recursive-entry test, so a DLL build with either feature still links.

- stub the OsshCert_* tests when WOLFSSH_TEST_INTERNAL is off
- gate the RSA and ECDSA certificate vectors, which only those tests use
- stub test_wolfSSH_KeyboardInteractive_emptyPrompt() the same way
@ejohnstown ejohnstown changed the title tests: gate SCP recursive-entry on TEST_INTERNAL tests: gate WOLFSSH_LOCAL calls on TEST_INTERNAL Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants