Commit graph

9 commits

Author SHA1 Message Date
Tri Vo
724e4e5660 Add keystore2_client_tests to TEST_MAPPING
Bug: 194359114
Test: keystore2_client_tests
Change-Id: Ia5f774cd797d1b4b4e343a5588833739ad4843ee
2023-10-23 14:50:25 -04:00
Janis Danisevskis
005400ef16 Keystore 2.0: Add legacy blob test to TEST_MAPPINGS
Test: keystore2_legacy_blob_test
Change-Id: Ifdd50bf2d837fc9120b0f847adca18bfde2be0ff
2022-03-29 19:59:48 +00:00
Janis Danisevskis
67b56c10e6 Keystore 2.0: Add Keystore CTS test cases to presubmit.
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
2021-11-02 13:11:05 -07:00
Janis Danisevskis
a578d3998f Keystore 2.0: Add run_as to keystore2_test_utils
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
2021-09-21 13:29:39 -07:00
David Zeuthen
7e719e8cb4 keystore2: Also run CtsIdentityTestCases on presubmit.
This is needed because credstore depends on getting auth-tokens from
keystore2.

Bug: None
Test: N/A
Change-Id: I87e130f1e9a39bb48c73a9702b26d84b3a5c5707
2021-03-23 12:11:48 -04:00
Joel Galenson
9978cd4db1 Fix tests
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
2021-02-23 09:15:35 -08:00
Janis Danisevskis
fd11049076 Unclogg treehugger by temporarity disabling this failing test.
Test: N/A
Bug: 179863810
Change-Id: I4b43630bc5e4242222b81c8de459c033df40acae
2021-02-18 12:17:06 -08:00
Joel Galenson
de386b492a Add compatibility wrapper
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
2021-01-12 08:41:39 -08:00
Janis Danisevskis
43c8971a3c Add empty keystore2 crate
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
2020-08-04 01:42:50 +00:00