Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(makefile): add target 'test-logs' to show test logs #12926

Merged
merged 2 commits into from
May 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ endif
.PHONY: install dev \
lint test test-integration test-plugins test-all \
pdk-phase-check functional-tests \
fix-windows release wasm-test-filters
fix-windows release wasm-test-filters test-logs

ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
KONG_SOURCE_LOCATION ?= $(ROOT_DIR)
Expand Down Expand Up @@ -159,6 +159,10 @@ ifndef test_spec
endif
@$(VENV) $(TEST_CMD) $(test_spec)

test-logs:
mkdir -p servroot/logs && touch servroot/logs/error.log
Tieske marked this conversation as resolved.
Show resolved Hide resolved
Tieske marked this conversation as resolved.
Show resolved Hide resolved
tail -F servroot/logs/error.log

pdk-phase-checks: dev
rm -f t/phase_checks.stats
rm -f t/phase_checks.report
Expand Down Expand Up @@ -198,3 +202,4 @@ install-legacy:
@luarocks make OPENSSL_DIR=$(OPENSSL_DIR) CRYPTO_DIR=$(OPENSSL_DIR) YAML_DIR=$(YAML_DIR)

dev-legacy: remove install-legacy dependencies

Loading