Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2599

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.10.0
    • Affects Version/s: 1.10.0
    • Component/s: cmake, Testing
    • Labels:
      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 Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: