tests: valgrind: Rebuild tests before running them
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 26 Jul 2022 08:55:45 +0000 (09:55 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 26 Jul 2022 08:55:45 +0000 (09:55 +0100)
Makefile.am

index 3a685c9..69976bf 100644 (file)
@@ -58,7 +58,7 @@ test_multi_match_LDADD = libminiexpect.la
 
 # parallel-tests breaks the ability to put 'valgrind' into
 # TESTS_ENVIRONMENT.  Hence we have to work around it:
-check-valgrind:
+check-valgrind: $(TESTS)
        for t in $(TESTS); do \
          $(LIBTOOL) --mode=execute $(VG) ./$$t; \
          r=$$?; \