forked from AleoNet/aleo-setup
-
Notifications
You must be signed in to change notification settings - Fork 64
/
test.sh
21 lines (17 loc) · 629 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -e
# Run the coordinator and e2e tests against a remote S3 bucket. Clean the bucket before each test.
# Check credentials
for cred in "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY" "$AWS_S3_BUCKET"; do
if [ -z $cred ]; then
echo "Credentials env variables must be set!"
exit 1
fi
done
# Coordinator test
echo "Cleaning S3 bucket for coordinator test..."
aws s3 rm s3://$AWS_S3_BUCKET --recursive
cargo test --test test_coordinator -- --test-threads=1
# e2e test
echo "Cleaning S3 bucket for e2e test..."
aws s3 rm s3://$AWS_S3_BUCKET --recursive
cargo test --test e2e -- --test-threads=1