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>
maint
Michael Haggerty 2011-08-04 06:36:16 +02:00 committed by Junio C Hamano
parent dcc04366a4
commit 09d7dd7ad6
1 changed files with 7 additions and 0 deletions

View File

@ -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


' '