public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Support make check RUNTESTFLAGS=a.exp=b
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub

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
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-15  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Support make check RUNTESTFLAGS=a.exp=b Tom de Vries

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).