From f5a7d4ee5f8b6fd99caeed02f92700db5bfe66ee Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 2 May 2024 06:39:08 +0200 Subject: [PATCH] chore(makefile): add target 'test-logs' to show test logs (#12926) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index abeac75ec637..851c1b4655d7 100644 --- a/Makefile +++ b/Makefile @@ -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) @@ -159,6 +159,9 @@ ifndef test_spec endif @$(VENV) $(TEST_CMD) $(test_spec) +test-logs: + tail -F servroot/logs/error.log + pdk-phase-checks: dev rm -f t/phase_checks.stats rm -f t/phase_checks.report @@ -198,3 +201,4 @@ install-legacy: @luarocks make OPENSSL_DIR=$(OPENSSL_DIR) CRYPTO_DIR=$(OPENSSL_DIR) YAML_DIR=$(YAML_DIR) dev-legacy: remove install-legacy dependencies +