forked from GoogleCloudPlatform/google-cloud-dotnet-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_integration_tests.sh
executable file
·56 lines (45 loc) · 1.37 KB
/
run_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
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# This script runs all integration tests.
# This script assumes that build.sh and build-deps.sh have been run.
set -e
SCRIPT=$(readlink -f "$0")
ROOT_DIR=$(dirname "$SCRIPT")
AGENT_DIR=$ROOT_DIR/src/Google.Cloud.Diagnostics.Debug
PERFORMANCE_TESTS=false
LONG_RUNNING_TESTS=false
INTEGRATION_TESTS=true
CONFIG=Debug
while (( "$#" )); do
if [[ "$1" == "--performance-tests" ]]
then
PERFORMANCE_TESTS=true
elif [[ "$1" == "--skip-integration-tests" ]]
then
INTEGRATION_TESTS=false
elif [[ "$1" == "--long-running-tests" ]]
then
LONG_RUNNING_TESTS=true
elif [[ "$1" == "--release" ]]
then
CONFIG=Release
fi
shift
done
if [[ "$OS" != "Windows_NT" ]]
then
export LD_LIBRARY_PATH=$ROOT_DIR/third_party/coreclr/bin/Product/Linux.x64.$CONFIG
fi
dotnet publish $AGENT_DIR/Google.Cloud.Diagnostics.Debug --configuration $CONFIG
dotnet publish $AGENT_DIR/Google.Cloud.Diagnostics.Debug.TestApp --configuration $CONFIG
if [[ "$INTEGRATION_TESTS" == true ]]
then
dotnet test $AGENT_DIR/Google.Cloud.Diagnostics.Debug.IntegrationTests --configuration $CONFIG
fi
if [[ "$PERFORMANCE_TESTS" == true ]]
then
dotnet test $AGENT_DIR/Google.Cloud.Diagnostics.Debug.PerformanceTests --configuration $CONFIG
fi
if [[ "$LONG_RUNNING_TESTS" == true ]]
then
dotnet test $AGENT_DIR/Google.Cloud.Diagnostics.Debug.LongRunningTests --configuration $CONFIG
fi