zeek/testing/btest/Makefile
Robin Sommer febb7e8395 Covenience make target to update the three coverage tests that usually
need tweaking when scripts get added/removed.
2013-07-25 10:12:25 -07:00

34 lines
849 B
Makefile

DIAG=diag.log
BTEST=../../aux/btest/btest
all: cleanup btest-verbose coverage
# Showing all tests.
btest-verbose:
@$(BTEST) -j -f $(DIAG)
brief: cleanup btest-brief coverage
# Brief output showing only failed tests.
btest-brief:
@$(BTEST) -j -b -f $(DIAG)
coverage:
@../scripts/coverage-calc ".tmp/script-coverage*" coverage.log `pwd`/../../scripts
cleanup:
@rm -f $(DIAG)
@rm -f .tmp/script-coverage*
update-doc-sources:
../../doc/scripts/genDocSourcesList.sh ../../doc/scripts/DocSourcesList.cmake
# Updates the three coverage tests that usually need tweaking when
# scripts get added/removed.
update-coverage-tests: update-doc-sources
btest -qU coverage.bare-load-baseline
btest -qU coverage.default-load-baseline
@echo "Use 'git diff' to check updates look right."
.PHONY: all btest-verbose brief btest-brief coverage cleanup