From 90e0c5b60ed04f57375728eaedc5373a61f7bfa7 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Fri, 23 Jun 2017 21:31:13 +0100 Subject: [PATCH] Add tests for --help --long --- xtests/help_long | 19 +++++++++++++++++++ xtests/run.sh | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 xtests/help_long diff --git a/xtests/help_long b/xtests/help_long new file mode 100644 index 0000000..ee4dda3 --- /dev/null +++ b/xtests/help_long @@ -0,0 +1,19 @@ +Usage: + exa [options] [files...] + +LONG VIEW OPTIONS + -b, --binary list file sizes with binary prefixes + -B, --bytes list file sizes in bytes, without any prefixes + -g, --group list each file's group + -h, --header add a header row to each column + -H, --links list each file's number of hard links + -i, --inode list each file's inode number + -L, --level DEPTH limit the depth of recursion + -m, --modified use the modified timestamp field + -S, --blocks show number of file system blocks + -t, --time FIELD which timestamp field to list (modified, accessed, created) + -u, --accessed use the accessed timestamp field + -U, --created use the created timestamp field + --git list each file's Git status, if tracked + -@, --extended list each file's extended attributes and sizes + diff --git a/xtests/run.sh b/xtests/run.sh index 596e15f..54d68ee 100755 --- a/xtests/run.sh +++ b/xtests/run.sh @@ -110,6 +110,7 @@ $exa $testcases/git/additions -l --git 2>&1 | diff -q - $results/git_additions $exa $testcases/git/edits -l --git 2>&1 | diff -q - $results/git_edits || exit 1 # And finally... -$exa --help 2>&1 | diff -q - $results/help || exit 1 +$exa --help 2>&1 | diff -q - $results/help || exit 1 +$exa --help --long 2>&1 | diff -q - $results/help_long || exit 1 echo "All the tests passed!"