Skip to content
Myr

[debug] adding logging to makefile

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andre Kradolfer · committed by Jordan Harband · parent 9327711 · Browse files · 1 file+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−2 removed

  • other:+6 added−2 removed

1 file+6 added−2 removed

modified:Makefile+6 added-2 removed
38 unmodified lines
39# Set of test-<shell> targets; each runs the specified test suites for a single shell.40# Note that preexisting NVM_* variables are unset to avoid interfering with tests, except when running the Travis tests (where NVM_DIR must be passed in and the env. is assumed to be pristine).41.PHONY: $(SHELL_TARGETS)42$(SHELL_TARGETS):43 @shell='$@'; shell=$${shell##*-}; \43 @shell='$@'; shell=$${shell##*-}; which "$$shell" >/dev/null || { printf '\033[0;31m%s\033[0m\n' "WARNING: Cannot test with shell '$$shell': not found." >&2; exit 0; } && \44 which "$$shell" >/dev/null || { printf '\033[0;31m%s\033[0m\n' "WARNING: Cannot test with shell '$$shell': not found." >&2; exit 0; } && \45 printf '\n\033[0;34m%s\033[0m\n' "Running tests in $$shell"; \46 [ -z "$$TRAVIS_BUILD_DIR" ] && for v in $$(set | awk -F'=' '$$1 ~ "^NVM_" { print $$1 }'); do unset $$v; done && unset v; \46 for suite in $(TEST_SUITE); do $(URCHIN) -f -s $$shell test/$$suite || exit; done47 for suite in $(TEST_SUITE); do \48 echo "Running test suite: $$suite"; \49 $(URCHIN) -f -s $$shell test/$$suite || exit; \50 done5152# All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS).53.PHONY: test54test: $(SHELL_TARGETS)
35 unmodified lines