• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# TODO: Move sources into a package.
2SRC_PATHS := *.py tests
3# This is distinct from SRC_PATHS because not all the tests can be run with
4# pytest. Any test that touches the METADATA file (or even imports a module that
5# does) must be run via soong.
6PYTEST_PATHS := tests
7
8.PHONY: check
9check: lint test
10.DEFAULT_GOAL: check
11
12.PHONY: lint
13lint:
14	mypy $(SRC_PATHS)
15	pylint $(SRC_PATHS)
16
17.PHONY: test
18test:
19	pytest $(PYTEST_PATHS)
20	atest --host-unit-test-only
21