tests: Add $(check_DATA) to check-valgrind dependencies.
authorBen Pfaff <blp@nicira.com>
Wed, 13 Jun 2012 20:26:27 +0000 (13:26 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 14 Jun 2012 16:29:01 +0000 (09:29 -0700)
Otherwise if you run "check-valgrind" in a tree where you've never run
"check", you get some test failures because some data files don't get
generated before the tests run.

Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/automake.mk

index b7e1b94e2598d1fc73945db9a422ef8f65963cc2..81d294272156e4017eff6fcf12c8deb711bae487 100644 (file)
@@ -192,7 +192,8 @@ VALGRIND = valgrind --log-file=valgrind.%p --leak-check=full \
        --suppressions=$(abs_top_srcdir)/tests/glibc.supp \
        --suppressions=$(abs_top_srcdir)/tests/openssl.supp --num-callers=20
 EXTRA_DIST += tests/glibc.supp tests/openssl.supp
-check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) $(valgrind_wrappers)
+check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) \
+                $(valgrind_wrappers) $(check_DATA)
        $(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)
        @echo
        @echo '----------------------------------------------------------------------'