Browse Source

Merge pull request #1948 from infosiftr/fsharp-hello-world

Add simple new "fsharp-hello-world" test
Tianon Gravi 9 years ago
parent
commit
de3e877587

+ 3 - 0
test/config.sh

@@ -62,6 +62,9 @@ imageTests+=(
 	[erlang]='
 		erlang-hello-world
 	'
+	[fsharp]='
+		fsharp-hello-world
+	'
 	[gcc]='
 		gcc-c-hello-world
 		gcc-cpp-hello-world

+ 1 - 0
test/tests/fsharp-hello-world/container.fsx

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

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

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

+ 1 - 0
test/tests/fsharp-hello-world/run.sh

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

+ 7 - 0
test/tests/run-fsharp-in-container.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+set -e
+
+testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")"
+runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+
+source "$runDir/run-in-container.sh" "$testDir" "$1" fsharpi ./container.fsx