2015-03-25 16:09:49 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
git-annex test - run built-in test suite
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex test
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
This runs git-annex's built-in test suite.
|
|
|
|
|
2016-01-06 17:44:12 +00:00
|
|
|
The test suite runs in the `.t` subdirectory of the current directory.
|
2015-03-25 16:09:49 +00:00
|
|
|
|
|
|
|
It can be useful to run the test suite on different filesystems,
|
|
|
|
or to verify your local installation of git-annex.
|
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
There are several options, provided by Haskell's tasty test
|
2016-01-06 17:44:12 +00:00
|
|
|
framework. Pass --help for details about those.
|
|
|
|
|
2022-03-16 18:42:07 +00:00
|
|
|
* `--jobs=N` `-JN`
|
|
|
|
|
|
|
|
How many tests to run in parallel. The default is "cpus", which will
|
|
|
|
runs one job per CPU core.
|
|
|
|
|
2016-01-06 17:44:12 +00:00
|
|
|
* `--keep-failures`
|
|
|
|
|
|
|
|
When there are test failures, leave the `.t` directory populated with
|
|
|
|
repositories that demonstate the failures, for later analysis.
|
2015-03-25 16:09:49 +00:00
|
|
|
|
2022-09-22 19:58:45 +00:00
|
|
|
* `--test-git-config name=value`
|
|
|
|
|
|
|
|
The test suite prevents git from reading any git configuration files.
|
|
|
|
Usually it is a good idea to run the test suite with a standard
|
|
|
|
git configuration. However, this option can be useful to see what
|
|
|
|
effect a git configuration setting has on the test suite.
|
|
|
|
|
|
|
|
Some configuration settings will break the test suite, in ways that are
|
|
|
|
due to a bug in git-annex. But it is possible that changing a
|
|
|
|
configuration can find a legitimate bug in git-annex.
|
|
|
|
|
|
|
|
One valid use of this is to change a git configuration to a value that
|
|
|
|
is planned to be the new default in a future version of git.
|
|
|
|
|
2022-11-28 19:12:53 +00:00
|
|
|
* `--test-debug`
|
|
|
|
|
|
|
|
Normally output of commands run by the test suite is hidden, so even
|
|
|
|
when annex.debug or --debug is enabled, it will not be displayed.
|
|
|
|
This option makes the full output of commands run by the test suite be
|
|
|
|
displayed. It also makes the test suite run git-annex with --debug.
|
|
|
|
|
|
|
|
It's a good idea to use `-J1` in combinaton with this, otherwise
|
|
|
|
the output of concurrent tests will be mixed together.
|
|
|
|
|
2015-03-25 16:09:49 +00:00
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
2017-11-09 15:34:53 +00:00
|
|
|
[[git-annex-testremote]](1)
|
|
|
|
|
2015-03-25 16:09:49 +00:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|