commit | 02b43e34303dca6ad6948ee1ea5566040665d44f | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Tue Nov 27 17:14:14 2018 +1100 |
committer | Alex Legg <alexlegg@google.com> | Wed Nov 28 16:44:55 2018 +1100 |
tree | a9a55f0159f2f4415af9aed0e680cb83710a28ee |
Initial commit Adds readme and build scripts. Rng test util is a stub. Change-Id: I23e4ccab072ae399a0c29b18e7286420bcd849a6
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}