GitHub user alanconway opened a pull request:

    https://github.com/apache/qpid-proton/pull/151

    Install tests

    Tests can be executed from install for c, cpp, ruby.
    
    Installed under INSTALL-PREFIX/share/proton-VERSION/examples.
    Each examples/ subdir has a stand-alone `testme` script that runs with no 
arguments.
    
    The script assumes that if examples for a language are installed, then 
proton
    support and all pre-requisites are also installed either:
      - under the same INSTALL-prefix
      - in standard places (/usr etc.)
      - locatable using standard environment variables (PATH etc.)
    
    Depending on the type of example the testme script may allow args, e.g. -v 
for
    verbose output on python-based testme scripts.
    
    To build/run all tests:
        cd TEMP-BUILD-DIR
        cmake INSTALL-PREFIX/share/proton-VERSION/examples
        make
        ctest -VV
    
    To run test that don't need separate build, e.g. ruby:
        cd INSTALL-PREFIX/share/proton-VERSION/examples ruby; testme
    
    TODO:
    
    python: examples need updating to be usable for self test:
     - servers to print actual port not command-line port
     - test driver to start servers on port 0, pass real port from server 
stdout to client
    
    go: currently an awkward mix of Go native build tools and cmake.
     - make go examples into standard Go executable package.
     - testme script will be simply `GOPATH=... go test 
qpid.apache.org/proton_examples`
     - make examples available via `go get` and on godoc.org


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/alanconway/qpid-proton install-tests

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/qpid-proton/pull/151.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #151
    
----
commit 20c016c8d12aa700f0c1874c7f9259f5ad0e6169
Author: Alan Conway <aconway@...>
Date:   2018-07-06T19:06:34Z

    NO-JIRA: [c,cpp] Remove dead code in examples/CMakeLists.txt

commit 1244c375a2dfc1042109c84fed38eae3b59c7391
Author: Alan Conway <aconway@...>
Date:   2018-07-09T22:50:27Z

    PROTON-1798: [c, cpp, ruby] Installable tests for proton
    
    Tests can be executed from install for c, cpp, ruby.
    
    Installed under INSTALL-PREFIX/share/proton-VERSION/examples.
    Each examples/ subdir has a stand-alone `testme` script that runs with no 
arguments.
    
    The script assumes that if examples for a language are installed, then 
proton
    support and all pre-requisites are also installed either:
      - under the same INSTALL-prefix
      - in standard places (/usr etc.)
      - locatable using standard environment variables (PATH etc.)
    
    Depending on the type of example the testme script may allow args, e.g. -v 
for
    verbose output on python-based testme scripts.
    
    To build/run all tests:
        cd TEMP-BUILD-DIR
        cmake INSTALL-PREFIX/share/proton-VERSION/examples
        make
        ctest -VV
    
    To run test that don't need separate build, e.g. ruby:
        cd INSTALL-PREFIX/share/proton-VERSION/examples ruby; testme
    
    TODO:
    
    python: examples need updating to be usable for self test:
     - servers to print actual port not command-line port
     - test driver to start servers on port 0, pass real port from server 
stdout to client
    
    go: currently an awkward mix of Go native build tools and cmake.
     - make go examples into standard Go executable package.
     - testme script will be simply `GOPATH=... go test 
qpid.apache.org/proton_examples`
     - make examples available via `go get` and on godoc.org

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to