From unknown Thu Jun 19 14:05:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9231: Use of TAP in Automake's own testsuite: avoid NIH Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 03 Aug 2011 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9231 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 9231@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131240249922235 (code B ref -1); Wed, 03 Aug 2011 20:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2011 20:14:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QohqE-0005ma-IJ for submit@debbugs.gnu.org; Wed, 03 Aug 2011 16:14:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QohqC-0005mT-AD for submit@debbugs.gnu.org; Wed, 03 Aug 2011 16:14:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qohpc-0005lA-5e for submit@debbugs.gnu.org; Wed, 03 Aug 2011 16:14:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:37446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qohpc-0005kz-0S for submit@debbugs.gnu.org; Wed, 03 Aug 2011 16:14:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qohpa-0003Eq-N0 for bug-automake@gnu.org; Wed, 03 Aug 2011 16:14:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QohpZ-0005jW-Bl for bug-automake@gnu.org; Wed, 03 Aug 2011 16:14:18 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:41829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QohpZ-0005jF-46 for bug-automake@gnu.org; Wed, 03 Aug 2011 16:14:17 -0400 Received: by wwf22 with SMTP id 22so970987wwf.30 for ; Wed, 03 Aug 2011 13:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=+Imz/V1UxpbHn2ocmLTyYHyhN8zIme4NMLQaUZepOTA=; b=xrPkSwoe404TkZasqbxQI+d0bUWC5HBZNJZo0sNLfpVpM2LaX79MDOMdBeSTO438AO X5YUzY7aQcjTf2ZoW8gP0WVNcVG4kHmxPnFYN1+0oSoRZx9UlWNstneKiihT9b7pPHb2 frYcu8QrfmPCrfhE5YRRhtZiC3etIx0ySTaec= Received: by 10.216.69.130 with SMTP id n2mr3247062wed.53.1312402455339; Wed, 03 Aug 2011 13:14:15 -0700 (PDT) Received: from bigio.localnet (host21-92-dynamic.9-87-r.retail.telecomitalia.it [87.9.92.21]) by mx.google.com with ESMTPS id w45sm768886wec.24.2011.08.03.13.14.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Aug 2011 13:14:14 -0700 (PDT) From: Stefano Lattarini Date: Wed, 3 Aug 2011 22:14:05 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201108032214.05946.stefano.lattarini@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Severity: wishlist OK, I gotta admit that the shell-oriented "TAP library" I've introduced in the 'test-protocols' branch[*] is probably one of worst example of the NIH syndrome *ever*. It's mostly OK for the simple uses I've put it to for the moment, but I can see that, if mismanaged, it could either remain brittle and inadequate (and force us to write more convoluted, indirected tests), or, on the other hand, become another complex package-in-a-package maintainance nightmare. [*] See commit `v1.11-920-gc349db0' "testsuite: scaffolding to allow use of TAP in our own tests": We should fix this creeping NIH-ness in the future, taking inspiration from pre-existing, real-world TAP generators implementated in the shell; among them are, e.g.: 1. The `t/test-lib.sh' library in the Git testsuite: 2. The `tap/libtap.sh' from the "C TAP Harness" package: Note that those implementations will still require some editing and reshaping in order to fit in the current Automake testing framework. Thanks, Stefano