Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffi/tests: try any release or debug build artifact #13

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

dkg
Copy link
Contributor

@dkg dkg commented Jun 11, 2024

Different build patterns (in-workspace vs. as a separate crate, multiarch vs. single arch, debug vs. release, etc) appear to place the generated .so in any of:

../target/debug
../target/release
../target/$(TRIPLET)/debug
../target/$(TRIPLET)/release
../../target/debug
../../target/release
../../target/$(TRIPLET)/debug
../../target/$(TRIPLET)/release

Adjust the FFI test so that when it's not AS_INSTALLED it scans for and then tests one of these artifacts.


Sorry for the series of piecemeal edits -- i keep discovering builds with different environments, and i want this test to Just Work™ in each of them. This is a piecewise improvement over #11

Different build patterns (in-workspace vs. as a separate crate,
multiarch vs. single arch, debug vs. release, etc) appear to place the
generated .so in any of:

 ../target/debug
 ../target/release
 ../target/$(TRIPLET)/debug
 ../target/$(TRIPLET)/release
 ../../target/debug
 ../../target/release
 ../../target/$(TRIPLET)/debug
 ../../target/$(TRIPLET)/release

Adjust the FFI test so that when it's not AS_INSTALLED it scans for
and then tests one of these artifacts.
@integritychain integritychain merged commit 0e055ac into integritychain:main Jun 12, 2024
30 checks passed
@integritychain
Copy link
Owner

Thank you!

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