Add Swift test.

This commit is contained in:
Swizzlr 2016-12-31 15:45:31 +00:00
parent 3a7d5520c6
commit b185f2caf5
5 changed files with 13 additions and 0 deletions

View File

@ -168,6 +168,9 @@ imageTests+=(
ruby-bundler
ruby-nonroot
'
[swift]='
swift-hello-world
'
[tomcat]='
tomcat-hello-world
'

View File

@ -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" swift ./container.swift

View File

@ -0,0 +1 @@
print("Hello, world!")

View File

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

View File

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