mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
34 lines
849 B
Makefile
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
|