Run a subset of the Keystore CTS test cases on presubmit when keystore2
gets changed. Also Run the full CTS test suite as post submit.
Bug: 204906931
Test: Improves test coverage during presubmit.
Change-Id: I9b14734e4d838881e7dabf698b3df826a0ed433b
The run_as function allows a test with sufficient privileges to run a
closure as different identity given by a tuple of UID, GID, and SELinux
context. This is infrastructure in preparation for the keystore2 vts
test.
Test: keystore2_test_utils_test
Bug: 182508302
Change-Id: Ic1923028e5bc4ca4b1112e34669d52687450fd14
This is needed because credstore depends on getting auth-tokens from
keystore2.
Bug: None
Test: N/A
Change-Id: I87e130f1e9a39bb48c73a9702b26d84b3a5c5707
Adds the crypto tests to TEST_MAPPING.
Fix the compat tests when run locally.
Test: atest --test-mapping
Test: Run tests manually and with atest
Change-Id: I6dd40dd036b84a199cb1a90e511f459a79ddd469
This implements the Keymint 1 spec by wrapping the legacy Keymaster
implementation.
Test: atest keystore2_km_compat_test
Test: atest keystore2_certificate_test
Test: Manually verify that keystore2 can find a legacy implementation.
Change-Id: Ia56c25eed0f97a7e6194954a655ceb62259b3273
Adds an empty crate with a build config for libkeystore2 and the
keystore2 test.
Also add a TEST_MAPPING file setting up keystore2_test as presubmit
test.
Bug: 160623310
Test: keystore2_test
Change-Id: I2cda9a74a43422453cf5d1d44867107c9f0292bf