Skip to content

Commit ec17350

Browse files
committed
ci.sh: Build and test provider
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 <gowtham.sureshkumar@arm.com>
1 parent 7769642 commit ec17350

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ci.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,26 @@ set -ex
77

88
echo "OpenSSL version being used:"
99
openssl version
10+
11+
# Build parsec provider shared library
12+
pushd parsec-openssl-provider-shared/ &&
13+
cargo build
14+
popd
15+
16+
# Try loading the build parsec provider
17+
provider_load_result=$(openssl list -providers -provider-path ./target/debug/ -provider libparsec_openssl_provider_shared)
18+
echo $provider_load_result
19+
20+
test_string='Providers:
21+
libparsec_openssl_provider_shared
22+
name: Parsec OpenSSL Provider
23+
version: 0.1.0
24+
status: active'
25+
26+
if [[ $test_string == $provider_load_result ]]; then
27+
echo "Parsec OpenSSL Provider loaded successfully!!!!"
28+
exit 0;
29+
fi
30+
31+
echo "Loaded Provider has unexpected parameters!!!!"
32+
exit 1

0 commit comments

Comments
 (0)