mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Add parser_sanity-no-gen target to run simple_tests
... without all the profiles generated by the gen-*.py scripts. This target is meant for local manual testing, especially when working on additional simple_tests profiles. It makes local testing much faster (15 seconds for ~2k profiles vs. several minutes for the additional ~70k profiles generated by gen-*.py) Needless to say that the CI should continue to use the parser_sanity target that includes all the generated profiles. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1325 Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
commit
4628f8e880
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ error_output: $(PARSER)
|
|||
parser_sanity: $(PARSER) gen_xtrans gen_dbus
|
||||
$(Q)LANG=C APPARMOR_PARSER="$(PARSER)" ${PROVE} ${PROVE_ARG} ${TESTS}
|
||||
|
||||
# use this target for faster manual testing if you don't want/need to test all the profiles generated by gen-*.py
|
||||
parser_sanity-no-gen: clean $(PARSER)
|
||||
@echo WARNING: not creating the profiles using the gen-*.py scripts
|
||||
$(Q)LANG=C APPARMOR_PARSER="$(PARSER)" ${PROVE} ${PROVE_ARG} ${TESTS}
|
||||
|
||||
caching: $(PARSER)
|
||||
LANG=C ./caching.py -p "$(PARSER)" $(PYTEST_ARG)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue