Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To create baselines for your topic branch, you can invoke create_tests with the -generate g flag. To generate baselines for all tests in a test suite: 


cd ACMEE3SM/cime/scripts-acme
./create_test -machine
machine -compiler compiler  -category test suite-testname new-test-case.machine.compiler -testroot test-root-directory -generate new-test-baseline-dir -project account

or, to generate a baseline for an individual test:

cd ACME/cime/scripts-acme
./create_test -testname
new-test-case.machine.compiler -testroot test-root-directory -generate new-test-baseline-dir -project account

The arguments (and their supplied values) are:machine: the name of the machine

name -g

(if you just want individual tests, 1 or more test names can be provided instead of suite-name)


Optional arguments:

  • --compiler: the name of the compiler for which baselines are generated (test suite generation only)compileronly needed if default compiler is not the one you want)
  • --test-root: the name of the compiler for which baselines are generated (test suite generation only)categorya directory in which the test case will be generated and run (only needed if default e3sm scratch area is not what you want)
  • --project: the name of the test suite for which baselines are generated (test suite generation only)
  • testname: the name used to identify the single test for which the baselines will be generated (single test generation only)
  • testroot: the name of a directory in which the test case will be generated and run. Should probably be a new or empty directory.
  • generate: the directory in which the baseline files will be stored. This should be the directory you use for baseline comparisons in your topic branch
  • project: the name of the account to charge for compute timeaccount to charge for compute time (only needed if default project for current machine is not the one you want)
  • --baseline-name: the name of your baselines (only needed if you want a name other than the current branch name)
  • --baseline-root: the root of your baselines (only needed if you want a different root than the machine default)

If your code development changes an answer in a test, you will need to regenerate your baselines for your tests to pass, both in testing your own topic branch, and when the branch is integrated to next (and then to master).