commit | cac91f4029b04594e0e163a9f1b29747e85118e2 | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Mon Mar 11 20:59:08 2019 +1100 |
committer | Alex Legg <alexlegg@google.com> | Tue Mar 12 11:48:42 2019 +1100 |
tree | f2c399b2a93b601612d1bf74d312e7071ae461cc | |
parent | 571c6fe724e946e1c6d3ba8861bdfd00590d6a9c [diff] |
Add vsock test util Change-Id: I789fb285258baa0c4e841a45a2e2a43695fa767f
This repository contains utilities for running integration tests for Linux guests under Machina.
First install rust (follow the instructions of the rustup tool):
$ curl https://sh.rustup.rs -sSf | sh $ source ~/.cargo/env
Next we add some new targets for cross-compiling and static linking. Rust supports statically linking libc by replacing the usual gnu libc with musl (see The Rust Book: Advanced Linking).
$ rustup target add x86_64-unknown-linux-musl $ rustup target add aarch64-unknown-linux-musl
Lastly, run the build script for your desired architecture. This will invoke cargo for you as well as create an ext2 image in out/.
$ ./build.sh {arm64|x64}