From 95eba93f40127b17775718f42bb36033cf684d6b Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Wed, 24 Apr 2024 18:29:06 +0200 Subject: [PATCH 1/2] chore(makefile): add target 'test-logs' to show test logs --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index abeac75ec637..3373b396afda 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,10 @@ ifndef test_spec endif @$(VENV) $(TEST_CMD) $(test_spec) +test-logs: + mkdir -p servroot/logs && touch servroot/logs/error.log + tail -F servroot/logs/error.log + pdk-phase-checks: dev rm -f t/phase_checks.stats rm -f t/phase_checks.report @@ -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 + From 79b3edb77830d260a976e1caffead3d38a0b417c Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 25 Apr 2024 16:22:30 +0200 Subject: [PATCH 2/2] address comments --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 3373b396afda..851c1b4655d7 100644 --- a/Makefile +++ b/Makefile @@ -160,7 +160,6 @@ endif @$(VENV) $(TEST_CMD) $(test_spec) test-logs: - mkdir -p servroot/logs && touch servroot/logs/error.log tail -F servroot/logs/error.log pdk-phase-checks: dev