Chuck Rolke created QPIDIT-105:
----------------------------------

             Summary: Getting started with AMQP.Net Lite in Fedora
                 Key: QPIDIT-105
                 URL: https://issues.apache.org/jira/browse/QPIDIT-105
             Project: Apache QPID Interoperability Test Suite
          Issue Type: New Feature
          Components: .Net Lite Shim
    Affects Versions: 0.1.0
         Environment: Fedora 25
mono 4.4.2
            Reporter: Chuck Rolke


h4. Introduction

With package mono version 4.4.2 installed on Fedora the system is capable of 
compiling and running the AMQP.Net Lite shim tests. The remaining part of the 
puzzle is acquiring a pre-compiled AMQP.Net Lite executable library. Here's one 
solution.

This note is not a feature request so much as it is a blog about one way to do 
it.

h4. Fetch AMQP.Net Lite 2.0.0 from NuGet

Saved as file *get-lite.sh* in the top level directory it may be dot sourced to 
pick up the definition of AMQPNETLITE_LIB_DIR.

{noformat}
#!/bin/bash
#
# file: get-lite.sh
#
litedir=amqpnetlite-lib-dir


if [[ ! -d $litedir ]]; then

    mkdir $litedir
    cd    $litedir

    wget https://www.nuget.org/api/v2/package/AMQPNetLite/2.0.0
    mv    2.0.0 amqpnetlite.2.0.0.nupkg
    unzip       amqpnetlite.2.0.0.nupkg

    cd ..
fi

export AMQPNETLITE_LIB_DIR=`pwd`/$litedir/lib/net45

{noformat}

.h4 Build qpid-interop-test including AMQP.Net Lite

Include the Lite library definition in the CMake command line

{noformat}
cmake -DAMQPNETLITE_LIB_DIR=${AMQPNETLITE_LIB_DIR} ...
{noformat}

Expect confirmation that the Lite library was picked up by CMake

{noformat}
-- BUILD_AMQPNETLITE = ON
{noformat}

h4. Run test with the AMQP.Net Lite shims

Define the library location and specify the shims.

{noformat}
export 
AMQPNETLITE_LIB_DIR=${QPID_INTEROP_TEST_HOME}/amqpnetlite-lib-dir/lib/net45

./src/python/qpid_interop_test/amqp_types_test.py \
    --include-shim ProtonCpp \
    --include-shim ProtonPython \
    --include-shim AmqpNetLite 
{noformat}

h4. Further integration

This should get you started with the AMQP.Net Lite library. I've tried a few 
things to auto-detect the library and use it if present. None of those attempts 
is yet worthy.





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

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

Reply via email to