public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: "Martin Liška" <mliska@suse.cz>
Cc: dwz@sourceware.org, Tom de Vries <tdevries@suse.de>
Subject: Re: ☺ Buildbot (GNU Toolchain): dwz - build successful (master)
Date: Fri, 1 Jul 2022 09:43:22 +0200	[thread overview]
Message-ID: <Yr6lms5ZjxAueb9R@wildebeest.org> (raw)
In-Reply-To: <edfe108c-f4a3-7835-8c32-8c1176e1e3a9@suse.cz>

Hi Martin,

On Fri, Jul 01, 2022 at 08:42:00AM +0200, Martin Liška wrote:
> > So I think that should also be a passing condition (no decls left).
> > It would be good to make sure they were there at the start though.
> 
> Oh, I see, so please try the updated version of the patch?

Looks good to me. And makes the test PASS locally.

Thanks,

Mark

> From e08b4e361546d4db773b3948241b586fa5ea55d7 Mon Sep 17 00:00:00 2001
> From: Martin Liska <mliska@suse.cz>
> Date: Thu, 30 Jun 2022 16:21:58 +0200
> Subject: [PATCH] testsuite: verify directly merged DW_AT_declarations
> 
> Do not rely on number of DW_AT_declaration and check symbols
> instead.
> ---
>  testsuite/dwz.tests/odr-struct-ns.sh | 14 +++++++++-----
>  testsuite/dwz.tests/odr-struct.sh    | 14 +++++++++-----
>  2 files changed, 18 insertions(+), 10 deletions(-)
> 
> diff --git a/testsuite/dwz.tests/odr-struct-ns.sh b/testsuite/dwz.tests/odr-struct-ns.sh
> index 4fd00af..c6e0f1d 100644
> --- a/testsuite/dwz.tests/odr-struct-ns.sh
> +++ b/testsuite/dwz.tests/odr-struct-ns.sh
> @@ -21,7 +21,10 @@ for name in member_one member_two member_three member_four; do
>  	esac
>  done
>  
> -decl_cnt=$(readelf -wi 1 | grep -c "DW_AT_declaration" || true)
> +# Check that bbb and ccc are present as DW_AT_declaration
> +readelf -wi 1 | grep -3 DW_AT_declaration > decls
> +grep bbb decls >/dev/null
> +grep ccc decls >/dev/null
>  
>  $execs/dwz-for-test --odr 1
>  
> @@ -38,8 +41,9 @@ for name in member_one member_two member_three member_four; do
>  done
>  
>  # We expect two decls to be removed, for bbb and ccc.
> -expected_decl_cnt=$(($decl_cnt - 2))
> -decl_cnt=$(readelf -wi 1 | grep -c "DW_AT_declaration" || true)
> -[ $expected_decl_cnt -eq $decl_cnt ]
> +readelf -wi 1 | grep -3 DW_AT_declaration > decls || true
>  
> -rm -f 1
> +if grep bbb decls >/dev/null ; then exit 1; fi
> +if grep ccc decls >/dev/null ; then exit 2; fi
> +
> +rm -f 1 decls
> diff --git a/testsuite/dwz.tests/odr-struct.sh b/testsuite/dwz.tests/odr-struct.sh
> index d0fddf9..c6793f9 100644
> --- a/testsuite/dwz.tests/odr-struct.sh
> +++ b/testsuite/dwz.tests/odr-struct.sh
> @@ -21,7 +21,10 @@ for name in member_one member_two member_three member_four; do
>  	esac
>  done
>  
> -decl_cnt=$(readelf -wi 1 | grep -c "DW_AT_declaration" || true)
> +# Check that bbb and ccc are present as DW_AT_declaration
> +readelf -wi 1 | grep -3 DW_AT_declaration > decls
> +grep bbb decls >/dev/null
> +grep ccc decls >/dev/null
>  
>  $execs/dwz-for-test --odr 1
>  
> @@ -38,8 +41,9 @@ for name in member_one member_two member_three member_four; do
>  done
>  
>  # We expect two decls to be removed, for bbb and ccc.
> -expected_decl_cnt=$(($decl_cnt - 2))
> -decl_cnt=$(readelf -wi 1 | grep -c "DW_AT_declaration" || true)
> -[ $expected_decl_cnt -eq $decl_cnt ]
> +readelf -wi 1 | grep -3 DW_AT_declaration > decls || true
>  
> -rm -f 1
> +if grep bbb decls >/dev/null ; then exit 1; fi
> +if grep ccc decls >/dev/null ; then exit 2; fi
> +
> +rm -f 1 decls
> -- 
> 2.36.1
> 


  reply	other threads:[~2022-07-01  7:43 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-25 21:56 builder
2022-06-25 22:17 ` Mark Wielaard
2022-06-27  7:25   ` Martin Liška
2022-06-28 21:43     ` Mark Wielaard
2022-06-29  7:17       ` Florian Weimer
2022-06-30 14:23       ` Martin Liška
2022-06-30 20:05         ` Mark Wielaard
2022-07-01  6:42           ` Martin Liška
2022-07-01  7:43             ` Mark Wielaard [this message]
2022-07-01  7:53               ` Martin Liška
  -- strict thread matches above, loose matches on Subject: below --
2022-11-03 22:18 builder
2022-07-11  8:44 builder
2022-07-11  8:44 builder
2022-07-07 15:29 builder
2022-07-07 13:12 builder
2022-07-07 13:10 builder
2022-07-07 12:46 builder
2022-07-07 12:46 builder
2022-07-07 12:39 builder
2022-07-07 12:38 builder
2022-07-07 12:32 builder
2022-07-07 12:31 builder
2022-07-01  7:56 builder
2022-06-30 12:50 builder
2022-06-30 12:55 ` Mark Wielaard
2022-06-25 21:55 builder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yr6lms5ZjxAueb9R@wildebeest.org \
    --to=mark@klomp.org \
    --cc=dwz@sourceware.org \
    --cc=mliska@suse.cz \
    --cc=tdevries@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).