From 52c25b7c14fc49ea947715cc8e6a235a88de6980 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 31 Aug 2025 11:35:04 -0700 Subject: [PATCH] Update posix_Makefile --- test/fuse_integration/posix_Makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test/fuse_integration/posix_Makefile b/test/fuse_integration/posix_Makefile index 6bcd0f3b1..0d959bace 100644 --- a/test/fuse_integration/posix_Makefile +++ b/test/fuse_integration/posix_Makefile @@ -152,20 +152,29 @@ endif test-posix-stress: check-prereqs setup-reports @echo "$(CYAN)[TEST] Running POSIX stress tests...$(RESET)" - @go test -v -timeout $(TEST_TIMEOUT) \ +ifneq ($(TEST_MOUNT_POINT),) + @echo "$(BLUE)Using external mount point: $(TEST_MOUNT_POINT)$(RESET)" +endif + @$(GO_TEST_PREFIX) go test -v -timeout $(TEST_TIMEOUT) \ -run "TestExternalPOSIXSuites/CustomPOSIXTests" \ $(POSIX_EXTERNAL_TESTS) 2>&1 | tee $(REPORT_DIR)/posix_stress_results.log # Performance and benchmarks benchmark-posix: check-prereqs setup-reports @echo "$(CYAN)📈 Running POSIX performance benchmarks...$(RESET)" - @go test -v -timeout $(TEST_TIMEOUT) -bench=. -benchmem \ +ifneq ($(TEST_MOUNT_POINT),) + @echo "$(BLUE)Using external mount point: $(TEST_MOUNT_POINT)$(RESET)" +endif + @$(GO_TEST_PREFIX) go test -v -timeout $(TEST_TIMEOUT) -bench=. -benchmem \ . 2>&1 | \ tee $(REPORT_DIR)/posix_benchmark_results.log profile-posix: check-prereqs setup-reports @echo "$(CYAN)[PROFILE] Running POSIX tests with profiling...$(RESET)" - @go test -v -timeout $(TEST_TIMEOUT) -cpuprofile $(REPORT_DIR)/posix.cpu.prof \ +ifneq ($(TEST_MOUNT_POINT),) + @echo "$(BLUE)Using external mount point: $(TEST_MOUNT_POINT)$(RESET)" +endif + @$(GO_TEST_PREFIX) go test -v -timeout $(TEST_TIMEOUT) -cpuprofile $(REPORT_DIR)/posix.cpu.prof \ -memprofile $(REPORT_DIR)/posix.mem.prof -run TestPOSIXCompliance . @echo "$(GREEN)[PROFILE] Profiles generated:$(RESET)" @echo " CPU: $(REPORT_DIR)/posix.cpu.prof" @@ -175,7 +184,10 @@ profile-posix: check-prereqs setup-reports # Coverage analysis coverage-posix: check-prereqs setup-reports @echo "$(CYAN)[COVERAGE] Running POSIX tests with coverage analysis...$(RESET)" - @go test -v -timeout $(TEST_TIMEOUT) -coverprofile=$(REPORT_DIR)/$(COVERAGE_FILE) \ +ifneq ($(TEST_MOUNT_POINT),) + @echo "$(BLUE)Using external mount point: $(TEST_MOUNT_POINT)$(RESET)" +endif + @$(GO_TEST_PREFIX) go test -v -timeout $(TEST_TIMEOUT) -coverprofile=$(REPORT_DIR)/$(COVERAGE_FILE) \ . @go tool cover -html=$(REPORT_DIR)/$(COVERAGE_FILE) -o $(REPORT_DIR)/posix_coverage.html @echo "$(GREEN)[COVERAGE] Coverage report generated: $(REPORT_DIR)/posix_coverage.html$(RESET)"