From f6236ac7783a6033c279d31f1519258f88c050a1 Mon Sep 17 00:00:00 2001 From: Thomas Powell Date: Fri, 19 Apr 2024 15:22:36 -0400 Subject: [PATCH] openssl checks Signed-off-by: Thomas Powell --- omnibus-test.ps1 | 7 +++++++ omnibus-test.sh | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/omnibus-test.ps1 b/omnibus-test.ps1 index 64cbad4..ab78398 100644 --- a/omnibus-test.ps1 +++ b/omnibus-test.ps1 @@ -28,3 +28,10 @@ If ($lastexitcode -ne 0) { Throw $lastexitcode } & $embedded_bin_dir\bundle.bat --version If ($lastexitcode -ne 0) { Throw $lastexitcode } + +& $embedded_bin_dir\openssl.exe version +If ($lastexitcode -ne 0) { Throw $lastexitcode } + +If ((Get-Command "openssl.exe").Source -ne $embedded_bin_dir\openssl.exe) { + Throw "OpenSSL does not point to embedded bin dir" +} \ No newline at end of file diff --git a/omnibus-test.sh b/omnibus-test.sh index 97a3f32..5e24dd3 100755 --- a/omnibus-test.sh +++ b/omnibus-test.sh @@ -37,4 +37,5 @@ done "$EMBEDDED_BIN_DIR/gem" --version "$EMBEDDED_BIN_DIR/bundle" --version "$EMBEDDED_BIN_DIR/nokogiri" --version -"$EMBEDDED_BIN_DIR/ruby" -r openssl -e 'puts "Ruby can load OpenSSL"' \ No newline at end of file +"$EMBEDDED_BIN_DIR/ruby" -r openssl -e 'puts "Ruby can load OpenSSL"' +"$EMBEDDED_BIN_DIR/openssl" version # ensure openssl command works \ No newline at end of file