Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E3D1B429E29 for ; Sun, 3 Jul 2011 21:07:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79DbUf4A0Edy for ; Sun, 3 Jul 2011 21:07:47 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 77E1E429E27 for ; Sun, 3 Jul 2011 21:07:46 -0700 (PDT) Received: by mail-bw0-f53.google.com with SMTP id 12so4447816bwg.26 for ; Sun, 03 Jul 2011 21:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=iaKsBaNzcMfINVTxJGc9kh1yf5VG/MPdUZnozS4quF0=; b=AT0/xd0zoENCuBNz8dc9qglAwwdvCon53o1xbUTHF78r6kLF+IKCqnacOpx00bprmI da40IZpHT/UUUfFCmHp5Z+VI2LQYEdJV6OfgMSm8ZhOqfQopwQ43ZogxFIleX7JKGwfk EcVE5pOej5kkfV7l4q9vR6PD+fFO3AlQyIZI8= Received: by 10.204.135.211 with SMTP id o19mr5239652bkt.63.1309752466162; Sun, 03 Jul 2011 21:07:46 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id af13sm5167838bkc.19.2011.07.03.21.07.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 21:07:45 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v2 2/3] test: improve known broken tests support Date: Mon, 4 Jul 2011 08:07:20 +0400 Message-Id: <1309752441-10651-3-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309752441-10651-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1309744743-8556-1-git-send-email-dmitry.kurochkin@gmail.com> <1309752441-10651-1-git-send-email-dmitry.kurochkin@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 04:07:49 -0000 There is existing support for broken tests. But it is not convenient to use. The primary issue is that we have to maintain a set of test_expect_*_failure functions which are equivalent to the normal test_expect_* counterparts except for what functions are called for result reporting. The patch adds test_subtest_known_broken function which marks a subset as broken, making the normal test_expect_* functions behave as test_expect_*_failure. All test_expect_*_failure functions are removed. Test_known_broken_failure_ is changed to format details the same way as test_failure_ does. Another benefit of this change is that the diff when a broken test is fixed would be small and nice. Documentation is updated accordingly. --- test/README | 17 ++++++------- test/test-lib.sh | 63 +++++++++++++++++------------------------------------ 2 files changed, 28 insertions(+), 52 deletions(-) diff --git a/test/README b/test/README index a245bf1..0b54748 100644 --- a/test/README +++ b/test/README @@ -132,20 +132,19 @@ library for your script to use.