You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2018/01/26 15:02:09 UTC

qpid-interop-test git commit: NO-JIRA: Renamed the git module to run_all, this will run all the tests in succession.

Repository: qpid-interop-test
Updated Branches:
  refs/heads/master 58a8b9ae4 -> aea81083a


NO-JIRA: Renamed the git module to run_all, this will run all the tests in succession.


Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/aea81083
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/aea81083
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/aea81083

Branch: refs/heads/master
Commit: aea81083aac055472957eb6c4857639030c95752
Parents: 58a8b9a
Author: Kim van der Riet <kv...@localhost.localdomain>
Authored: Fri Jan 26 10:01:58 2018 -0500
Committer: Kim van der Riet <kv...@localhost.localdomain>
Committed: Fri Jan 26 10:01:58 2018 -0500

----------------------------------------------------------------------
 src/python/qpid_interop_test/qit.py     | 57 ----------------------------
 src/python/qpid_interop_test/run_all.py | 51 +++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 57 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/aea81083/src/python/qpid_interop_test/qit.py
----------------------------------------------------------------------
diff --git a/src/python/qpid_interop_test/qit.py b/src/python/qpid_interop_test/qit.py
deleted file mode 100644
index ec805ae..0000000
--- a/src/python/qpid_interop_test/qit.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-
-"""
-Script to run all available tests
-"""
-
-#
-# 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 sys
-
-import qpid_interop_test.amqp_large_content_test
-import qpid_interop_test.amqp_types_test
-import qpid_interop_test.jms_hdrs_props_test
-import qpid_interop_test.jms_messages_test
-
-if __name__ == '__main__':
-
-    print('\n==== Test %s ====' % qpid_interop_test.amqp_types_test.AmqpTypesTest.TEST_NAME)
-    AMQP_TYPES_TEST = qpid_interop_test.amqp_types_test.AmqpTypesTest()
-    AMQP_TYPES_TEST.run_test()
-    AMQP_TYPES_TEST.write_logs()
-
-    print('\n==== Test %s ====' % qpid_interop_test.amqp_large_content_test.AmqpLargeContentTest.TEST_NAME)
-    AMQP_LARGE_CONTENT_TEST = qpid_interop_test.amqp_large_content_test.AmqpLargeContentTest()
-    AMQP_LARGE_CONTENT_TEST.run_test()
-    AMQP_LARGE_CONTENT_TEST.write_logs()
-
-    print('\n==== Test %s ====' % qpid_interop_test.jms_messages_test.JmsMessagesTest.TEST_NAME)
-    JMS_MESSAGES_TEST = qpid_interop_test.jms_messages_test.JmsMessagesTest()
-    JMS_MESSAGES_TEST.run_test()
-    JMS_MESSAGES_TEST.write_logs()
-
-    print('\n==== Test %s ====' % qpid_interop_test.jms_hdrs_props_test.JmsHdrsPropsTest.TEST_NAME)
-    JMS_MESSAGES_TEST = qpid_interop_test.jms_hdrs_props_test.JmsHdrsPropsTest()
-    JMS_MESSAGES_TEST.run_test()
-    JMS_MESSAGES_TEST.write_logs()
-
-    if not AMQP_TYPES_TEST.get_result() or not AMQP_LARGE_CONTENT_TEST.get_result() or \
-        not JMS_MESSAGES_TEST.get_result() or not JMS_MESSAGES_TEST.get_result():
-        sys.exit(1)

http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/aea81083/src/python/qpid_interop_test/run_all.py
----------------------------------------------------------------------
diff --git a/src/python/qpid_interop_test/run_all.py b/src/python/qpid_interop_test/run_all.py
new file mode 100644
index 0000000..56e4ffe
--- /dev/null
+++ b/src/python/qpid_interop_test/run_all.py
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+
+"""
+Script to run all available tests
+"""
+
+#
+# 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 sys
+
+import qpid_interop_test.amqp_large_content_test
+import qpid_interop_test.amqp_types_test
+import qpid_interop_test.jms_hdrs_props_test
+import qpid_interop_test.jms_messages_test
+
+TEST_LIST = [qpid_interop_test.amqp_types_test.AmqpTypesTest,
+             qpid_interop_test.amqp_large_content_test.AmqpLargeContentTest,
+             qpid_interop_test.jms_messages_test.JmsMessagesTest,
+             qpid_interop_test.jms_hdrs_props_test.JmsHdrsPropsTest,
+            ]
+
+if __name__ == '__main__':
+
+    ERROR_FLAG = False
+    for this_test in TEST_LIST:
+        print('\n==== Test %s ====' % this_test.TEST_NAME)
+        TEST = this_test()
+        TEST.run_test()
+        TEST.write_logs()
+        if not TEST.get_result():
+            ERROR_FLAG = True
+
+    if ERROR_FLAG:
+        sys.exit(1)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org