commit | 82caebd257b0e1264af158afc46bdf95c78c2218 | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Thu Dec 20 11:57:29 2018 +1100 |
committer | Alex Legg <alexlegg@google.com> | Fri Dec 21 11:49:22 2018 +1100 |
tree | acd4e3a7e4a141d2ed910f0427c6ad701894ea9c | |
parent | f76556b8c305ff923375d3b058c3b19d80d161bd [diff] |
Add virtio block test util Change-Id: Icb0fe5d324fa56542cbdad84f70b6e507ffd377d
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}