Introduce ${TESTS_BIN} in Makefiles to identify tested executables.

main
Jon Loeliger 2012-01-21 15:24:51 -06:00
parent 1ede50c355
commit 1456da7e2d
2 changed files with 9 additions and 3 deletions

View File

@ -193,6 +193,12 @@ fdtput: $(FDTPUT_OBJS) $(LIBFDT_archive)
# Testsuite rules
#
TESTS_PREFIX=tests/

TESTS_BIN += dtc
TESTS_BIN += convert-dtsv0
TESTS_BIN += fdtput
TESTS_BIN += fdtget

include tests/Makefile.tests

#

View File

@ -65,13 +65,13 @@ tests_clean:
rm -f $(STD_CLEANFILES:%=$(TESTS_PREFIX)%)
rm -f $(TESTS_CLEANFILES)

check: tests dtc convert-dtsv0
check: tests ${TESTS_BIN}
cd $(TESTS_PREFIX); ./run_tests.sh

checkm: tests dtc convert-dtsv0
checkm: tests ${TESTS_BIN}
cd $(TESTS_PREFIX); ./run_tests.sh -m 2>&1 | tee vglog.$$$$

checkv: tests dtc convert-dtsv0
checkv: tests ${TESTS_BIN}
cd $(TESTS_PREFIX); ./run_tests.sh -v

ifneq ($(DEPTARGETS),)