]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: run valgrind-tests under $TESTS_ENVIRONMENT
authorMartin Pitt <martin@piware.de>
Tue, 14 Feb 2017 07:47:29 +0000 (08:47 +0100)
committerMartin Pitt <martin@piware.de>
Thu, 16 Feb 2017 20:36:30 +0000 (21:36 +0100)
Otherwise we are missing $TEST_DIR for the test data and run the test
against the system-installed binaries and keyboard/locale maps.

Makefile.am

index dbd45754b202859e8a229e7424e9c546262b23a4..c725d6d1aced9605ba3fa3e391a3fa40fc5cee6b 100644 (file)
@@ -6613,7 +6613,7 @@ valgrind-tests: $(TESTS)
                if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \
                echo -e "$${x}Skipping non-binary $$f"; else \
                echo -e "$${x}Running $$f"; \
-               $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
+               $(AM_TESTS_ENVIRONMENT) $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
                x="\n\n"; \
        done