-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b38c54
commit 42b2514
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!wastebasket.test* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# remove preexisting test binaries from other systems to keep build context small | ||
Remove-Item wastebasket.test* | ||
|
||
# read the first arg or default to "windows" | ||
$os = $args[0] ?? "windows" | ||
$env:GOOS=$os; go test -c . | ||
$env:DOCKER_CONTEXT="desktop-$os"; docker build -t temp_test -f ".\test_$os.Dockerfile" . | ||
docker image rm temp_test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# nanoserver doesn't have a shell, so we can't run the test, as we require | ||
# shell systemcalls such as SHFileOperationW. | ||
FROM docker.io/debian:trixie-slim | ||
|
||
WORKDIR /test | ||
copy wastebasket.test ./test | ||
RUN ./test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# nanoserver doesn't have a shell, so we can't run the test, as we require | ||
# shell systemcalls such as SHFileOperationW. | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2022-amd64 | ||
|
||
WORKDIR /test | ||
copy wastebasket.test.exe ./test.exe | ||
RUN test.exe | ||
|