2016-11-21 16:04:39 +00:00
|
|
|
#!/bin/bash -e
|
2016-11-11 10:52:49 +00:00
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
function run-server-tests {
|
|
|
|
cd testsuite/integration-arquillian
|
|
|
|
mvn install -B -nsu -Pauth-server-wildfly -DskipTests
|
2017-05-08 12:35:17 +00:00
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
cd tests/base
|
|
|
|
mvn test -B -nsu -Pauth-server-wildfly -Dtest=$1 2>&1 | java -cp ../../../utils/target/classes org.keycloak.testsuite.LogTrimmer
|
|
|
|
exit ${PIPESTATUS[0]}
|
|
|
|
}
|
2016-11-11 10:52:49 +00:00
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
mvn install -B -nsu -Pdistribution -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
2016-11-29 16:26:11 +00:00
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
if [ $1 == "old" ]; then
|
|
|
|
cd testsuite
|
|
|
|
mvn test -B -nsu -f integration
|
|
|
|
mvn test -B -nsu -f jetty
|
|
|
|
mvn test -B -nsu -f tomcat7
|
|
|
|
mvn test -B -nsu -f tomcat8
|
2016-11-11 10:52:49 +00:00
|
|
|
fi
|
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
if [ $1 == "unit" ]; then
|
|
|
|
mvn -B test -DskipTestsuite
|
2016-11-11 10:52:49 +00:00
|
|
|
fi
|
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
if [ $1 == "server-group1" ]; then
|
|
|
|
run-server-tests org.keycloak.testsuite.ad*.**.*Test,!**/adapter/undertow/**/*Test
|
2016-11-11 10:52:49 +00:00
|
|
|
fi
|
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
if [ $1 == "server-group2" ]; then
|
|
|
|
run-server-tests org.keycloak.testsuite.ac*.**.*Test,org.keycloak.testsuite.b*.**.*Test,org.keycloak.testsuite.cli*.**.*Test,org.keycloak.testsuite.co*.**.*Test
|
2017-01-02 13:21:08 +00:00
|
|
|
fi
|
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
if [ $1 == "server-group3" ]; then
|
|
|
|
run-server-tests org.keycloak.testsuite.au*.**.*Test,org.keycloak.testsuite.d*.**.*Test,org.keycloak.testsuite.e*.**.*Test,org.keycloak.testsuite.f*.**.*Test,org.keycloak.testsuite.i*.**.*Test
|
2016-11-11 10:52:49 +00:00
|
|
|
fi
|
|
|
|
|
2017-07-14 05:01:54 +00:00
|
|
|
if [ $1 == "server-group4" ]; then
|
|
|
|
run-server-tests org.keycloak.testsuite.k*.**.*Test,org.keycloak.testsuite.m*.**.*Test,org.keycloak.testsuite.o*.**.*Test,org.keycloak.testsuite.s*.**.*Test
|
|
|
|
fi
|