diff options
author | Jason D. Clinton <jclinton@chromium.org> | 2017-09-07 20:51:07 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-09 13:48:49 -0700 |
commit | 6f366b54604e4012b43822d5dc2afe7d1616287d (patch) | |
tree | 0df22ac05bb2f2ed17ad2d24652f54c110db5cbc /build_test.py | |
parent | 2bcf05b2afbcbe1287583a229dbb3e5b6c78aa8c (diff) | |
download | crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.tar crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.tar.gz crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.tar.bz2 crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.tar.lz crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.tar.xz crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.tar.zst crosvm-6f366b54604e4012b43822d5dc2afe7d1616287d.zip |
vhost: Fix-up failing tests and add a little more coverage
This fakes out the underlying Net implementation with FakeNet to try and get some of the code a little further along before it explodes. Then, we test for known failures when running without a real vhost file descriptors. This allows us to pass without running as root as we would expect running on Paladins. This is also the final module that was failing at ToT. Also adds vhost to the build_test test targets. BUG=none TEST=Run unit tests: cargo test -p crosvm -p data_model -p syscall_defines -p kernel_loader -p net_util -p x86_64 -p virtio_sys -p kvm_sys -p vhost -p io_jail -p net_sys -p sys_util -p kvm Also ran ./build_test Change-Id: Ie12d05c044634a660a234483532cf783e2a7fe84 Reviewed-on: https://chromium-review.googlesource.com/656278 Commit-Ready: Jason Clinton <jclinton@chromium.org> Tested-by: Jason Clinton <jclinton@chromium.org> Reviewed-by: Jason Clinton <jclinton@chromium.org>
Diffstat (limited to 'build_test.py')
-rwxr-xr-x | build_test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build_test.py b/build_test.py index e500a9a..3a40b01 100755 --- a/build_test.py +++ b/build_test.py @@ -48,6 +48,7 @@ TEST_MODULES_PARALLEL = [ 'net_sys', 'net_util', 'syscall_defines', + 'vhost', 'virtio_sys', 'x86_64', ] |