From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Haggerty Subject: [PATCH 06/19] git-check-attr: Add tests of command-line parsing Date: Tue, 26 Jul 2011 16:12:49 +0200 Message-ID: <1311689582-3116-7-git-send-email-mhagger@alum.mit.edu> References: <1311689582-3116-1-git-send-email-mhagger@alum.mit.edu> Cc: gitster@pobox.com, Michael Haggerty To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Jul 26 16:32:11 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qlig7-0005I5-9o for gcvg-git-2@lo.gmane.org; Tue, 26 Jul 2011 16:32:11 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753369Ab1GZOcC (ORCPT ); Tue, 26 Jul 2011 10:32:02 -0400 Received: from mail.berlin.jpk.com ([212.222.128.130]:40205 "EHLO mail.berlin.jpk.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753290Ab1GZOb6 (ORCPT ); Tue, 26 Jul 2011 10:31:58 -0400 Received: from michael.berlin.jpk.com ([192.168.100.152]) by mail.berlin.jpk.com with esmtp (Exim 4.50) id 1QliM6-0004aQ-MP; Tue, 26 Jul 2011 16:11:30 +0200 X-Mailer: git-send-email 1.7.6.8.gd2879 In-Reply-To: <1311689582-3116-1-git-send-email-mhagger@alum.mit.edu> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Michael Haggerty --- t/t0003-attributes.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) 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 ' -- 1.7.6.8.gd2879