Skip to content

Compare physical paths in test data stamp and distclean rules - #12066

Open
julek-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
julek-wolfssl:fix-test-data-symlinked-srcdir
Open

julek-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
julek-wolfssl:fix-test-data-symlinked-srcdir

Conversation

@julek-wolfssl

Copy link
Copy Markdown
Member

When configure is run as $(pwd -P)/./configure from a symlinked source directory, abs_top_srcdir and abs_top_builddir differ as strings even for an in-tree build. The stamp rule then treated the build as out-of-tree and deleted the real certs, input and quit, replacing each with a symlink to itself.

The stamp and distclean rules now compare physical paths instead of the raw strings, so an in-tree build is recognized correctly and the test data is left alone.

Running configure as $(pwd -P)/./configure from a symlinked source dir
makes abs_top_srcdir and abs_top_builddir differ as strings for an
in-tree build. The stamp rule then deleted the real certs, input and
quit and replaced each with a symlink to itself.
@julek-wolfssl julek-wolfssl self-assigned this Nov 9, 2026
Copilot AI balanced review requested due to automatic review settings November 9, 2026 14:14

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.

🟢 Approval recommended

No active review issues were identified for the physical-path comparison changes in test-data setup and cleanup.

No open issues 🎉

What changed in this PR

This PR prevents test-data deletion when an in-tree build uses a symlinked source directory by comparing physical source and build paths instead of their raw strings.

Changes:

  • Use physical-path comparisons in the test-data stamp and distclean rules.
  • Update comments to explain why physical paths are required.
File Description
Makefile.am Corrects in-tree build detection in test-data setup and cleanup to preserve source files.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

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.

2 participants