Skip to content

Commit 09d7dd7

Browse files
mhaggergitster
authored andcommitted
git-check-attr: Add tests of command-line parsing
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent dcc0436 commit 09d7dd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t0003-attributes.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ test_expect_success 'setup' '
4444

4545
test_expect_success 'command line checks' '
4646
47+
test_must_fail git check-attr &&
48+
test_must_fail git check-attr -- &&
49+
test_must_fail git check-attr -- f &&
50+
echo "f" | test_must_fail git check-attr --stdin &&
51+
echo "f" | test_must_fail git check-attr --stdin -- f &&
52+
echo "f" | test_must_fail git check-attr --stdin test -- f &&
53+
echo "f" | test_must_fail git check-attr --stdin test f &&
4754
test_must_fail git check-attr "" -- f
4855
4956
'

0 commit comments

Comments
 (0)