generated from opensearch-project/opensearch-plugin-template-java
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbwctest.sh
executable file
·36 lines (31 loc) · 971 Bytes
/
bwctest.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
#!/bin/bash
set -e
function usage() {
echo ""
echo "This script is used to run Backwards Compatibility tests"
echo "--------------------------------------------------------------------------"
echo "Usage: $0 [args]"
echo ""
echo "Required arguments:"
echo "None"
echo ""
echo -e "-h\tPrint this message."
echo "--------------------------------------------------------------------------"
}
while getopts ":h" arg; do
case $arg in
h)
usage
exit 1
;;
?)
echo "Invalid option: -${OPTARG}"
exit 1
;;
esac
done
# Warning!
# This should be done from gradle, see bwcTestSuite task, but that task is skipped.
# TODO: Skipping task ':bwcTestSuite' as it has no source files and no previous output files.
rm -rf src/test/resources/org/opensearch/prometheus-exporter/bwc/prometheus-exporter
./gradlew bwcTestSuite -Dtests.security.manager=false