Skip to content

Commit

Permalink
ci.sh: Build and test provider
Browse files Browse the repository at this point in the history
The CI script is now updated with build steps and basic test commands
to verify the dynamic loading of the parsec provider.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
  • Loading branch information
gowthamsk-arm committed Feb 20, 2024
1 parent 7769642 commit ec17350
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,26 @@ set -ex

echo "OpenSSL version being used:"
openssl version

# Build parsec provider shared library
pushd parsec-openssl-provider-shared/ &&
cargo build
popd

# Try loading the build parsec provider
provider_load_result=$(openssl list -providers -provider-path ./target/debug/ -provider libparsec_openssl_provider_shared)
echo $provider_load_result

test_string='Providers:
libparsec_openssl_provider_shared
name: Parsec OpenSSL Provider
version: 0.1.0
status: active'

if [[ $test_string == $provider_load_result ]]; then
echo "Parsec OpenSSL Provider loaded successfully!!!!"
exit 0;
fi

echo "Loaded Provider has unexpected parameters!!!!"
exit 1

0 comments on commit ec17350

Please sign in to comment.