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>

Michael Haggerty committed Aug 4, 2011 at 06:36 UTC 09d7dd7ad62fef60fc223fa74eb04c8dc783c2f6
1 file changed +7
t/t0003-attributes.sh
+7
@@ -44,6 +44,13 @@ test_expect_success 'setup' '
44
45 test_expect_success 'command line checks' '
46
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 &&
54 test_must_fail git check-attr "" -- f
55
56 '