Преглед изворни кода

Merge pull request #1086 from MBonell/598-test-julia-hello-world

Closes #598: Test for Julia image
yosifkit пре 10 година
родитељ
комит
206aa98b19

+ 1 - 0
test/config.sh

@@ -60,6 +60,7 @@ imageTests+=(
 		jetty-hello-web
 		jetty-hello-web
 	'
 	'
 	[julia]='
 	[julia]='
+	        julia-hello-world
 	'
 	'
 	[memcached]='
 	[memcached]='
 	'
 	'

+ 1 - 0
test/tests/julia-hello-world/expected-std-out.txt

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

+ 1 - 0
test/tests/julia-hello-world/hello-world.jl

@@ -0,0 +1 @@
+println ("Hello World!");

+ 8 - 0
test/tests/julia-hello-world/run.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+
+image="$1"
+dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+dirContainer='/usr/src/julia'
+
+docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" julia hello-world.jl