From 09d7dd7ad62fef60fc223fa74eb04c8dc783c2f6 Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Thu, 4 Aug 2011 06:36:16 +0200 Subject: git-check-attr: Add tests of command-line parsing Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index dae76b3..f1debeb 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 ' -- cgit v0.10.2-6-g49f6