check_case is a script in CIMEROOT/CIME/Tools.

$ ./check_case --help
usage: check_case [-h] [-d] [-v] [-s]

Script to verify that the case is ready for submission.

Typical usage is simply:

You can run this before running case.submit to:
  - Ensure that all of the env xml files are in sync with the locked files
  - Create namelists (thus verifying that there will be no problems with
    namelist generation)
  - Ensure that the build is complete

Running this is completely optional: these checks will be done
automatically when running case.submit. However, you can run this if you
want to perform these checks without actually submitting the case.

  -h, --help     show this help message and exit
  -d, --debug    Print debug information (very verbose) to file /home/runner/work/cime/cime/CIME/Tools/check_case.log
  -v, --verbose  Add additional context (time and file) to log messages
  -s, --silent   Print only warnings and error messages