[ 
https://issues.apache.org/jira/browse/PROTON-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Irina Boverman closed PROTON-1598.
----------------------------------
    Resolution: Fixed

If I do not remove derived files, ctest -V is working OK without errors.

> ctest does not produce results in examples/cpp directory
> --------------------------------------------------------
>
>                 Key: PROTON-1598
>                 URL: https://issues.apache.org/jira/browse/PROTON-1598
>             Project: Qpid Proton
>          Issue Type: Bug
>    Affects Versions: proton-c-0.18.0
>         Environment: Fedora 26
>            Reporter: Irina Boverman
>
> docker run -it fedora:latest bash
> dnf -y update
> dnf -y install make gcc gcc-c++ cmake git valgrind swig pkgconfig doxygen 
> libuuid-devel openssl-devel python-devel python3 python3-devel ruby-devel 
> perl-devel epydoc python cyrus-sasl-devel cyrus-sasl-lib cyrus-sasl-gssapi 
> cyrus-sasl-plain cyrus-sasl-md5 rubygem-rspec rubygem-simplecov 
> rubygem-minitest rubygem-test-unit python2-tox redhat-rpm-config libuv-devel 
> libuv python-pip
>  git clone git://git.apache.org/qpid-proton.git proton
>  cd proton
>  cmake .
>  make
>  make install
>   
> cd /usr/local/share/proton-0.18.0/examples/cpp
> Remove derived files:
> rm -fr CMakeFiles CMakeCache.txt Testing Makefile CTestTestfile.cmake
> cmake .
> make
> ctest -V
> UpdateCTestConfiguration  from 
> :/usr/local/share/proton-0.18.0/examples/cpp/DartConfiguration.tcl
> UpdateCTestConfiguration  from 
> :/usr/local/share/proton-0.18.0/examples/cpp/DartConfiguration.tcl
> Test project /usr/local/share/proton-0.18.0/examples/cpp
> Constructing a list of tests
> Updating test list for fixtures
> Added 0 tests to meet fixture requirements
> Checking test dependency graph...
> Checking test dependency graph end
> No tests were found!!!
> However, leaving CTestTestfile.cmake in place allows for ctest to work (with 
> errors):
> ctest -V
> UpdateCTestConfiguration  from 
> :/usr/local/share/proton-0.18.0/examples/cpp/DartConfiguration.tcl
> UpdateCTestConfiguration  from 
> :/usr/local/share/proton-0.18.0/examples/cpp/DartConfiguration.tcl
> Test project /usr/local/share/proton-0.18.0/examples/cpp
> Constructing a list of tests
> Done constructing a list of tests
> Updating test list for fixtures
> Added 0 tests to meet fixture requirements
> Checking test dependency graph...
> Checking test dependency graph end
> test 1
>     Start 1: cpp-example-container
> 1: Test command: /usr/bin/python "/proton/proton-c/env.py" 
> "PYTHONPATH=/proton/tools/py" 
> "PATH=/proton/examples/cpp:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>  "VALGRIND=/usr/bin/valgrind" "--" "/usr/bin/python" 
> "/proton/examples/cpp/example_test.py" "-v" "ContainerExampleTest"
> 1: Test timeout computed to be: 9.99988e+06
> 1: test_encode_decode (__main__.ContainerExampleTest) ... ok
> 1: test_flow_control (__main__.ContainerExampleTest) ... ok
> 1: test_helloworld (__main__.ContainerExampleTest) ... ok
> 1: test_helloworld_direct (__main__.ContainerExampleTest) ... ok
> 1: test_message_properties (__main__.ContainerExampleTest) ... ok
> 1: test_multithreaded_client (__main__.ContainerExampleTest) ... ERROR
> 1: test_multithreaded_client_flow_control (__main__.ContainerExampleTest) ... 
> ERROR
> 1: test_request_response (__main__.ContainerExampleTest) ... ok
> 1: test_request_response_direct (__main__.ContainerExampleTest) ... ok
> 1: test_scheduled_send (__main__.ContainerExampleTest) ... ERROR
> 1: test_scheduled_send_03 (__main__.ContainerExampleTest) ... ok
> 1: test_simple_recv_direct_send (__main__.ContainerExampleTest) ... ok
> 1: test_simple_recv_send (__main__.ContainerExampleTest) ... ok
> 1: test_simple_send_direct_recv (__main__.ContainerExampleTest) ... ok
> 1: test_simple_send_recv (__main__.ContainerExampleTest) ... ok
> 1: 
> 1: ======================================================================
> 1: ERROR: test_multithreaded_client (__main__.ContainerExampleTest)
> 1: ----------------------------------------------------------------------
> 1: Traceback (most recent call last):
> 1:   File "/proton/examples/cpp/example_test.py", line 220, in 
> test_multithreaded_client
> 1:     got = self.proc(["multithreaded_client", self.addr, "examples", "10"], 
> helgrind=True).wait_exit()
> 1:   File "/proton/tools/py/proctest.py", line 127, in wait_exit
> 1:     raise ProcError(self)
> 1: ProcError: bad exit status (exit=127) command:
> 1: /usr/bin/valgrind --quiet --error-exitcode=42 --tool=helgrind 
> multithreaded_client localhost:45651/example examples 10
> 1: vvvvvvvvvvvvvvvv
> 1: valgrind: multithreaded_client: command not found
> 1: ^^^^^^^^^^^^^^^^
> 1: 
> 1: ======================================================================
> 1: ERROR: test_multithreaded_client_flow_control 
> (__main__.ContainerExampleTest)
> 1: ----------------------------------------------------------------------
> 1: Traceback (most recent call last):
> 1:   File "/proton/examples/cpp/example_test.py", line 226, in 
> test_multithreaded_client_flow_control
> 1:     got = self.proc(["multithreaded_client_flow_control", self.addr, 
> "examples", "10", "2"], helgrind=True).wait_exit()
> 1:   File "/proton/tools/py/proctest.py", line 127, in wait_exit
> 1:     raise ProcError(self)
> 1: ProcError: bad exit status (exit=127) command:
> 1: /usr/bin/valgrind --quiet --error-exitcode=42 --tool=helgrind 
> multithreaded_client_flow_control localhost:45651/example examples 10 2
> 1: vvvvvvvvvvvvvvvv
> 1: valgrind: multithreaded_client_flow_control: command not found
> 1: ^^^^^^^^^^^^^^^^
> 1: 
> 1: ======================================================================
> 1: ERROR: test_scheduled_send (__main__.ContainerExampleTest)
> 1: ----------------------------------------------------------------------
> 1: Traceback (most recent call last):
> 1:   File "/proton/examples/cpp/example_test.py", line 202, in 
> test_scheduled_send
> 1:     out = self.proc(["scheduled_send", "-a", self.addr+"scheduled_send", 
> "-t", "0.1", "-i", "0.001"]).wait_exit().split()
> 1:   File "/proton/tools/py/proctest.py", line 127, in wait_exit
> 1:     raise ProcError(self)
> 1: ProcError: bad exit status (exit=127) command:
> 1: /usr/bin/valgrind --quiet --error-exitcode=42 --tool=memcheck 
> --leak-check=full scheduled_send -a localhost:45651/examplescheduled_send -t 
> 0.1 -i 0.001
> 1: vvvvvvvvvvvvvvvv
> 1: valgrind: scheduled_send: command not found
> 1: ^^^^^^^^^^^^^^^^
> 1: 
> 1: ----------------------------------------------------------------------
> 1: Ran 15 tests in 15.306s
> 1: 
> 1: FAILED (errors=3)
> 1/2 Test #1: cpp-example-container ............***Failed   15.37 sec
> test 2
>     Start 2: cpp-example-container-ssl
> 2: Test command: /usr/bin/python "/proton/proton-c/env.py" 
> "PYTHONPATH=/proton/tools/py" 
> "PATH=/proton/examples/cpp:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>  "VALGRIND=/usr/bin/valgrind" "--" "/usr/bin/python" 
> "/proton/examples/cpp/example_test.py" "-v" "ContainerExampleSSLTest"
> 2: Test timeout computed to be: 9.99988e+06
> 2: test_ssl (__main__.ContainerExampleSSLTest) ... ok
> 2: test_ssl_bad_name (__main__.ContainerExampleSSLTest) ... ok
> 2: test_ssl_client_cert (__main__.ContainerExampleSSLTest) ... ok
> 2: test_ssl_no_name (__main__.ContainerExampleSSLTest) ... ok
> 2: 
> 2: ----------------------------------------------------------------------
> 2: Ran 4 tests in 0.637s
> 2: 
> 2: OK
> 2/2 Test #2: cpp-example-container-ssl ........   Passed    0.71 sec
> 50% tests passed, 1 tests failed out of 2
> Total Test time (real) =  16.09 sec
> The following tests FAILED:
>         1 - cpp-example-container (Failed)
> Errors while running CTest



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to