Instead of per-scope bespoke onerror and onwarning functions, thread a generic diagnostic callback, and allow wrappers to more declaratively modify or add information as the diagnostic makes its way out of the systems.
15 lines
620 B
Makefile
15 lines
620 B
Makefile
SH ?= sh
|
|
|
|
TEST_COMMAND = python src --hostname testhost
|
|
|
|
check:
|
|
$(SH) tests/test-output.sh tests/config-errors.conf \
|
|
$(TEST_COMMAND) --config tests/config-errors.conf
|
|
$(SH) tests/test-output.sh tests/config-warnings.conf \
|
|
$(TEST_COMMAND) --config tests/config-warnings.conf
|
|
$(SH) tests/test-output.sh tests/command-line-pattern-diagnostics.transcript \
|
|
$(TEST_COMMAND) --config tests/empty.conf --include '~foo' --exclude foo/../bar
|
|
$(SH) tests/test-output.sh tests/missing-category.conf \
|
|
$(TEST_COMMAND) --config tests/missing-category.conf --repo tests/mock-repo --under tests/mock-under
|
|
|
|
.PHONY: check
|