Add 26.0 api compatibility check infrastructure.
Add support to the treble_sepolicy_tests suite that explicitly look at the old and current policy versions, as well as the compatibility file, to determine if any new types have been added without a compatibility entry. This first test catches the most common and likely changes that could change the type label of an object for which vendor policy may have needed access. It also should prove the basis for additional compatibility checks between old and new policies. Bug: 36899958 Test: Policy builds and tests pass. Change-Id: I609c913e6354eb10a04cc1a029ddd9fa0e592a4c
Showing
- Android.mk 99 additions, 8 deletionsAndroid.mk
- tests/Android.bp 7 additions, 1 deletiontests/Android.bp
- tests/mini_parser.py 100 additions, 0 deletionstests/mini_parser.py
- tests/policy.py 22 additions, 0 deletionstests/policy.py
- tests/sepol_wrap.cpp 51 additions, 30 deletionstests/sepol_wrap.cpp
- tests/treble_sepolicy_tests.py 76 additions, 10 deletionstests/treble_sepolicy_tests.py
tests/mini_parser.py
0 → 100644
Please register or sign in to comment