Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8499

Create a function to execute tests from the cpp suite in evergreen.yml

      We have a few cpp tests that execute very similar commands. Instead, we should create a function that each test calls. This function could look like this:

        "cppsuite-test":
         - command: shell.exec
           params:
             working_dir: "wiredtiger/build_posix/"
             script: |
               set -o errexit
               set -o verbose
        
               ${test_env_vars|} $(pwd)/test/cppsuite/run -t ${test_name} -C '${test_config_extra}' -f test/cppsuite/configs/${test_config} -l 2 

      And a test would call it this way:

        - name: cppsuite-base-test-default
          tags: ["pull_request"]
          depends_on:
            - name: compile
          commands:
            - func: "fetch artifacts"
            - func: "cppsuite-test"
              vars:
                test_name: base_test
                test_config: base_test_default.txt
                test_config_extra: debug_mode=(cursor_copy=true) 

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: