From 7c303bb871289ed8cfb471548b07af3418137929 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sun, 29 Jun 2025 00:17:19 -0400 Subject: [PATCH] Launch proxy server before proxy test --- test/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 8b36991..f04a138 100644 --- a/test/Makefile +++ b/test/Makefile @@ -48,7 +48,15 @@ all : test test_split ./test proxy : test_proxy - ./test_proxy + @echo "Starting proxy server..." + cd proxy && \ + docker-compose up -d + @echo "Running proxy tests..." + ./test_proxy; \ + exit_code=$$?; \ + echo "Stopping proxy server..."; \ + docker-compose down; \ + exit $$exit_code test : test.cc include_httplib.cc ../httplib.h Makefile cert.pem $(CXX) -o $@ -I.. $(CXXFLAGS) test.cc include_httplib.cc $(TEST_ARGS)