Skip to content

test command ​

Discover, build, and run Fortran test programs with a single command.

bash
fobis test [options] [-- EXTRA_ARGS...]

How to use it, with examples: Testing.

All options ​

OptionValueDefaultDescription
--fobos, -fTEXTSpecify a "fobos" file named differently from "fobos"
--fciAssume fobos inputs as case insensitive
--modeTEXTSelect a mode defined into a fobos file
--shadowTEXTRebuild the mode as a shadow (checks, sanitize or strict): the mode's settings with checking flags, in its own build directory (.fobis/shadow/<mode>-<shadow>/).
--compilerTEXTgnuCompiler used (case insensitive, default gnu)
--suiteTEXTRun only tests tagged with this suite name
--filterTEXTRun only tests whose name matches this glob pattern
--timeoutFLOATPer-test timeout in seconds [default: fobos [test] timeout, else 60]
--no-buildSkip (re-)compilation; run existing test binaries
--listList discovered tests without running them
--coverageGenerate coverage report after running tests
--explainWhen the program fails, explain why: from facts (location, declarations, debug mode to use, known compiler bugs), then with the LLM (cited cause and fix) when the location can be trusted.
--explain-contextLike --explain, but print what the model would receive instead.
--runnerTEXTlocalWhere the programs run: local, or slurm (jobs submitted with sbatch; [scheduler] settings).
--launcherTEXTStart the program through this command: an MPI launcher, a debugger, a checker ('mpirun -np {ranks}', 'gdb --args', 'valgrind'); {ranks} is replaced by --ranks [default: mode key launcher]
--ranksINTEGERNumber of MPI ranks: replaces {ranks} in the launcher (without a launcher: mpirun -np {ranks})
--jobs, -jINTEGERTest programs running at the same time (built first, one after the other); a test with --ranks takes as many [default: fobos [test] jobs, else 1]
--quiet, -qLess verbose output
--jsonEmit structured JSON to stdout instead of human-readable output (useful for scripting / agents)