Debian Codegraph @

Makefile

raw symbols SCIP
1 # A make file for creating a s-tui executable.
2 # This requires pandoc and pyinstaller
3
4 all: stui del
5
6 # Create s-tui executable
7 stui:
8 pyinstaller s_tui/s_tui.py -F -n s-tui
9 mv dist/s-tui .
10
11 # Remove files created by pyinstaller
12 del:
13 rm -rf ./s_tui/dist/ ./build/ ./s_tui/s*.spec ./s_tui/*.pyc ./s_tui/*.log s-tui.spec dist/
14
15 # Clear pyinstall cache and delete file
16 clean:
17 pyinstaller --clean s-tui
18 rm -rf ./s_tui/dist/ ./s_tui/build/ ./s_tui/s*.spec ./s_tui/*.pyc ./s_tui/*.log s-tui.spec dist/
19
20 debug:
21 python -m s_tui.s_tui
22
23 # ---- Test targets ----
24
25 # Run all CI-compatible tests (mocked, no hardware required)
26 test:
27 python -m pytest tests/ -m "not hardware" -v --tb=short
28
29 # Run only hardware integration tests (requires real sensors)
30 test-hw:
31 python -m pytest tests/ -m hardware -v --tb=short
32
33 # Run the full suite (CI + hardware)
34 test-all:
35 python -m pytest tests/ -v --tb=short
36
37 # Run tests matching a keyword (usage: make test-k K=pattern)
38 test-k:
39 python -m pytest tests/ -k "$(K)" -v --tb=short
40
41 # Run only expected-to-fail (xfail) tests
42 test-xfail:
43 python -m pytest tests/test_psutil_failures.py::TestTempSourceFailures tests/test_runtime_disruption.py -v --tb=short