forked from CoinFabrik/scout-soroban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (24 loc) · 826 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ci: validate fmt lint test
ci-no-test: validate fmt lint
validate:
@echo "\033[0;32m\n==> Validating the project structure and test cases... \033[0m"
@python3 scripts/validate-detectors.py
fmt:
@echo "\033[0;32m\n---> Formatting test cases and detectors... \033[0m"
@python3 scripts/run-fmt.py --dir test-cases detectors
lint:
@echo "\033[0;32m\n--> Linting test cases and detectors... \033[0m"
@python3 scripts/run-clippy.py --dir test-cases detectors
test:
@echo "\033[0;32m\n--> Running tests for test cases... \033[0m"
ifdef detector
@detector_name=$(detector); \
python3 scripts/run-tests.py --detector=$$detector_name;
else
@for dir in test-cases/*; do \
if [ -d "$$dir" ]; then \
detector_name=$$(basename "$$dir"); \
python3 scripts/run-tests.py --detector=$$detector_name; \
fi; \
done
endif