mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 20:15:11 +00:00
8c34b46a22
• Bring what's shown in the version string in line with my other projects (URL, description, git hash and date for release-mode non-final builds only, potential for colours in the future) • Show +git or -git depending on feature status • Tests for the above, and for checking that the command-line flag is warned about
28 lines
742 B
TOML
28 lines
742 B
TOML
# These tests are meant to be run against an exa binary compiled with
|
||
# `--no-default-features`. They will fail otherwise.
|
||
|
||
|
||
[[cmd]]
|
||
name = "The missing features are documented in the version"
|
||
shell = "exa --version"
|
||
stdout = { string = "[-git]" }
|
||
stderr = { empty = true }
|
||
status = 0
|
||
tags = [ 'features' ]
|
||
|
||
[[cmd]]
|
||
name = "The ‘--git’ option is not accepted when the feature is disabled"
|
||
shell = "exa --git"
|
||
stdout = { empty = true }
|
||
stderr = { file = "outputs/disabled_git.txt" }
|
||
status = 3
|
||
tags = [ 'features' ]
|
||
|
||
[[cmd]]
|
||
name = "The ‘--git-ignore option is not accepted when the feature is disabled"
|
||
shell = "exa --git-ignore"
|
||
stdout = { empty = true }
|
||
stderr = { file = "outputs/disabled_git.txt" }
|
||
status = 3
|
||
tags = [ 'features' ]
|