forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·34 lines (30 loc) · 785 Bytes
/
test.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
#!/bin/bash
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
set -e
DIR="$(dirname "$0")"
case $1 in
"integ-test")
"$DIR/run.sh" "$DIR/src/run_integ_test.py" "${@:2}"
;;
"smoke-test")
"$DIR/run.sh" "$DIR/src/run_smoke_test.py" "${@:2}"
;;
"bwc-test")
"$DIR/run.sh" "$DIR/src/run_bwc_test.py" "${@:2}"
;;
"perf-test")
"$DIR/run.sh" "$DIR/src/run_perf_test.py" "${@:2}"
;;
"benchmark-test")
"$DIR/run.sh" "$DIR/src/run_benchmark_test.py" "${@:2}"
;;
*)
echo "Invalid test suite, run ./test.sh integ-test|bwc-test|smoke-test|perf-test|benchmark-test."
exit 1
;;
esac