Repository: activemq-artemis Updated Branches: refs/heads/master 1a58c4f5e -> 9ad8e4c25
ARTEMIS-555 Splitting distribution/script tests Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/9ad8e4c2 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/9ad8e4c2 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/9ad8e4c2 Branch: refs/heads/master Commit: 9ad8e4c25548559394808509d7a811b0ec460bfc Parents: 1a58c4f Author: Clebert Suconic <clebertsuco...@apache.org> Authored: Thu Jun 30 16:27:16 2016 -0400 Committer: Clebert Suconic <clebertsuco...@apache.org> Committed: Tue Jul 5 10:56:32 2016 -0400 ---------------------------------------------------------------------- .../src/test/scripts/installHome.sh | 39 ++++++++ .../src/test/scripts/run-examples.sh | 22 +---- .../src/test/scripts/run-standard-examples.sh | 95 ++++++++++++++++++++ .../src/test/scripts/validate-spaces.sh | 22 +---- 4 files changed, 140 insertions(+), 38 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9ad8e4c2/artemis-distribution/src/test/scripts/installHome.sh ---------------------------------------------------------------------- diff --git a/artemis-distribution/src/test/scripts/installHome.sh b/artemis-distribution/src/test/scripts/installHome.sh new file mode 100755 index 0000000..41a877c --- /dev/null +++ b/artemis-distribution/src/test/scripts/installHome.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Setting the script to fail if anything goes wrong +set -e + +export CURRENT_DIR=`pwd` + +export LOCAL_USED=`ls ../../../target/apache-artemis-*bin.tar.gz` +echo Unziping $LOCAL_USED + +if [ -z "$LOCAL_USED" ] ; then + echo "Couldn't find distribution file" + exit -1 +fi + +echo $LOCAL_USED + +tar -zxf $LOCAL_USED -C "$TEST_TARGET" +cd "$TEST_TARGET" +export ARTEMIS_HOME="`pwd`/`ls`" +echo home is $ARTEMIS_HOME + +cd $CURRENT_DIR http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9ad8e4c2/artemis-distribution/src/test/scripts/run-examples.sh ---------------------------------------------------------------------- diff --git a/artemis-distribution/src/test/scripts/run-examples.sh b/artemis-distribution/src/test/scripts/run-examples.sh index 5c772e8..cf728ec 100755 --- a/artemis-distribution/src/test/scripts/run-examples.sh +++ b/artemis-distribution/src/test/scripts/run-examples.sh @@ -24,27 +24,9 @@ mkdir target # Setting the script to fail if anything goes wrong set -e -export CURRENT_DIR=`pwd` - -if [ $# -eq 0 ]; then - export LOCAL_USED=`ls ../../../target/apache-artemis-*bin.tar.gz` - echo Unziping $LOCAL_USED - tar -zxf $LOCAL_USED -C "./target/" - cd "./target/" - export ARTEMIS_HOME="`pwd`/`ls`" - echo home is $ARTEMIS_HOME -else - if [ -z "$1" ] ; then - echo "Couldn't find folder $1" - exit -1 - fi - export ARTEMIS_HOME="$CURRENT_DIR/target/artemis_home" - cp -r "$1" "$ARTEMIS_HOME" -fi +export TEST_TARGET="./target" -cd $CURRENT_DIR - -echo home used is $ARTEMIS_HOME +. ./installHome.sh cd $ARTEMIS_HOME/examples/features/standard/ http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9ad8e4c2/artemis-distribution/src/test/scripts/run-standard-examples.sh ---------------------------------------------------------------------- diff --git a/artemis-distribution/src/test/scripts/run-standard-examples.sh b/artemis-distribution/src/test/scripts/run-standard-examples.sh new file mode 100755 index 0000000..5ea9757 --- /dev/null +++ b/artemis-distribution/src/test/scripts/run-standard-examples.sh @@ -0,0 +1,95 @@ +#!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This script will run all the examples on the distribution + +rm -rf target +mkdir target + +# Setting the script to fail if anything goes wrong +set -e + +export TEST_TARGET="./target" + +. ./installHome.sh + +cd $ARTEMIS_HOME/examples/features/standard/ + +cd bridge; mvn verify; cd .. +cd bridge; mvn verify; cd .. +cd browser; mvn verify; cd .. +cd client-kickoff; mvn verify; cd .. +cd consumer-rate-limit; mvn verify; cd .. +cd dead-letter; mvn verify; cd .. +cd delayed-redelivery; mvn verify; cd .. +cd divert; mvn verify; cd .. +cd durable-subscription; mvn verify; cd .. +cd embedded; mvn verify; cd .. +cd embedded-simple; mvn verify; cd .. +cd expiry; mvn verify; cd .. +cd http-transport; mvn verify; cd .. +cd interceptor; mvn verify; cd .. +cd interceptor-client; mvn verify; cd .. +cd jms-auto-closeable; mvn verify; cd .. +cd instantiate-connection-factory; mvn verify; cd .. +cd jms-bridge; mvn verify; cd .. +cd jms-completion-listener; mvn verify; cd .. +cd jms-context; mvn verify; cd .. +cd jms-shared-consumer; mvn verify; cd .. +cd jmx; mvn verify; cd .. + +# too big for most CI machines +#cd large-message; mvn verify; cd .. + +cd last-value-queue; mvn verify; cd .. +cd management; mvn verify; cd .. +cd management-notifications; mvn verify; cd .. +cd message-counters; mvn verify; cd .. +cd message-group; mvn verify; cd .. +cd message-group2; mvn verify; cd .. +cd message-priority; mvn verify; cd .. +cd no-consumer-buffering; mvn verify; cd .. +cd paging; mvn verify; cd .. +cd pre-acknowledge; mvn verify; cd .. +cd producer-rate-limit; mvn verify; cd .. +cd queue; mvn verify; cd .. +cd queue-requestor; mvn verify; cd .. +cd queue-selector; mvn verify; cd .. +cd reattach-node; mvn verify; cd .. +cd request-reply; mvn verify; cd .. +cd rest; mvn verify; cd .. +cd scheduled-message; mvn verify; cd .. +cd security; mvn verify; cd .. +cd security-ldap; mvn verify; cd .. +cd send-acknowledgements; mvn verify; cd .. +cd spring-integration; mvn verify; cd .. +cd ssl-enabled; mvn verify; cd .. +cd ssl-enabled-dual-authentication; mvn verify; cd .. +cd static-selector; mvn verify; cd .. +cd temp-queue; mvn verify; cd .. +cd topic; mvn verify; cd .. +cd topic-hierarchies; mvn verify; cd .. +cd topic-selector-example1; mvn verify; cd .. +cd topic-selector-example2; mvn verify; cd .. +cd transactional; mvn verify; cd .. +cd xa-heuristic; mvn verify; cd .. +cd xa-receive; mvn verify; cd .. +cd xa-send; mvn verify; cd .. + +cd $CURRENT_DIR +rm -rf target http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9ad8e4c2/artemis-distribution/src/test/scripts/validate-spaces.sh ---------------------------------------------------------------------- diff --git a/artemis-distribution/src/test/scripts/validate-spaces.sh b/artemis-distribution/src/test/scripts/validate-spaces.sh index 16f0da3..d53b70f 100755 --- a/artemis-distribution/src/test/scripts/validate-spaces.sh +++ b/artemis-distribution/src/test/scripts/validate-spaces.sh @@ -26,25 +26,11 @@ mkdir target/with\ space # Setting the script to fail if anything goes wrong set -e -export CURRENT_DIR=`pwd` - -if [ $# -eq 0 ]; then - export LOCAL_USED=`ls ../../../target/apache-artemis-*bin.tar.gz` - echo Unziping $LOCAL_USED - tar -zxf $LOCAL_USED -C "./target/with space" - cd "./target/with space" - export ARTEMIS_HOME="`pwd`/`ls`" - echo home is $ARTEMIS_HOME -else - if [ -z "$1" ] ; then - echo "Couldn't find folder $1" - exit -1 - fi - export ARTEMIS_HOME="$CURRENT_DIR/target/with space/artemis_home" - cp -r "$1" "$ARTEMIS_HOME" -fi -cd $CURRENT_DIR +export TEST_TARGET="./target/with space" + +. ./installHome.sh + export ARTEMIS_INSTANCE="$CURRENT_DIR/target/with space/artemis_instance" echo home used is $ARTEMIS_HOME