test
The test command is used to run three genomes with 3 different translation tables with the detect_table command.
If your installation is unable to run the test command with an exit code of 0, then
there is an issue with your installation.
Note
The test command runs detect_table and therefore requires the gTranslate models.
Download the models and set the GTRANSLATE_MODEL_PATH environment variable before running it
(see gTranslate Models).
Arguments
usage: gtranslate test [--out_dir OUT_DIR] [--tmpdir TMPDIR] [--cpus CPUS]
[-h]
optional arguments
- --out_dir
directory to output files
- --tmpdir
specify alternative directory for temporary files
Default:
'/tmp'- --cpus
number of CPUs to use
Default:
1
Files output
Files are written to --out_dir, or to a temporary directory which is deleted afterwards if --out_dir is
not specified:
genomes/: the three test genomes.output/: the output ofdetect_tablerun on the test genomes, see detect_table.test_execution.log: the console output ofdetect_table, which should be checked if the test fails.
Example
Input
gtranslate test --out_dir /tmp/test --cpus 3
Output
[2026-04-08 17:05:24] INFO: gTranslate v0.0.7
[2026-04-08 17:05:24] INFO: gtranslate test --out_dir run_test_command
[2026-04-08 17:05:24] INFO: Command: gtranslate detect_table --genome_dir run_test_command/genomes --out_dir run_test_command/output --cpus 1
[2026-04-08 17:06:22] INFO: Test has successfully finished.