From patchwork Mon May 13 17:52:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 243471 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1CB102C008F for ; Tue, 14 May 2013 03:53:09 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:subject:date:message-id:cc:to:mime-version; q=dns; s=default; b=CNRkLKxtbxEaq1FnzcX8Z8I9Cg28IZt9AqiymLL4N9gxNA4Lgj 3CApVAOjLebocZVGCe9KiCx0t6IIfNXwPqajXBMEwCw+YjRVxYvU1hS5susy2D7r Qw20bHis3k9BixKRIGLA1dgpk8A9uZx90TFW5Pzfm2Yx3rwKzQNYu6a8I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:subject:date:message-id:cc:to:mime-version; s= default; bh=hG95rCjP89mkZP3NLxTVOE09JgA=; b=Rz5H+Hqfagxogr5P6Z9A z02wfjvTFVLYHzNEixAkufys1aQlQUAPzO6vN4RlcEUbbzIZrnRRFngXUXDtDuUD VcQ4YP2Ncd5Vp+Pb5AsemjfPOsdFt42vX0SHgcHTZKiDix/FY/efP5tEIqcTseNY 8PgXRTI+TIOHh77jNySUjKE= Received: (qmail 309 invoked by alias); 13 May 2013 17:53:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 32753 invoked by uid 89); 13 May 2013 17:53:02 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from qmta15.emeryville.ca.mail.comcast.net (HELO qmta15.emeryville.ca.mail.comcast.net) (76.96.27.228) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 13 May 2013 17:53:01 +0000 Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta15.emeryville.ca.mail.comcast.net with comcast id bSd81l0030b6N64AFVt0w4; Mon, 13 May 2013 17:53:00 +0000 Received: from bag6-1-pt.tunnel.tserv3.fmt2.ipv6.he.net ([IPv6:2001:470:1f04:ae1::2]) by omta03.emeryville.ca.mail.comcast.net with comcast id bVsy1l00Y0P3DwE8PVsz1s; Mon, 13 May 2013 17:52:59 +0000 From: Mike Stump Subject: compare_tests Date: Mon, 13 May 2013 10:52:57 -0700 Message-Id: <497CC05F-67AF-466B-ABA8-72B671952007@comcast.net> Cc: Kenneth Zadeck To: "gcc-patches@gcc.gnu.org List" Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Virus-Found: No So, it turns out that comm on macosx does't like long lines. Don't know why that is, kinda unfortunate, but life goes on. 2013-05-13 Mike Stump * compare_tests: Limit lines to 2000 characters as comm on Mac OS X 10.8.3 doesn't like long lines (those 2055 characters or more). Index: compare_tests =================================================================== --- compare_tests (revision 198796) +++ compare_tests (working copy) @@ -2,6 +2,9 @@ # This script automatically test the given tool with the tool's test cases, # reporting anything of interest. +# Written by Mike Stump +# Subdir comparison added by Quentin Neill + usage() { if [ -n "$1" ] ; then @@ -29,9 +32,6 @@ EOUSAGE exit 2 } -# Written by Mike Stump -# Subdir comparison added by Quentin Neill - export LC_ALL=C tool=gxx @@ -107,8 +107,8 @@ elif [ -d "$1" -o -d "$2" ] ; then usage "Must specify either two directories or two files" fi -sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' >$tmp1 -sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' >$tmp2 +sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp1 +sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp2 before=$tmp1 now=$tmp2