|
|
@ -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)" |
|
|
|