Improve data separation test coverage
Two areas need better coverage:
1. Tests are not verifying that files in /data/vendor do not have the
core_data_file_type attribute.
2. No error is thrown if a type lives in both /data/vendor
/data/<not vendor>.
Bug: 72998741
Test: build all selinux policies on master (assert build time tests)
Test: build and boot Marlin and Taimen, verify no selinux denials and
everything works as expected.
Change-Id: I133a068123139a599b9b81ddcc254616894621eb
(cherry picked from commit 55d5e28472ad9cd87da0b451d78555d8aae43bb8)
diff --git a/tests/Android.bp b/tests/Android.bp
index 144b995..93a41b9 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -33,9 +33,10 @@
python_binary_host {
name: "treble_sepolicy_tests",
srcs: [
- "treble_sepolicy_tests.py",
+ "FcSort.py",
"mini_parser.py",
"policy.py",
+ "treble_sepolicy_tests.py",
],
required: ["libsepolwrap"],
defaults: ["py2_only"],
@@ -44,8 +45,9 @@
python_binary_host {
name: "sepolicy_tests",
srcs: [
- "sepolicy_tests.py",
+ "FcSort.py",
"policy.py",
+ "sepolicy_tests.py",
],
required: ["libsepolwrap"],
defaults: ["py2_only"],