Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/ci_script/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ runs:
image-name: "${{ env.TEST_DOCKER_IMAGE }}"
image-path: "/tmp"
- name: Run the container to execute the test script
run: docker run -v $(pwd):/tmp/parsec-openssl-provider -w /tmp/parsec-openssl-provider --env RUST_TOOLCHAIN_VERSION=${{ inputs.rs-version }} -t ${{ env.TEST_DOCKER_IMAGE }} /tmp/parsec-openssl-provider/tests/ci.sh --${{ inputs.ci-flags }}
run: docker run -v $(pwd):/tmp/parsec-openssl-provider -w /tmp/parsec-openssl-provider --env RUST_TOOLCHAIN_VERSION=${{ inputs.rs-version }} -t ${{ env.TEST_DOCKER_IMAGE }} /tmp/parsec-openssl-provider/tests/ci.sh --${{ inputs.ci-flags }} --create-keys
shell: bash
13 changes: 10 additions & 3 deletions tests/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ usage () {
printf "
Continuous Integration test script

Usage: ./ci.sh --TEST
Usage: ./ci.sh --TEST --OPTION
where TEST can be one of:
--build
--build-and-test
--static-checks
and OPTION one of:
--create-keys
"
}

Expand Down Expand Up @@ -44,6 +46,7 @@ rustup update
BUILD="False"
TEST="False"
STATIC_CHECKS="False"
CREATE_KEYS="False"

while [ "$#" -gt 0 ]; do
case "$1" in
Expand All @@ -57,6 +60,9 @@ while [ "$#" -gt 0 ]; do
--static-checks )
STATIC_CHECKS="True"
;;
--create-keys )
CREATE_KEYS="True"
;;
*)
error_msg "Unknown argument: $1"
;;
Expand All @@ -81,8 +87,9 @@ if [ "$TEST" == "True" ]; then

wait_for_service

parsec-tool create-rsa-key -s -b 2048 -k PARSEC_TEST_KEYNAME

if [ "$CREATE_KEYS" == "True" ]; then
parsec-tool create-rsa-key -s -b 2048 -k PARSEC_TEST_KEYNAME
fi
# 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
Expand Down