Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1995

[c] Instructions for installable tests appear to be incorrect

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • proton-c
    • None

    Description

      This dockerfile attempts to follow the instructions at <prefix>/share/proton-0.27.0/examples/README.md.

      Dockerfile:

      FROM centos:7
      
      RUN yum -q -y update && yum -q clean all
      
      RUN yum -q -y install epel-release && \
          yum -y install rpm-build git make gcc-c++ cmake swig python python-devel epydoc doxygen libuuid-devel openssl-devel cyrus-sasl-devel jsoncpp-devel createrepo sudo && \
          yum -q clean all
      
      WORKDIR /root
      
      RUN git clone https://github.com/apache/qpid-proton
      
      RUN mkdir /root/qpid-proton/bld
      
      WORKDIR /root/qpid-proton/bld
      
      RUN cmake .. && make -j8 && make install
      
      RUN mkdir /tmp/adir
      
      WORKDIR /tmp/adir
      
      # Fails: CMake Error: The source directory "/usr/local/share/proton-0.27.0/examples" does not appear to contain CMakeLists.txt.
      # RUN cmake /usr/local/share/proton-0.27.0/examples
      
      RUN cmake /usr/local/share/proton-0.27.0
      
      RUN make
      
      RUN ctest
      

      Command:

      docker build -t test .

      Result:

      [jross@localhost adir]$ docker build -t test .
      Sending build context to Docker daemon  2.56 kB
      Step 1/13 : FROM centos:7
       ---> 1e1148e4cc2c
      Step 2/13 : RUN yum -q -y update && yum -q clean all
       ---> Using cache
       ---> 916fbebc48cb
      Step 3/13 : RUN yum -q -y install epel-release &&     yum -y install rpm-build git make gcc-c++ cmake swig python python-devel epydoc doxygen libuuid-devel openssl-devel cyrus-sasl-devel jsoncpp-devel createrepo sudo &&     yum -q clean all
       ---> Using cache
       ---> 30c7a91b1240
      Step 4/13 : WORKDIR /root
       ---> Using cache
       ---> 46c3bae99815
      Step 5/13 : RUN git clone https://github.com/apache/qpid-proton
       ---> Using cache
       ---> 3c394e2bbfa6
      Step 6/13 : RUN mkdir /root/qpid-proton/bld
       ---> Using cache
       ---> 2ff9679713a5
      Step 7/13 : WORKDIR /root/qpid-proton/bld
       ---> Using cache
       ---> a24adbf02ff5
      Step 8/13 : RUN cmake .. && make -j8 && make install
       ---> Using cache
       ---> 083c6ae0a591
      Step 9/13 : RUN mkdir /tmp/adir
       ---> Using cache
       ---> f3f76d462a7f
      Step 10/13 : WORKDIR /tmp/adir
       ---> Using cache
       ---> 99dd9bf0b303
      Step 11/13 : RUN cmake /usr/local/share/proton-0.27.0
       ---> Running in a0f0226ad58c
      -- The C compiler identification is GNU 4.8.5
      -- The CXX compiler identification is GNU 4.8.5
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Looking for include file pthread.h
      -- Looking for include file pthread.h - found
      -- Looking for pthread_create
      -- Looking for pthread_create - not found
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE  
      -- Found PythonInterp: /usr/bin/python (found version "2.7.5") 
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/adir
       ---> 7b8707dcb47d
      Removing intermediate container a0f0226ad58c
      Step 12/13 : RUN make
       ---> Running in 8d9ca538abce
      Scanning dependencies of target c-broker
      [  3%] Building C object examples/c/CMakeFiles/c-broker.dir/broker.c.o
      Linking C executable broker
      [  3%] Built target c-broker
      Scanning dependencies of target c-direct
      [...]
      [100%] Building CXX object examples/cpp/CMakeFiles/ssl_client_cert.dir/ssl_client_cert.cpp.o
      Linking CXX executable ssl_client_cert
      [100%] Built target ssl_client_cert
       ---> 40b9d29cd785
      Removing intermediate container 8d9ca538abce
      Step 13/13 : RUN ctest
       ---> Running in 27e984972e59
      Test project /tmp/adir
          Start 1: c-example-tests
      Could not find executable --
      Looked in the following places:
      --
      --
      Release/--
      Release/--
      Debug/--
      Debug/--
      MinSizeRel/--
      MinSizeRel/--
      RelWithDebInfo/--
      RelWithDebInfo/--
      Deployment/--
      Deployment/--
      Development/--
      Development/--
      Unable to find executable: --
      1/3 Test #1: c-example-tests ..................***Not Run   0.00 sec
          Start 2: cpp-example-container
      Could not find executable --
      Looked in the following places:
      --
      --
      Release/--
      Release/--
      Debug/--
      Debug/--
      MinSizeRel/--
      MinSizeRel/--
      RelWithDebInfo/--
      RelWithDebInfo/--
      Deployment/--
      Deployment/--
      Development/--
      Development/--
      2/3 Test #2: Unable to find executable: --
      cpp-example-container ............***Not Run   0.00 sec
          Start 3: cpp-example-container-ssl
      Could not find executable --
      Looked in the following places:
      --
      --
      Release/--
      Release/--
      Debug/--
      Debug/--
      MinSizeRel/--
      MinSizeRel/--
      RelWithDebInfo/--
      RelWithDebInfo/--
      Deployment/--
      Deployment/--
      Development/--
      Development/--
      3/Unable to find executable: --
      3 Test #3: cpp-example-container-ssl ........***Not Run   0.00 sec
      
      0% tests passed, 3 tests failed out of 3
      
      Total Test time (real) =   0.00 sec
      
      The following tests FAILED:
      	  1 - c-example-tests (Not Run)
      	  2 - cpp-example-container (Not Run)
      	  3 - cpp-example-container-ssl (Not Run)
      Errors while running CTest
      The command '/bin/sh -c ctest' returned a non-zero code: 8
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jross Justin Ross

            Dates

              Created:
              Updated:

              Slack

                Issue deployment