blob: c8831f653dce8670df407026f54e1a33bf4c0976 [file] [log] [blame]
#!/bin/bash
# Copyright 2019 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
set -eu
FEATURES="insecure kdf rand-bytes rsa-pkcs1v15 experimental-sha512-ec"
# Test with each feature individually
for features in $FEATURES run-symbol-conflict-test; do
cargo test --features "$features"
done
# Test with all features together to make sure they work
# correctly together. Don't both with run-symbol-conflict-test
# since a) it takes a long time and, b) it isn't affected by
# other features.
cargo test --features "$FEATURES"