Add a basic test for rust images

This commit is contained in:
Steven Fackler 2017-08-06 12:24:24 -07:00
parent 09f21039db
commit a858a8e875
6 changed files with 23 additions and 0 deletions

View File

@ -190,6 +190,9 @@ imageTests+=(
ruby-bundler
ruby-nonroot
'
[rust]='
rust-hello-world
'
[silverpeas]='
silverpeas-basics
'

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")"
runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
source "$runDir/run-in-container.sh" "$testDir" "$1" cargo run -q --manifest-path=container/Cargo.toml

View File

@ -0,0 +1,7 @@
[package]
name = "container"
version = "0.1.0"
authors = ["Steven Fackler <sfackler@gmail.com>"]
[dependencies]
libc = "0.2" # just make sure we can pull dependencies

View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

View File

@ -0,0 +1 @@
Hello, world!

View File

@ -0,0 +1 @@
../run-rust-in-container.sh