From: Tom de Vries <tdevries@suse.de>
To: Mark Wielaard <mark@klomp.org>
Cc: dwz@sourceware.org
Subject: Re: Added a buildbot for dwz
Date: Tue, 01 Jan 2019 00:00:00 -0000 [thread overview]
Message-ID: <defa4ba1-ae02-de69-ba80-2b62ec7178a5@suse.de> (raw)
In-Reply-To: <20190316163108.GA2435@wildebeest.org>
On 16-03-19 17:31, Mark Wielaard wrote:
> On Sat, Mar 16, 2019 at 04:23:25PM +0100, Tom de Vries wrote:
>>> To celebrate that dwz now has a testsuite I added a buildbot:
>>> https://builder.wildebeest.org/buildbot/#/builders?tags=dwz
>>>
>>
>> I've just pushed a fix for a dejagnu warning on my laptop, and there I
>> see no warnings anymore.
>>
>> However, all builds on the build bot that I checked show:
>> ...
>> WARNING: Couldn't find the global config file.
>> ...
>>
>> I'm not sure if this should be fixed on the buildbot, or in the sources.
>
> Apparently this comes from not setting the DEJAGNU variable:
>
> There is an optional global site.exp, containing
> configuration values that apply to DejaGnu
> site-wide. runtest loads these values first. The global
> site.exp contains the default values for all targets and
> hosts supported by DejaGnu. This global file is identified
> by setting the environment variable DEJAGNU to the name of
> the file. If DEJAGNU is set, but the file cannot be
> located, an error will be raised and runtest will abort.
>
> https://www.gnu.org/software/dejagnu/manual/Customizing-DejaGnu.html
>
> The following seems to always suppress the WARNING:
>
> diff --git a/Makefile b/Makefile
> index 1aa208f..2a9898c 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -26,9 +26,14 @@ hello:
> dw2-restrict:
> $(CC) $(TEST_SRC)/dw2-restrict.S -o $@ || touch $@
>
> +# On some systems we need to set and export DEJAGNU to suppress
> +# WARNING: Couldn't find the global config file.
> +DEJAGNU ?= /dev/null
> +
> check: dwz $(TEST_EXECS)
> mkdir -p testsuite-bin
> cd testsuite-bin; ln -sf $(PWD)/dwz .
> + export DEJAGNU=$(DEJAGNU); \
> export PATH=$(PWD)/testsuite-bin:$$PATH; export LC_ALL=C; \
> runtest --tool=dwz -srcdir testsuite $(RUNTESTFLAGS)
> rm -Rf testsuite-bin $(TEST_EXECS)
>
> Does that make sense?
Works for me.
Thanks,
- Tom
next prev parent reply other threads:[~2019-03-16 16:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-01 0:00 Tom de Vries
2019-01-01 0:00 ` Mark Wielaard
2019-01-01 0:00 ` Tom de Vries [this message]
2019-01-01 0:00 ` Mark Wielaard
2019-01-01 0:00 ` [PATCH] Backport "libiberty: Fix -Wimplicit-fallthrough warnings" Tom de Vries
2019-01-01 0:00 ` Jakub Jelinek
2019-01-01 0:00 Added a buildbot for dwz Mark Wielaard
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=defa4ba1-ae02-de69-ba80-2b62ec7178a5@suse.de \
--to=tdevries@suse.de \
--cc=dwz@sourceware.org \
--cc=mark@klomp.org \
/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).