diff options
| author | Alex Rudyy <orudyy@apache.org> | 2015-04-15 09:47:28 +0000 |
|---|---|---|
| committer | Alex Rudyy <orudyy@apache.org> | 2015-04-15 09:47:28 +0000 |
| commit | 0a0baee45ebcff44635907d457c4ff6810b09c87 (patch) | |
| tree | 8bfb0f9eddbc23cff88af69be80ab3ce7d47011c /qpid/java/systests/etc | |
| parent | 54aa3d7070da16ce55c28ccad3f7d0871479e461 (diff) | |
| download | qpid-python-0a0baee45ebcff44635907d457c4ff6810b09c87.tar.gz | |
QPID-6481: Move java source tree to top level
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1673693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests/etc')
| -rw-r--r-- | qpid/java/systests/etc/bin/fail.py | 88 | ||||
| -rw-r--r-- | qpid/java/systests/etc/config-systests.json | 78 | ||||
| -rw-r--r-- | qpid/java/systests/etc/groups-systests | 29 | ||||
| -rw-r--r-- | qpid/java/systests/etc/log.properties | 21 |
4 files changed, 0 insertions, 216 deletions
diff --git a/qpid/java/systests/etc/bin/fail.py b/qpid/java/systests/etc/bin/fail.py deleted file mode 100644 index 517f31d075..0000000000 --- a/qpid/java/systests/etc/bin/fail.py +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env python -# -# -# 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. - -import os -import re -import datetime - -from optparse import OptionParser - -BASE_CMD = "mvn -Dskip.python.test=true %s test" - -def main(): - parser = OptionParser() - parser.add_option("-t", "--test", dest="test", - action="store", type="string", - help="run specific tests") - parser.add_option("-c", "--continuous", dest="continuous", - action="store_true", default=False, - help="run tests after failures, don't stop") - - - (options, args) = parser.parse_args() - - # determine command to run - if (options.test != None): - cmd = (BASE_CMD % ("-Dtest="+options.test)) - else: - cmd = (BASE_CMD % ("")) - - run_forever = options.continuous - - - failed_runs = [] - iteration = 0 - fail_match = re.compile("BUILD SUCCESSFUL") - done = False - - while (run_forever or not (len(failed_runs) > 0)): - iteration = iteration + 1 - if (run_forever): - extra_text = (", %d failures so far: %s:" % (len(failed_runs), failed_runs)) - else: - extra_text = "" - print ("%s Test run %d%s" % (datetime.datetime.today().isoformat(), iteration, extra_text)) - (child_stdin, child_stdout_and_stderr) = os.popen4(cmd) - output = child_stdout_and_stderr.read() - child_stdin.close() - child_stdout_and_stderr.close() - matches = fail_match.search(output) - if (matches == None): - failed_runs.append(iteration) - output_name = ("test-run-%d.out" % (iteration)) - #write testouput - test_output = file(output_name, "w") - test_output.write(output) - test_output.close() - #tar test-output and surefire reports together - find_stdout = os.popen("find . -type d -name surefire-reports") - surefire_dirs = find_stdout.read().replace('\n', ' ') - find_stdout.close() - tarcmd = ("tar -zcf test-failures-%d.tar.gz %s %s" % (iteration, output_name, surefire_dirs)) - tar_stdout = os.popen(tarcmd) - tar_output = tar_stdout.read() - tar_exitstatus = tar_stdout.close() - print ("Something failed! Check %s" % (output_name)) - if (tar_exitstatus != None): - print ("tar exited abornmally, aborting\n %s" % (tar_output)) - run_forever = False - -if __name__ == "__main__": - main()
\ No newline at end of file diff --git a/qpid/java/systests/etc/config-systests.json b/qpid/java/systests/etc/config-systests.json deleted file mode 100644 index 05ba4f2178..0000000000 --- a/qpid/java/systests/etc/config-systests.json +++ /dev/null @@ -1,78 +0,0 @@ -/* - * - * 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. - * - */ -{ - "name": "Broker", - "defaultVirtualHost" : "test", - "modelVersion": "3.0", - "authenticationproviders" : [ { - "name" : "plain", - "type" : "PlainPasswordFile", - "path" : "${QPID_HOME}${file.separator}etc${file.separator}passwd" - } ], - "keystores" : [ { - "name" : "systestsKeyStore", - "storeUrl" : "${QPID_HOME}${file.separator}..${file.separator}test-profiles${file.separator}test_resources${file.separator}ssl${file.separator}java_broker_keystore.jks", - "password" : "password" - } ], - "truststores" : [ { - "name" : "systestsTrustStore", - "storeUrl" : "${QPID_HOME}${file.separator}..${file.separator}test-profiles${file.separator}test_resources${file.separator}ssl${file.separator}java_broker_truststore.jks", - "password" : "password" - } ], - "ports" : [ { - "name" : "amqp", - "authenticationProvider" : "plain", - "port" : "${test.port}", - "protocols" : "${test.amqp_port_protocols}", - "virtualhostaliases" : [ { - "name" : "nameAlias", - "type" : "nameAlias" - }, { - "name" : "defaultAlias", - "type" : "defaultAlias" - }, { - "name" : "hostnameAlias", - "type" : "hostnameAlias" - } ] - }, { - "name" : "http", - "authenticationProvider" : "plain", - "port" : "${test.hport}", - "protocols" : [ "HTTP" ] - }, { - "name" : "rmi", - "port" : "${test.mport}", - "protocols" : [ "RMI" ] - }, { - "name" : "jmx", - "authenticationProvider" : "plain", - "port" : "${test.cport}", - "protocols" : [ "JMX_RMI" ] - }], - "virtualhostnodes" : [ { - "name" : "test", - "type" : "${virtualhostnode.type}", - "storePath" : "${QPID_WORK}${file.separator}${test.port}${file.separator}test${file.separator}config", - "context" : { - "virtualhostBlueprint" : "${virtualhostnode.context.blueprint}" - } - } ] -} diff --git a/qpid/java/systests/etc/groups-systests b/qpid/java/systests/etc/groups-systests deleted file mode 100644 index e3912ece99..0000000000 --- a/qpid/java/systests/etc/groups-systests +++ /dev/null @@ -1,29 +0,0 @@ -# -# 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. -# - -# -# To define a group, use the format: -# -# <groupname>.users=<user1>,<user2>,...,<usern> -# - -messaging-users.users=guest,client,server -administrators.users=admin -webadmins.users=webadmin - diff --git a/qpid/java/systests/etc/log.properties b/qpid/java/systests/etc/log.properties deleted file mode 100644 index ff36b7cd0c..0000000000 --- a/qpid/java/systests/etc/log.properties +++ /dev/null @@ -1,21 +0,0 @@ -# -# 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. -# - -com.sleepycat.je.util.FileHandler.level=ALL -com.sleepycat.je.util.ConsoleHandler.level=ALL |
