Skip to content

Commit

Permalink
Update swift test to work in windows image
Browse files Browse the repository at this point in the history
update swift windows commit: swiftlang/swift-docker@3fc6093
  • Loading branch information
yosifkit committed Nov 9, 2023
1 parent e18ceef commit 83d6a98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Directory: 5.9/rhel-ubi/9/slim

Tags: 5.9.1-windowsservercore-ltsc2022, 5.9-windowsservercore-ltsc2022, windowsservercore-ltsc2022
Architectures: windows-amd64
GitCommit: c8e240c7d638c1fbc037aaa15961e1e1f0d93e97
GitCommit: 3fc609343f771e31c17140ed90d6cb2023e6e701
Directory: 5.9/windows/LTSC2022
Constraints: windowsservercore-ltsc2022

Expand Down
13 changes: 12 additions & 1 deletion test/tests/run-swift-in-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@ 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
image="$1"

testName="$(basename "$testDir")"
newImage="$("$runDir/image-name.sh" "librarytest/$testName" "$image")"
"$runDir/docker-build.sh" "$testDir" "$newImage" <<EOD
FROM $image
COPY dir/container.swift /
RUN swiftc /container.swift -o container
CMD [ "/container" ]
EOD

docker run --rm "$newImage"

0 comments on commit 83d6a98

Please sign in to comment.