Skip to content

Commit

Permalink
Merge pull request #3273 from sfackler/rust
Browse files Browse the repository at this point in the history
Add a library file for Rust
  • Loading branch information
tianon authored Aug 10, 2017
2 parents a5e1a93 + 70c74ca commit 6b34605
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions library/rust
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# this file is generated via https://github.com/rust-lang-nursery/docker-rust/blob/28f9bc3266a89d640a23d29a5056cc66fb6e38d3/generate-stackbrew-library.sh

Maintainers: Steven Fackler <sfackler@gmail.com> (@sfackler)
GitRepo: https://github.com/rust-lang-nursery/docker-rust.git

Tags: 1.19.0-stretch, 1-stretch, 1.19-stretch, stretch, 1.19.0, 1, 1.19, latest
Architectures: amd64, arm32v7, i386, ppc64le, s390x
GitCommit: 01ce3e6230bc87557058a38b342f9e15aae3856c
Directory: 1.19.0/stretch

Tags: 1.19.0-jessie, 1-jessie, 1.19-jessie, jessie
Architectures: amd64, arm32v7, i386, ppc64le, s390x
GitCommit: 01ce3e6230bc87557058a38b342f9e15aae3856c
Directory: 1.19.0/jessie
3 changes: 3 additions & 0 deletions test/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ imageTests+=(
ruby-bundler
ruby-nonroot
'
[rust]='
rust-hello-world
'
[silverpeas]='
silverpeas-basics
'
Expand Down
8 changes: 8 additions & 0 deletions test/tests/run-rust-in-container.sh
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions test/tests/rust-hello-world/container/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions test/tests/rust-hello-world/container/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
1 change: 1 addition & 0 deletions test/tests/rust-hello-world/expected-std-out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, world!
1 change: 1 addition & 0 deletions test/tests/rust-hello-world/run.sh

0 comments on commit 6b34605

Please sign in to comment.