consolidate the tests locations
This commit is contained in:
26
src/__Tests/native/openssl-1.1/README.md
Normal file
26
src/__Tests/native/openssl-1.1/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# OpenSSL 1.1 Test Shim
|
||||
|
||||
These binaries (libcrypto.so.1.1 and libssl.so.1.1) are bundled for Mongo2Go-based integration tests so they can run on hosts that only provide OpenSSL 3.
|
||||
|
||||
Source package: https://launchpad.net/ubuntu/+archive/primary/+files/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
|
||||
|
||||
Licensing follows the OpenSSL and SSLeay licenses that accompany the upstream package.
|
||||
|
||||
## Usage
|
||||
|
||||
1. Point `LD_LIBRARY_PATH` at this directory before running any test suite that spins up Mongo2Go:
|
||||
|
||||
```bash
|
||||
export LD_LIBRARY_PATH="$(git rev-parse --show-toplevel)/tests/native/openssl-1.1/linux-x64:${LD_LIBRARY_PATH:-}"
|
||||
```
|
||||
|
||||
The helper in `tests/shared/OpenSslLegacyShim.cs` will append the path automatically when the tests run, but exporting the variable up-front avoids surprises when using custom harnesses (e.g., `dotnet test` filters).
|
||||
|
||||
2. Example one-shot command:
|
||||
|
||||
```bash
|
||||
LD_LIBRARY_PATH="$(pwd)/tests/native/openssl-1.1/linux-x64" \
|
||||
dotnet test src/Excititor/__Tests/StellaOps.Excititor.Worker.Tests/StellaOps.Excititor.Worker.Tests.csproj --nologo
|
||||
```
|
||||
|
||||
3. CI runners should add the same directory to their environment or place the binaries on a globally accessible library path.
|
||||
BIN
src/__Tests/native/openssl-1.1/linux-x64/libcrypto.so.1.1
Normal file
BIN
src/__Tests/native/openssl-1.1/linux-x64/libcrypto.so.1.1
Normal file
Binary file not shown.
BIN
src/__Tests/native/openssl-1.1/linux-x64/libssl.so.1.1
Normal file
BIN
src/__Tests/native/openssl-1.1/linux-x64/libssl.so.1.1
Normal file
Binary file not shown.
Reference in New Issue
Block a user