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

Created a script to generate a new test in the WT test framework

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.7, 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage - Ra 2021-05-17

      The script will be executed in the following way:

      ./new_test.sh test_01.

      The script should create the required files:

      The script should setup base code in run.cxx:

      • Include the new test after the existing includes:
      #include "toto.cxx" 
      • Add "test_01" to the variable all_tests in the main:
      all_tests = {..., "test_01"}; 
      • Complete the run_test function as follows:
      else if (test_name == "test_01")
        test_01(cfg, test_name).run(); 

      In test_data.py, declare the new test:

      methods = {
      ...,
      'test_01' : Method(test_config)
      } 

        1. s_new_test
          2 kB
          Etienne Petrel

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            deepti.hasija@mongodb.com Deepti Hasija (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: