89
89
# #############
90
90
# Build test #
91
91
# #############
92
- RUST_BACKTRACE=1 cargo build -vv $FEATURES
92
+ RUST_BACKTRACE=1 cargo build $FEATURES
93
93
94
94
# ################
95
95
# Static checks #
101
101
fi
102
102
if rustup component list | grep -q clippy
103
103
then
104
- cargo clippy --all-targets $FEATURES -- -D warnings
104
+ cargo clippy --all-targets $FEATURES -- -D clippy::all
105
105
fi
106
106
107
107
# ###########################
@@ -113,26 +113,26 @@ RUST_BACKTRACE=1 cargo test --doc $FEATURES
113
113
# #####################################
114
114
# Start Parsec for integration tests #
115
115
# #####################################
116
- RUST_BACKTRACE=1 cargo run -vv $FEATURES -- --config $CONFIG_PATH &
116
+ RUST_LOG=info RUST_BACKTRACE=1 cargo run $FEATURES -- --config $CONFIG_PATH &
117
117
SERVER_PID=$!
118
118
# Sleep time needed to make sure Parsec is ready before launching the tests.
119
119
sleep 5
120
120
121
121
if [[ $1 = " all" ]]
122
122
then
123
123
# All providers tests
124
- RUST_BACKTRACE=1 cargo test -vv $FEATURES all_providers
124
+ RUST_BACKTRACE=1 cargo test $FEATURES all_providers
125
125
else
126
126
# Per provider tests
127
127
# ###############
128
128
# Normal tests #
129
129
# ###############
130
- RUST_BACKTRACE=1 cargo test -vv $FEATURES normal_tests
130
+ RUST_BACKTRACE=1 cargo test $FEATURES normal_tests
131
131
132
132
# ####################
133
133
# Persistence tests #
134
134
# ####################
135
- RUST_BACKTRACE=1 cargo test -vv $FEATURES persistent-before
135
+ RUST_BACKTRACE=1 cargo test $FEATURES persistent-before
136
136
137
137
# Create a fake mapping file for the root application, the provider and a
138
138
# key name of "Test Key". It contains a valid PSA Key ID.
@@ -152,13 +152,25 @@ else
152
152
153
153
# Trigger a configuration reload to load the new mappings.
154
154
kill -s SIGHUP $SERVER_PID
155
+ # Sleep time needed to make sure Parsec is ready before launching the tests.
156
+ sleep 5
157
+
158
+ RUST_BACKTRACE=1 cargo test $FEATURES persistent-after
155
159
156
- RUST_BACKTRACE=1 cargo test -vv $FEATURES persistent-after
160
+ kill $SERVER_PID
161
+ # Sleep time needed to make sure Parsec is killed.
162
+ sleep 2
157
163
158
164
# ###############
159
165
# Stress tests #
160
166
# ###############
161
- RUST_BACKTRACE=1 cargo test -vv $FEATURES stress_test
167
+ # Change the log level for the stress tests because logging is limited on the
168
+ # CI servers.
169
+ RUST_LOG=error RUST_BACKTRACE=1 cargo run $FEATURES -- --config $CONFIG_PATH &
170
+ SERVER_PID=$!
171
+ sleep 5
172
+
173
+ RUST_BACKTRACE=1 cargo test $FEATURES stress_test
162
174
fi
163
175
164
176
kill $SERVER_PID
0 commit comments