-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 673 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (21 loc) · 673 Bytes
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
29
.PHONY: test lint format cpp node secrets verify
PYTHON ?= python3
CXX ?= c++
lint:
ruff check .
format:
ruff format --check .
test:
pytest -q
node:
node decoder/decoder.test.js
cpp:
$(CXX) -std=c++17 -Ifirmware/nfp_environment_node tests/cpp/test_payload.cpp -o /tmp/nfp-payload-test
/tmp/nfp-payload-test
$(CXX) -std=c++17 -Ifirmware/nfp_smoke_alarm tests/cpp/test_smoke_policy.cpp -o /tmp/nfp-smoke-policy-test
/tmp/nfp-smoke-policy-test
secrets:
$(PYTHON) scripts/check_no_secrets.py
verify: lint format test node cpp secrets
$(PYTHON) -m tools.summarize_evaluation > /tmp/nfp-evaluation.md
@echo "All Nature and Facilities Protector checks passed."