File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed
Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ testEnv() {
226226 export TARGETOS=darwin
227227 export TARGETARCH=amd64
228228 testEnv
229+ unset TARGETOS
229230}
230231
231232@test " darwin-arm64-env" {
@@ -235,6 +236,27 @@ testEnv() {
235236 unset TARGETOS
236237}
237238
239+ @test " windows-386-env" {
240+ export TARGETOS=windows
241+ export TARGETARCH=386
242+ testEnv
243+ unset TARGETOS
244+ }
245+
246+ @test " windows-amd64-env" {
247+ export TARGETOS=windows
248+ export TARGETARCH=amd64
249+ testEnv
250+ unset TARGETOS
251+ }
252+
253+ @test " windows-arm64-env" {
254+ export TARGETOS=windows
255+ export TARGETARCH=arm64
256+ testEnv
257+ unset TARGETOS
258+ }
259+
238260testHelloGO () {
239261 run xx-go build -o /tmp/a.out ./fixtures/hello.go
240262 assert_success
@@ -346,6 +368,28 @@ testHelloGO() {
346368 export TARGETARCH=amd64
347369 export TARGETOS=darwin
348370 testHelloGO
371+ unset TARGETOS
372+ }
373+
374+ @test " windows-386-hellogo" {
375+ export TARGETARCH=386
376+ export TARGETOS=windows
377+ testHelloGO
378+ unset TARGETOS
379+ }
380+
381+ @test " windows-amd64-hellogo" {
382+ export TARGETARCH=amd64
383+ export TARGETOS=windows
384+ testHelloGO
385+ unset TARGETOS
386+ }
387+
388+ @test " windows-arm64-hellogo" {
389+ export TARGETARCH=arm64
390+ export TARGETOS=windows
391+ testHelloGO
392+ unset TARGETOS
349393}
350394
351395testHelloCGO () {
Original file line number Diff line number Diff line change @@ -121,6 +121,11 @@ load 'assert'
121121 run xx-verify /idontexist
122122 assert_failure
123123
124+ export XX_VERIFY_FILE_CMD_OUTPUT=" : PE32+ executable (console) ARM64 (stripped to external PDB), for MS Windows"
125+ export TARGETPLATFORM=windows/arm64
126+ run xx-verify /idontexist
127+ assert_success
128+
124129 export XX_VERIFY_FILE_CMD_OUTPUT=" : PE32+ executable (console) Aarch64 (stripped to external PDB), for MS Windows"
125130 export TARGETPLATFORM=windows/arm64
126131 run xx-verify /idontexist
Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ for f in "$@"; do
153153 expArch=" arm64"
154154 ;;
155155 " windows" )
156- expArch=" Aarch64"
156+ expArch=" ARM64"
157+ expArchAlt=" Aarch64"
157158 ;;
158159 * )
159160 expArch=" ARM aarch64"
You can’t perform that action at this time.
0 commit comments