public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add check-valgrind
@ 2021-03-25 13:57 Tom de Vries
  2021-03-25 20:32 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: Tom de Vries @ 2021-03-25 13:57 UTC (permalink / raw)
  To: dwz, jakub, mark

Hi,

Add a make target check-valgrind, that applies valgrind to dwz when used in
the testsuite.

Any comments?

Thanks,
- Tom

Add check-valgrind

2021-03-25  Tom de Vries  <tdevries@suse.de>

	* Makefile (check-valgrind): New target.

---
 Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index ff55738..470741b 100644
--- a/Makefile
+++ b/Makefile
@@ -143,9 +143,15 @@ cycle:
 # WARNING: Couldn't find the global config file.
 DEJAGNU ?= /dev/null
 
-check: dwz $(TEST_EXECS)
+check check-valgrind: dwz $(TEST_EXECS)
 	mkdir -p testsuite-bin
-	cd testsuite-bin; ln -sf $(PWD)/dwz .
+	cd testsuite-bin; \
+	  if [ "$@" = "check" ]; then \
+	    ln -sf $(PWD)/dwz .; \
+          else \
+            echo "valgrind -q $(PWD)/dwz \"\$$@\"" > dwz; \
+	    chmod +x dwz; \
+          fi
 	export DEJAGNU=$(DEJAGNU); \
 	export PATH=$(PWD)/testsuite-bin:$$PATH; export LC_ALL=C; \
 	runtest --tool=dwz -srcdir $(srcdir)/testsuite $(RUNTESTFLAGS)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-26  7:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 13:57 [PATCH] Add check-valgrind Tom de Vries
2021-03-25 20:32 ` Mark Wielaard
2021-03-26  7:09   ` 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).