Commit Graph

8 Commits

Author SHA1 Message Date
Victor Hsieh 5534e52e24 Speed up AuthFsHostTest by reusing the VM
This is basically 7fc99e6c5e without
merging AuthFsHostTest into MicrodroidHostTestCases.

Also, add the test to presubmit.

Bug: 191056545
Bug: 193749869
Test: atest AuthFsHostTest

Change-Id: I866c4bbd6dbfc6d47719ad68dd91dafa8096b2c3
2021-07-15 13:10:25 -07:00
Jiyong Park 668b3cc304 Make tests run for presubmit builds
Bug: 181615964
Test: watch TH
Change-Id: Idc1de5259ba270e6c025e9e30ef1dc6cdafcd6d9
2021-06-28 11:28:28 +09:00
Jiyong Park e8f546cdd3 Run microdroid on cuttlefish on GCE
CF on GCE is now capable of running microdroid via nested virt. Since
the nested virt is extremely slow, increase the timeout values. In my
experiments, it took about 2.5 min to boot microdroid.

To avoid waiting so long on other devices (local CF instances or real
devices), the test now monitors log to detect an event that implies
microdroid has booted.

Finally, adds some conditions (e.g. existence of /dev/kvm) to test if
the device is capable of running microdroid.

Bug: 182300699
Test: acloud create --build-id 7360953 --build-target
aosp_cf_x86_64_phone-userdebug; atest -s 127.0.0.1:<port>
MicrodroidHostTestCases

Change-Id: I73cc5f4c44183318d83494991b24e29c8518aab2
2021-05-14 21:48:27 +09:00
Victor Hsieh 8018e9a6da authfs: Remove integration test from TEST_MAPPING
This needs to wait until the virt apex is installed by default.

Bug: 184715904
Test: atest
Change-Id: I60689efb5a92df52e4ae309f5f438b217f2a94c3
2021-04-07 15:05:40 -07:00
Victor Hsieh 632a39dfa8 authfs: add AuthFsTestCases to presubmit
Bug: 178874539
Test: atest
Change-Id: I818c469722dbf117c374c0b29784aef3aa747647
2021-03-19 08:44:18 -07:00
Victor Hsieh ab293ee187 authfs: run unit tests in presubmit
Test: TH
Bug: 178874539
Change-Id: If4df4177dcc426a79d2ff4a4ab90510abdddc7d5
2021-02-01 09:11:54 -08:00
Victor Hsieh fb54ff0cc0 authfs: Delete TEST_MAPPING
TreeHugger seems have trouble building a dependency of shared library.
Until the cause is identified, remove the test from TreeHugger to
unblock the early development.

Test: None
Bug: 173408650
Bug: 171310075
Change-Id: I496edeb5807c8ce24c86d54d8ba7f9a9698dc7cb
2020-11-16 17:21:36 -08:00
Victor Hsieh 1fe51c473a authfs: add readers for chunked data
This change adds simple readers to read fixed size chunks from file and
memory. Also set up basic build rules and test rules.

The reader will be used by later fs-verity implementation to read and
verify each 4K block access of a file.

Bug: 171310075
Test: atest authfs_host_test_src_lib

Change-Id: I194cf431d4aa6dd49cc19aea65d233ccdc6c5452
2020-11-13 09:43:19 -08:00