qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kp...@apache.org
Subject [qpid-interop-test] branch master updated: NO_JIRA: Minor improvement to error reporting from cmake file when complex_data_test fails generation
Date Wed, 15 Jan 2020 22:07:35 GMT
This is an automated email from the ASF dual-hosted git repository.

kpvdr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-interop-test.git


The following commit(s) were added to refs/heads/master by this push:
     new daf14bd  NO_JIRA: Minor improvement to error reporting from cmake file when complex_data_test
fails generation
daf14bd is described below

commit daf14bd8334ce3bea5c1aedb11e37147704ca65f
Author: Kim van der Riet <kvdr@europa.lan>
AuthorDate: Wed Jan 15 17:07:13 2020 -0500

    NO_JIRA: Minor improvement to error reporting from cmake file when complex_data_test fails
generation
---
 CMakeLists.txt | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0fffdd0..41b2ae8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,30 +96,35 @@ endif ()
 execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py
--gen cpp --src-dir src/python/qpid_interop_test --gen-dir shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test
                               WORKING_DIRECTORY ../
                               RESULT_VARIABLE retcode
+                              ERROR_VARIABLE stderrtext
 )
 if(NOT "${retcode}" STREQUAL "0")
-    message(FATAL_ERROR "C++ generation failed")
+    message("${stderrtext}")
+    message(FATAL_ERROR "Data code file generation for C++ failed")
 endif()
+
 execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py
--gen python --src-dir src/python/qpid_interop_test --gen-dir shims/qpid-proton-python/src/amqp_complex_types_test
                               WORKING_DIRECTORY ../
                               RESULT_VARIABLE retcode
 )
 if(NOT "${retcode}" STREQUAL "0")
-    message(FATAL_ERROR "Python generation failed")
+    message(FATAL_ERROR "Data code file generation for Python failed")
 endif()
+
 execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py
--gen javascript --src-dir src/python/qpid_interop_test --gen-dir shims/rhea-js/amqp_complex_types_test
                               WORKING_DIRECTORY ../
                               RESULT_VARIABLE retcode
 )
 if(NOT "${retcode}" STREQUAL "0")
-    message(FATAL_ERROR "JavaScript generation failed")
+    message(FATAL_ERROR "Data code file generation for JavaScript failed")
 endif()
+
 execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py
--gen dotnet --src-dir src/python/qpid_interop_test --gen-dir shims/amqpnetlite/src/amqp_complex_types_test
                               WORKING_DIRECTORY ../
                               RESULT_VARIABLE retcode
 )
 if(NOT "${retcode}" STREQUAL "0")
-    message(FATAL_ERROR ".Net generation failed")
+    message(FATAL_ERROR "Data code file generation for .Net failed")
 endif()
 
 add_subdirectory(shims/qpid-proton-cpp/src)


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


Mime
View raw message