File tree Expand file tree Collapse file tree 8 files changed +252
-110
lines changed Expand file tree Collapse file tree 8 files changed +252
-110
lines changed Original file line number Diff line number Diff line change 11
11
- name : Build the container
12
12
run : docker build -t all-providers e2e_tests/provider_cfg/all
13
13
- name : Run the container to execute the test script
14
- run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec all-providers /tmp/parsec/tests/ ci.sh all
14
+ run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec all-providers /tmp/parsec/ci.sh all
15
15
16
16
mbed-crypto-provider :
17
17
name : Integration tests using Mbed Crypto provider
21
21
- name : Build the container
22
22
run : docker build -t mbed-crypto-provider e2e_tests/provider_cfg/mbed-crypto
23
23
- name : Run the container to execute the test script
24
- run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec mbed-crypto-provider /tmp/parsec/tests/ ci.sh mbed-crypto
24
+ run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec mbed-crypto-provider /tmp/parsec/ci.sh mbed-crypto
25
25
26
26
pkcs11-provider :
27
27
name : Integration tests using PKCS 11 provider
31
31
- name : Build the container
32
32
run : docker build -t pkcs11-provider e2e_tests/provider_cfg/pkcs11
33
33
- name : Run the container to execute the test script
34
- run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec pkcs11-provider /tmp/parsec/tests/ ci.sh pkcs11
34
+ run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec pkcs11-provider /tmp/parsec/ci.sh pkcs11
35
35
36
36
tpm-provider :
37
37
name : Integration tests using TPM provider
41
41
- name : Build the container
42
42
run : docker build -t tpm-provider e2e_tests/provider_cfg/tpm
43
43
- name : Run the container to execute the test script
44
- run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec tpm-provider /tmp/parsec/tests/ ci.sh tpm
44
+ run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec tpm-provider /tmp/parsec/ci.sh tpm
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ services:
7
7
jobs :
8
8
include :
9
9
- name : " Integration tests using Mbed Crypto provider"
10
- env : DOCKER_IMAGE_NAME=mbed-crypto-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/mbed-crypto SCRIPT="tests/ ci.sh mbed-crypto"
10
+ env : DOCKER_IMAGE_NAME=mbed-crypto-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/mbed-crypto SCRIPT="ci.sh mbed-crypto"
11
11
- name : " Integration tests using PKCS 11 provider"
12
- env : DOCKER_IMAGE_NAME=pkcs11-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/pkcs11 SCRIPT="tests/ ci.sh pkcs11"
12
+ env : DOCKER_IMAGE_NAME=pkcs11-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/pkcs11 SCRIPT="ci.sh pkcs11"
13
13
# PKCS11 tests are failing because of unidentified issues.
14
14
# See https://github.com/parallaxsecond/parsec/issues/116
15
15
allow_failures :
16
- - env : DOCKER_IMAGE_NAME=mbed-crypto-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/mbed-crypto SCRIPT="tests/ ci.sh mbed-crypto"
17
- - env : DOCKER_IMAGE_NAME=pkcs11-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/pkcs11 SCRIPT="tests/ ci.sh pkcs11"
16
+ - env : DOCKER_IMAGE_NAME=mbed-crypto-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/mbed-crypto SCRIPT="ci.sh mbed-crypto"
17
+ - env : DOCKER_IMAGE_NAME=pkcs11-provider DOCKER_IMAGE_PATH=e2e_tests/provider_cfg/pkcs11 SCRIPT="ci.sh pkcs11"
18
18
script :
19
19
- docker build -t $DOCKER_IMAGE_NAME $DOCKER_IMAGE_PATH
20
20
- docker run -v $(pwd):/tmp/parsec -w /tmp/parsec $DOCKER_IMAGE_NAME /tmp/parsec/$SCRIPT
Original file line number Diff line number Diff line change @@ -40,13 +40,8 @@ derivative = "2.1.1"
40
40
version = " 3.0.0"
41
41
42
42
[dev-dependencies ]
43
- num_cpus = " 1.10.1"
44
- picky-asn1-der = " 0.2.2"
45
- picky-asn1 = " 0.2.1"
46
- serde = { version = " 1.0" , features = [" derive" ] }
47
- sha2 = " 0.8.1"
48
- parsec-client = " 0.2.0"
49
- parsec-interface = { version = " 0.14.0" , features = [" testing" ] }
43
+ ring = " 0.16.12"
44
+ lazy_static = " 1.4.0"
50
45
51
46
[build-dependencies ]
52
47
bindgen = " 0.50.0"
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ It is meant to be executed inside one of the container
31
31
which Dockerfiles are in tests/per_provider/provider_cfg/*/
32
32
or tests/all_providers/
33
33
34
- Usage: ./tests/ ci.sh [--no-cargo-clean] [--no-stress-test] PROVIDER_NAME
34
+ Usage: ./ci.sh [--no-cargo-clean] [--no-stress-test] PROVIDER_NAME
35
35
where PROVIDER_NAME can be one of:
36
36
- mbed-crypto
37
37
- pkcs11
@@ -110,12 +110,13 @@ if rustup component list | grep -q clippy; then
110
110
cargo clippy --all-targets $FEATURES -- -D clippy::all -D clippy::cargo
111
111
fi
112
112
113
- echo " Unit tests"
114
- RUST_BACKTRACE=1 cargo test --lib $FEATURES
115
- echo " Doc tests"
116
- RUST_BACKTRACE=1 cargo test --doc $FEATURES
113
+ echo " Unit, doc and integration tests"
114
+ RUST_BACKTRACE=1 cargo test $FEATURES
117
115
118
- echo " Start Parsec for integration tests"
116
+ # Removing any mappings left over from integration tests
117
+ rm -rf mappings/
118
+
119
+ echo " Start Parsec for end-to-end tests"
119
120
RUST_LOG=info RUST_BACKTRACE=1 cargo run $FEATURES -- --config $CONFIG_PATH &
120
121
PARSEC_PID=$!
121
122
# Sleep time needed to make sure Parsec is ready before launching the tests.
You can’t perform that action at this time.
0 commit comments