Commit Graph

5 Commits

Author SHA1 Message Date
Dan Shi
a1d69738ef Rename vts-core to vts
Bug: 151896491
Test: presubmit check
Exempt-From-Owner-Approval: This CL renames suite name vts-core to vts.
It won't change test logic or behavior.

Change-Id: I79cddf5e4a65486b8f1286ea430360479ad2b93d
2020-04-06 16:23:37 -07:00
Victor Hsieh
e85baf47c2 Put ApkVerityTest in vts-core
VTS provides rootable environment for ApkVerityTest to run.
ApkVerityTest needs to write block device to verify the failure case of
fs-verity.

Test: see ApkVerityTests and block_device_writer in `unzip -l
      out/host/linux-x86/vts-core/android-vts-core.zip`
Bug: 150641206
Change-Id: Idc71907a28f68fc873c5cac940aa706e0b79843e
2020-03-03 14:43:33 -08:00
Victor Hsieh
aa3b5d945f Add missing test dependencies for ApkVerityTest
By keeping block_device_writer_module in target_required, it avoids
build error of "missing variant: os:linux_glibc, arch:common", while
the test still run on forrest.

Test: forrest
Test: lunch flame-eng; atest ApkVerityTest
Test: lunch aosp_x86_64-eng; m ApkVerityTest
Bug: 112039386
Change-Id: I9cfa0928941b008e23c2a32bb47dae5369bd3201
2019-12-11 14:25:32 -08:00
Victor Hsieh
c84d102307 Rename ApkVerityTests to ApkVerityTest for consistency
This also makes TEST_MAPPING work.

Test: atest com.android.apkverity.ApkVerityTest
Test: atest -p frameworks/base/tests/ApkVerityTest:presubmit
Bug: 112039386
Change-Id: I721285770208b2a1b18ead2fa34c43e9e8bc0c46
2019-12-10 16:14:37 -08:00
Victor Hsieh
e82b9fb584 New integration test for fs-verity install and on-access verification
There are two categories of tests:

1. Package installation with .fsv_sig
  * .apk, .dm, including the split ones should all or none be installed
     with their corresponding .fsv_sig files

2. End-to-end fs-verity test of on-access verification
  * When fs-verity is enabled to a file, if the on-disk content is
    changed, the read should fail.

See class comment in ApkVerityTest.java for the test details.

Brief directory layout overview:
* src/
  - Actual test
* ApkVerityTestApp/
  - Dummy app for testing, including a split
* testdata/
  - Some artifacts, signing key and fs-verity signatures
* block_device_writer/
  - Helper binary for write a file directly on disk

Test: atest
Bug: 112039386
Change-Id: I3b8229037db682f36fda9d5cafd14caf6b39501d
2019-09-24 17:28:17 -07:00