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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.10.0
    • 1.10.0
    • cmake, tests
    • None

    Description

      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"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: