commit | 0e16afc1529cc97f047bcbe92e209b00e240a857 | [log] [tgz] |
---|---|---|
author | David Greenaway <dgreenaway@google.com> | Wed May 22 12:21:39 2019 +1000 |
committer | David Greenaway <dgreenaway@google.com> | Thu May 23 13:56:58 2019 +1000 |
tree | 389e600a0040b6bee482d0c620e3e9e579f3ae37 | |
parent | 51f630e22cb06519a2e700cdbb80039a2e8d2150 [diff] |
Add virtio-input Linux test binary. The binary reads from the Linux character devices `/dev/input/eventX` and ensures that a series of keystrokes is received. Bug: MAC-213, MAC-214 Change-Id: Ic50b70d63a55c8f603917db3546a3310e9e6b164
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}