diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-31 11:35:04 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-31 11:35:04 -0700 |
| commit | 52c25b7c14fc49ea947715cc8e6a235a88de6980 (patch) | |
| tree | b953b23467e9a89e5d505d4ef110d955b2a3f53b | |
| parent | 3247929e98903c49a2a5e98c201d69d94ed2def2 (diff) | |
| download | seaweedfs-52c25b7c14fc49ea947715cc8e6a235a88de6980.tar.xz seaweedfs-52c25b7c14fc49ea947715cc8e6a235a88de6980.zip | |
Update posix_Makefile
| -rw-r--r-- | test/fuse_integration/posix_Makefile | 20 |
1 files 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)" |
