Pass test options to "make test" or "make check"

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.10.0
    • Affects Version/s: 1.10.0
    • Component/s: cmake, Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When we ported the "make test" and "make check" targets from the Autotools to CMake we lost the ability to pass test arguments to the test runner. We can still do something like:

      make test-libmongoc && ./test-libmongoc --no-fork
      

      But it'd be better to make this possible with our custom "check" target:

      make check TEST_ARGS="--no-fork -D -l /My/test/name"
      

      Or even better, somehow customize the "test" target that cmake's enable_testing() function creates for us, so that it accepts arguments:

      make test TEST_ARGS="--no-fork -D -l /My/test/name"
      

              Assignee:
              Unassigned
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: