summaryrefslogtreecommitdiff
path: root/t/t0003-attributes.sh
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-08-04 06:36:16 +0200
committerJunio C Hamano <gitster@pobox.com>2011-08-04 15:53:16 -0700
commit09d7dd7ad62fef60fc223fa74eb04c8dc783c2f6 (patch)
tree076356d456c5ad0f5bea7f34aaecd6d3033e6621 /t/t0003-attributes.sh
parentdcc04366a4658763500724888d9e74cae317c861 (diff)
downloadgit-09d7dd7ad62fef60fc223fa74eb04c8dc783c2f6.tar.gz
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>
Diffstat (limited to 't/t0003-attributes.sh')
-rwxr-xr-xt/t0003-attributes.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh
index dae76b39b8..f1debeb7ad 100755
--- 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_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
'