aboutsummaryrefslogtreecommitdiffstats
path: root/run-integration-tests.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-11 10:25:12 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-11 10:51:58 +0100
commit46b5b59eae490ff19c8e0edbac35031d1773899b (patch)
tree071c114f65f0baf8819702167a445da7597a63fe /run-integration-tests.sh
parent2fca4ebeee81bc01db290e97de7be31f3bf60241 (diff)
downloadsonarqube-46b5b59eae490ff19c8e0edbac35031d1773899b.tar.gz
sonarqube-46b5b59eae490ff19c8e0edbac35031d1773899b.zip
Fix IT scripts
Diffstat (limited to 'run-integration-tests.sh')
-rwxr-xr-xrun-integration-tests.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/run-integration-tests.sh b/run-integration-tests.sh
index ca90257796c..b3db6e6bab3 100755
--- a/run-integration-tests.sh
+++ b/run-integration-tests.sh
@@ -1,12 +1,23 @@
#!/bin/bash
+# Run integration tests. SonarQube must be already built in order to
+# make the ZIP file available for tests.
+
+# Arguments:
+# 1. the category of tests. Possible values: "Category1", "Category2" ,"Category3", "Category4", "Category5" and "Plugins"
+# 2. the path to Orchestrator properties file. If empty, then default values are used. Example: "file:///Users/me/orchestrator.properties"
+#
+# Examples:
+# ./run-integration-tests.sh "Category1" "file:///Users/me/orchestrator-mysql56.properties"
+# ./run-integration-tests.sh "Category1" ""
+
set -euo pipefail
-ORCHESTRATOR_CONFIG_URL=$1
-CATEGORY=$2
+CATEGORY=$1
+ORCHESTRATOR_CONFIG_URL=$2
shift 2
cd it
mvn verify \
- -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \
-Dcategory=$CATEGORY \
+ -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \
-Dsource.skip=true -B -e -V $*