tests: combining the fuzz case lists into a single variable
This commit is contained in:
8
Makefile
8
Makefile
@@ -26,7 +26,7 @@ UNIT_TEST_PACKAGES := ./cmd/goyco ./internal/config ./internal/database ./intern
|
|||||||
INTEGRATION_TEST_PACKAGE := ./internal/integration/...
|
INTEGRATION_TEST_PACKAGE := ./internal/integration/...
|
||||||
E2E_TEST_PACKAGE := ./internal/e2e/...
|
E2E_TEST_PACKAGE := ./internal/e2e/...
|
||||||
|
|
||||||
FUZZ_UNIT_CASES := \
|
FUZZ_CASES := \
|
||||||
./internal/validation::FuzzValidateEmail \
|
./internal/validation::FuzzValidateEmail \
|
||||||
./internal/validation::FuzzValidateUsername \
|
./internal/validation::FuzzValidateUsername \
|
||||||
./internal/validation::FuzzValidatePassword \
|
./internal/validation::FuzzValidatePassword \
|
||||||
@@ -53,9 +53,7 @@ FUZZ_UNIT_CASES := \
|
|||||||
./internal/handlers::FuzzHTTPHeaders \
|
./internal/handlers::FuzzHTTPHeaders \
|
||||||
./cmd/goyco::FuzzCLIArgs \
|
./cmd/goyco::FuzzCLIArgs \
|
||||||
./cmd/goyco::FuzzCommandDispatch \
|
./cmd/goyco::FuzzCommandDispatch \
|
||||||
./cmd/goyco::FuzzRunCommandHandler
|
./cmd/goyco::FuzzRunCommandHandler \
|
||||||
|
|
||||||
FUZZ_CENTRALIZED_CASES := \
|
|
||||||
./internal/fuzz::FuzzSearchRepository \
|
./internal/fuzz::FuzzSearchRepository \
|
||||||
./internal/fuzz::FuzzPostRepository \
|
./internal/fuzz::FuzzPostRepository \
|
||||||
./internal/fuzz::FuzzIntegrationHandlers \
|
./internal/fuzz::FuzzIntegrationHandlers \
|
||||||
@@ -118,7 +116,7 @@ e2e-tests:
|
|||||||
|
|
||||||
fuzz-tests:
|
fuzz-tests:
|
||||||
@echo "Running fuzz tests..."
|
@echo "Running fuzz tests..."
|
||||||
$(call run-fuzz-cases,$(FUZZ_UNIT_CASES) $(FUZZ_CENTRALIZED_CASES))
|
$(call run-fuzz-cases,$(FUZZ_CASES))
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@useradd -r -m -d $(INSTALL_DIR) -s /usr/sbin/nologin goyco
|
@useradd -r -m -d $(INSTALL_DIR) -s /usr/sbin/nologin goyco
|
||||||
|
|||||||
Reference in New Issue
Block a user