From patchwork Fri Sep 20 20:23:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frank Ch. Eigler" X-Patchwork-Id: 97777 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 02B44385AC29 for ; Fri, 20 Sep 2024 20:23:54 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id DE4F33858D39 for ; Fri, 20 Sep 2024 20:23:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE4F33858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DE4F33858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726863804; cv=none; b=eK+OCFdbtnC9LXH00kyMU9MuvaK16hkcBSQKNTdVOQcoNVN/Sin1kDGfI7Cy8Wv9NtytPBi81T/QcCOPzq0JDAUuoe+lplhasLg8xwKieXyrNXo0bbHcW/TA6JS/AAEdtXvw1JAl1y7nxRaL4A4JsqHD1D7LihjNRAUpHXFVnW8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726863804; c=relaxed/simple; bh=HFuINruf230x3QWxrKYBYJr71N/BagyO5LP6R34C4fQ=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=C1d7HpUPMgkSxzzxkrnPk5cAeR3k9+MiFyR4ne/nqc2luXbivtmGt7hXSsYsTR6xPzCFg1xHZ6rS7/XeX4pwckRChZzjEDVVr5i9dWjmc6JkrrS6tcTXAceUgTFKCcaWDm5hg6GigPx8aZXBaNIK9AEvA5JjfDDnhTtdejH6Irk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726863802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ySIqVOfqWbTMgkJHOXp81CMVprVuYDP82kRdRoQg8xE=; b=NerultV8Yg6DafI0xIMOm3rJ8t3JA5z25PyeUiAc0ICWrO9O2Dera6hmyi57EqIcUKOgjH rIlh2O5j6yIiAD768iYn78qjOQ4KPgLgpqQEkJQ7bIxEZGXhDLzN1l5dODHn9ujeFdWj2j ZjwypETlNylo78UTDDBYSFgxzETCNBU= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-659-ft-t8-C7N0OIqBjYiHCh1g-1; Fri, 20 Sep 2024 16:23:21 -0400 X-MC-Unique: ft-t8-C7N0OIqBjYiHCh1g-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 84E4F1979049 for ; Fri, 20 Sep 2024 20:23:20 +0000 (UTC) Received: from redhat.com (unknown [10.22.16.16]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 380AA19560AA for ; Fri, 20 Sep 2024 20:23:20 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94.2) (envelope-from ) id 1srk9u-00049p-HI for binutils@sourceware.org; Fri, 20 Sep 2024 16:23:18 -0400 Date: Fri, 20 Sep 2024 16:23:18 -0400 From: "Frank Ch. Eigler" To: binutils@sourceware.org Subject: [patch] [testsuite] debuginfod.exp canonicalization Message-ID: <20240920202318.GE9443@redhat.com> MIME-Version: 1.0 User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, SUBJ_LACKS_WORDS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org Hi - The following little patch makes a few binutils test results more comparable across builds/versions. There's another one coming for libctf. commit a139fd518a73915c1e87737e645df0591af97486 (HEAD -> master) Author: Frank Ch. Eigler Date: Fri Sep 20 16:19:41 2024 -0400 binutils testsuite: canonicalize subtest names in debuginfod.exp Previous code included the full $srcdir pathnames in the individual subtest PASS/FAIL names, which makes it difficult to compute comparisons or regressions between test runs on different machines. This version switches to the basename only, which are common. Signed-off-by: Frank Ch. Eigler diff --git a/binutils/testsuite/binutils-all/debuginfod.exp b/binutils/testsuite/binutils-all/debuginfod.exp index 2f7464458000..af0dc092fe96 100644 --- a/binutils/testsuite/binutils-all/debuginfod.exp +++ b/binutils/testsuite/binutils-all/debuginfod.exp @@ -34,12 +34,12 @@ if { ![is_elf_format] || ![isnative] } { } if { [which $OBJDUMP] == 0} { - perror "$test $OBJDUMP (does not exist)" + perror "$test [file tail $OBJDUMP] (does not exist)" return } if { [which $READELF] == 0} { - perror "$test $READELF (does not exist)" + perror "$test [file tail $READELF] (does not exist)" return } @@ -162,9 +162,9 @@ proc test_fetch_debuglink { prog progargs } { set got [binutils_run $prog "$progargs tmpdir/testprog"] if { [regexp ".*Found separate debug info file.*Contents\[^\n\]*loaded from\[^\n\]*" $got] } { - pass "$test ($prog debuglink)" + pass "$test ([file tail $prog] debuglink)" } else { - fail "$test ($prog did not find debuglink to cache $cache)" + fail "$test ([file tail $prog] did not find debuglink to cache)" } } @@ -178,9 +178,9 @@ proc test_fetch_debugaltlink { prog progargs } { set buildid "00112233445566778899aabbccddeeff0123456789abcdef" if { [regexp ".*Found separate debug info file\[^\n\]*$cache/$buildid" $got] } { - pass "$test ($prog debugaltlink)" + pass "$test ([file tail $prog] debugaltlink)" } else { - fail "$test ($prog could not load debugaltlink)" + fail "$test ([file tail $prog] could not load debugaltlink)" } }