Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2106

Add Boost.Filesystem as a CMake submodule for testing

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Testing

      C+11 doesn't provide facilities for performing operations on file systems and their components, such as paths, regular files, and directories. C+17 remedies this by giving the Filesystem library. C+14 has an experimental version of this library too.

      Since we can't traverse files systems, to run tests, we're forced to append all JSON spec tests to files and specify the path to those files in environment variables. This method is error-prone as forgetting to add a JSON test to one of the test files means forgetting to run the test.

      Boost.filesystem provides all of the facilities we need and is compatible with C++11 (reference). We should add this library as a submodule for our test code.

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: