Qpid
  1. Qpid
  2. QPID-5380

Dispatch - Simplify use of non-system instances

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Qpid Dispatch
    • Labels:
      None

      Description

      Right now the config path is set to /etc/qpid-dispatch/... in every instance, and the user needs to override it.

      For checkouts and other alternate installs, I propose that instead we look to see if QPID_DISPATCH_HOME is set, and if so load config from QPID_DISPATCH_HOME/etc.

      If we then change QPID_DISPATCH_HOME to be the dispatch build dir, where the configured files land by convention, we'll have an instance that can run without extra args.

      • Load config from QPID_DISPATCH_HOME/etc if QDH is set; otherwise, use /etc/qpid-dispatch/...
      • Change the config.sh QPID_DISPATCH_HOME to $(pwd)/build

      This additionally helps with home-dir installs.

        Activity

        Hide
        Justin Ross added a comment -
        • Define a default installation area for work inside a checkout
        • Separate system tests so they can run against an installation
        • Add qdtest, an entry point for running system tests
        • Add install logic for qdtest and its system tests
        • Add test.sh, a developer tool for running all the tests from top to bottom
        • Update config.sh with variables for in-tree source, build, and install dirs

        This patch does not address the problem of how to look up the config file when QPID_DISPATCH_HOME is set. That needs some more thought. However, this change by itself is I think an improvement.

        Show
        Justin Ross added a comment - Define a default installation area for work inside a checkout Separate system tests so they can run against an installation Add qdtest, an entry point for running system tests Add install logic for qdtest and its system tests Add test.sh, a developer tool for running all the tests from top to bottom Update config.sh with variables for in-tree source, build, and install dirs This patch does not address the problem of how to look up the config file when QPID_DISPATCH_HOME is set. That needs some more thought. However, this change by itself is I think an improvement.
        Hide
        ASF subversion and git services added a comment -

        Commit 1547556 from Justin Ross in branch 'dispatch/trunk'
        [ https://svn.apache.org/r1547556 ]

        QPID-5380: Run the tests from a test install root

        • Define a default installation area for work inside a checkout
        • Separate system tests so they can run against an installation
        • Add qdtest, an entry point for running system tests
        • Add install logic for qdtest and its system tests
        • Add test.sh, a developer tool for running all the tests from top to bottom
        • Update config.sh with variables for in-tree source, build, and install dirs
        • Add a note on using test.sh to the README
        Show
        ASF subversion and git services added a comment - Commit 1547556 from Justin Ross in branch 'dispatch/trunk' [ https://svn.apache.org/r1547556 ] QPID-5380 : Run the tests from a test install root Define a default installation area for work inside a checkout Separate system tests so they can run against an installation Add qdtest, an entry point for running system tests Add install logic for qdtest and its system tests Add test.sh, a developer tool for running all the tests from top to bottom Update config.sh with variables for in-tree source, build, and install dirs Add a note on using test.sh to the README
        Hide
        ASF subversion and git services added a comment -

        Commit 1550236 from Ted Ross in branch 'dispatch/trunk'
        [ https://svn.apache.org/r1550236 ]

        QPID-5380

        • Make config path default point to the installed config
        • Add a hook (SYSCONF_INSTALL_PREFIX) to allow config to be installed in /etc/ for RPM-installs.
        Show
        ASF subversion and git services added a comment - Commit 1550236 from Ted Ross in branch 'dispatch/trunk' [ https://svn.apache.org/r1550236 ] QPID-5380 Make config path default point to the installed config Add a hook (SYSCONF_INSTALL_PREFIX) to allow config to be installed in /etc/ for RPM-installs.

          People

          • Assignee:
            Justin Ross
            Reporter:
            Justin Ross
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development