From be70fbdf984c920d333664e93e6fa5350a88426d Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Sun, 27 Aug 2017 00:33:02 +0100 Subject: [PATCH] Add test for multiple Git repositories --- xtests/git_both | 9 +++++++++ xtests/run.sh | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 xtests/git_both diff --git a/xtests/git_both b/xtests/git_both new file mode 100644 index 0000000..a5ac7ae --- /dev/null +++ b/xtests/git_both @@ -0,0 +1,9 @@ +/testcases/git/additions: +.rw-rw-r-- 20 cassowary  1 Jan 12:34 NM edited +.rw-rw-r-- 0 cassowary  1 Jan 12:34 N- staged +.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N unstaged + +/testcases/git/edits: +.rw-rw-r-- 20 cassowary  1 Jan 12:34 MM both +.rw-rw-r-- 15 cassowary  1 Jan 12:34 M- staged +.rw-rw-r-- 20 cassowary  1 Jan 12:34 -M unstaged diff --git a/xtests/run.sh b/xtests/run.sh index eda9a31..4b1e782 100755 --- a/xtests/run.sh +++ b/xtests/run.sh @@ -188,8 +188,9 @@ COLUMNS=80 $exa_binary --colour=never $testcases/file-names-exts | diff -q - # Git -$exa $testcases/git/additions -l --git 2>&1 | diff -q - $results/git_additions || exit 1 -$exa $testcases/git/edits -l --git 2>&1 | diff -q - $results/git_edits || exit 1 +$exa $testcases/git/additions -l --git 2>&1 | diff -q - $results/git_additions || exit 1 +$exa $testcases/git/edits -l --git 2>&1 | diff -q - $results/git_edits || exit 1 +$exa $testcases/git/{additions,edits} -l --git 2>&1 | diff -q - $results/git_both || exit 1 # Hidden files