From: Tom de Vries <tdevries@suse.de>
To: dwz@sourceware.org, jakub@redhat.com
Subject: [committed] Support make check RUNTESTFLAGS=a.exp=b
Date: Tue, 01 Jan 2019 00:00:00 -0000 [thread overview]
Message-ID: <20190315091947.GA16582@delia> (raw)
Hi,
Allow to run selection of tests, f.i.:
...
$ make check RUNTESTFLAGS=dwz-tests.exp=hardlink.sh
...
Committed to trunk.
Thanks,
- Tom
Support make check RUNTESTFLAGS=a.exp=b
2019-03-15 Tom de Vries <tdevries@suse.de>
* Makefile: Pass RUNTESTFLAGS to runtest.
* testsuite/dwz.tests/dwz-tests.exp: Honour runtest_file_p.
---
Makefile | 2 +-
testsuite/dwz.tests/dwz-tests.exp | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index b318fd7..d89ce10 100644
--- a/Makefile
+++ b/Makefile
@@ -26,5 +26,5 @@ check: dwz $(TEST_EXECS)
mkdir -p testsuite-bin
cd testsuite-bin; ln -sf $(PWD)/dwz .
export PATH=$(PWD)/testsuite-bin:$$PATH; export LC_ALL=C; \
- runtest --tool=dwz -srcdir testsuite
+ runtest --tool=dwz -srcdir testsuite $(RUNTESTFLAGS)
rm -Rf testsuite-bin $(TEST_EXECS)
diff --git a/testsuite/dwz.tests/dwz-tests.exp b/testsuite/dwz.tests/dwz-tests.exp
index f8114d0..d63f387 100644
--- a/testsuite/dwz.tests/dwz-tests.exp
+++ b/testsuite/dwz.tests/dwz-tests.exp
@@ -5,8 +5,15 @@ set pwd [pwd]
set env(PATH) $pwd/$srcdir/scripts:$::env(PATH)
foreach test $tests {
- set dir [exec basename $test]
- set dir $pwd/tmp.$dir
+ global runtests
+
+ set basename [exec basename $test]
+
+ if ![runtest_file_p $runtests $basename] {
+ continue
+ }
+
+ set dir $pwd/tmp.$basename
exec rm -Rf $dir
exec mkdir $dir
reply other threads:[~2019-03-15 9:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190315091947.GA16582@delia \
--to=tdevries@suse.de \
--cc=dwz@sourceware.org \
--cc=jakub@redhat.com \
/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).