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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]