Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-check-attr: Add tests of command-line parsing
author
Michael Haggerty
<mhagger@alum.mit.edu>
Thu, 4 Aug 2011 04:36:16 +0000
(06:36 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 4 Aug 2011 22:53:16 +0000
(15:53 -0700)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0003-attributes.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
dcc0436
)
diff --git
a/t/t0003-attributes.sh
b/t/t0003-attributes.sh
index dae76b39b80233183a984a91ffbe397f68430a9e..f1debeb7ad872a501f11c951a1312bc8901b5e49 100755
(executable)
--- a/
t/t0003-attributes.sh
+++ b/
t/t0003-attributes.sh
@@
-44,6
+44,13
@@
test_expect_success 'setup' '
test_expect_success 'command line checks' '
test_expect_success 'command line checks' '
+ test_must_fail git check-attr &&
+ test_must_fail git check-attr -- &&
+ test_must_fail git check-attr -- f &&
+ echo "f" | test_must_fail git check-attr --stdin &&
+ echo "f" | test_must_fail git check-attr --stdin -- f &&
+ echo "f" | test_must_fail git check-attr --stdin test -- f &&
+ echo "f" | test_must_fail git check-attr --stdin test f &&
test_must_fail git check-attr "" -- f
'
test_must_fail git check-attr "" -- f
'