-
Notifications
You must be signed in to change notification settings - Fork 454
/
integration_tests.sh
executable file
·44 lines (38 loc) · 1.33 KB
/
integration_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
set -e
TEST_DIR="./opentelemetry-otlp/tests/integration_test/tests"
if [ -d "$TEST_DIR" ]; then
cd "$TEST_DIR"
# Run tests with the grpc-tonic feature
echo
echo ####
echo Integration Tests: gRPC Tonic Client
echo ####
echo
cargo test --no-default-features --features "tonic-client","internal-logs"
# Run tests with the reqwest-client feature
echo
echo ####
echo "Integration Tests: Reqwest Client (Disabled now)"
echo ####
echo
# TODO: reqwest client is not supported with thread based processor and reader. Enable this test once it is supported.
#cargo test --no-default-features --features "reqwest-client","internal-logs"
# Run tests with the reqwest-blocking-client feature
echo
echo ####
echo Integration Tests: Reqwest Blocking Client
echo ####
echo
cargo test --no-default-features --features "reqwest-blocking-client"
# Run tests with the hyper-client feature
echo
echo ####
echo "Integration Tests: Hyper Client (Disabled now)"
echo ####
echo
# TODO: hyper client is not supported with thread based processor and reader. Enable this test once it is supported.
#cargo test --no-default-features --features "hyper-client","internal-logs"
else
echo "Directory $TEST_DIR does not exist. Skipping tests."
exit 1
fi