Add a basic test for rust images
This commit is contained in:
parent
09f21039db
commit
a858a8e875
|
|
@ -190,6 +190,9 @@ imageTests+=(
|
|||
ruby-bundler
|
||||
ruby-nonroot
|
||||
'
|
||||
[rust]='
|
||||
rust-hello-world
|
||||
'
|
||||
[silverpeas]='
|
||||
silverpeas-basics
|
||||
'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
Hello, world!
|
||||
|
|
@ -0,0 +1 @@
|
|||
../run-rust-in-container.sh
|
||||
Loading…
Reference in New Issue