From patchwork Mon Aug 22 13:57:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pekka Enberg X-Patchwork-Id: 1085392 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7MDvakV020938 for ; Mon, 22 Aug 2011 13:57:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750815Ab1HVN5g (ORCPT ); Mon, 22 Aug 2011 09:57:36 -0400 Received: from filtteri5.pp.htv.fi ([213.243.153.188]:47277 "EHLO filtteri5.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915Ab1HVN5f (ORCPT ); Mon, 22 Aug 2011 09:57:35 -0400 Received: from localhost (localhost [127.0.0.1]) by filtteri5.pp.htv.fi (Postfix) with ESMTP id 632D95A62BB; Mon, 22 Aug 2011 16:57:34 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp6.welho.com ([213.243.153.40]) by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new, port 10024) with ESMTP id OBlLLr7fU2Wr; Mon, 22 Aug 2011 16:57:34 +0300 (EEST) Received: from localhost.localdomain (cs181136138.pp.htv.fi [82.181.136.138]) by smtp6.welho.com (Postfix) with ESMTP id E20EA5BC005; Mon, 22 Aug 2011 16:57:33 +0300 (EEST) From: Pekka Enberg To: linux-sparse@vger.kernel.org Cc: Pekka Enberg , Christopher Li , Linus Torvalds Subject: [PATCH 1/5] sparse: Show expected vs. actual output on test failure Date: Mon, 22 Aug 2011 16:57:27 +0300 Message-Id: <1314021451-24808-1-git-send-email-penberg@kernel.org> X-Mailer: git-send-email 1.7.4.1 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 22 Aug 2011 13:57:40 +0000 (UTC) This patch changes 'make check' output to show sparse output compared to expected results upon unexpected test failure. For example, static-forward-decl.c output would look like this if it would not be tagged as "known to fail": TEST static forward declaration (static-forward-decl.c) error: actual error text does not match expected error text. --- static-forward-decl.c.error.expected 2011-08-22 06:29:40.000000000 +0000 +++ static-forward-decl.c.error.got 2011-08-22 06:29:40.000000000 +0000 @@ -0,0 +1 @@ +static-forward-decl.c:3:5: warning: symbol 'f' was not declared. Should it be static? error: see static-forward-decl.c.error.* for further investigation. info: test 'static-forward-decl.c' is known to fail This makes it easier to detect and analyze test breakage. Cc: Christopher Li Cc: Linus Torvalds Signed-off-by: Pekka Enberg --- validation/test-suite | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/validation/test-suite b/validation/test-suite index 42f7bd7..7549fd2 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -146,6 +146,8 @@ do_test() if [ "$?" -eq "0" ]; then echo "info: test '$file' is known to fail" known_ko_tests=`expr $known_ko_tests + 1` + else + cat "$file".$stream.diff fi return 1 else