mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 18:08:36 +00:00
c2de7da added -W ignore::DeprecationWarning to the 'test' target only, so
'make test-cov' and 'make test-verifier' still drown in warnings from the
generated vmlinux.py.
Also correct the test-verifier note: the suite does not run pytest under sudo,
tests/framework/verifier.py shells out to 'sudo bpftool' itself.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
24 lines
713 B
Makefile
24 lines
713 B
Makefile
install:
|
|
uv pip install -e ".[test]"
|
|
|
|
clean:
|
|
rm -rf build dist *.egg-info
|
|
rm -rf examples/*.ll examples/*.o
|
|
rm -rf htmlcov .coverage
|
|
|
|
test:
|
|
pytest tests/ -W ignore::DeprecationWarning -v --tb=short -m "not verifier"
|
|
|
|
test-cov:
|
|
pytest tests/ -W ignore::DeprecationWarning -v --tb=short -m "not verifier" \
|
|
--cov=pythonbpf --cov-report=term-missing --cov-report=html
|
|
|
|
test-verifier:
|
|
@echo "NOTE: verifier tests shell out to 'sudo bpftool'; run 'sudo -v' first so"
|
|
@echo " the timestamp does not lapse mid-run. bpftool must be installed."
|
|
pytest tests/test_verifier.py -W ignore::DeprecationWarning -v --tb=short -m verifier
|
|
|
|
all: clean install
|
|
|
|
.PHONY: all clean install test test-cov test-verifier
|