Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68063

Ability to define a sub-set of unit tests as a scons target

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Development Platform

      I'd like the ability to maintain a list of "interesting" unit tests for my team to use to validate results locally (pre patch build). As an example, we might run something like this today:

      ninja <FLAGS> install-devcore build/install/bin/algebra_test build/install/bin/db_pipeline_test build/install/bin/optimizer_test build/install/bin/sbe_abt_test && ./build/install/bin/algebra_test && ./build/install/bin/db_pipeline_test --fileNameFilter=pipeline_test.cpp && ./build/install/bin/optimizer_test && ./build/install/bin/sbe_abt_test && resmoke --suites=cqf,cqf_parallel,cqf_passthrough -j4
      

      I'd like to evolve that into something more like

      ninja <FLAGS> install-devcore install-cqf-unittests && resmoke --suites=cqf_unittests,cqf,cqf_parallel_cqf_passthrough -j4
      

      install-cqf-unittests would be my new scons target which compiles only these tests:

      build/install/bin/algebra_test
      build/install/bin/db_pipeline_test
      build/install/bin/optimizer_test
      build/install/bin/sbe_abt_test
      

      I would also need that scons invocation (ideally possible through ninja as well) to generate a list of all those tests, because that would be necessary for `resmoke.py` to be able to run that selected suite of tests in resmoke --suites=cqf_unittests,.... See this example where we need a source of all unit tests for resmoke to inspect.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: