File tree Expand file tree Collapse file tree 2 files changed +53
-1
lines changed
Expand file tree Collapse file tree 2 files changed +53
-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
@@ -334,6 +356,35 @@ testHelloGO() {
334356 export TARGETARCH=amd64
335357 export TARGETOS=darwin
336358 testHelloGO
359+ unset TARGETOS
360+ }
361+
362+ @test " darwin-arm64-hellogo" {
363+ export TARGETARCH=arm64
364+ export TARGETOS=darwin
365+ testHelloGO
366+ unset TARGETOS
367+ }
368+
369+ @test " windows-386-hellogo" {
370+ export TARGETARCH=386
371+ export TARGETOS=windows
372+ testHelloGO
373+ unset TARGETOS
374+ }
375+
376+ @test " windows-amd64-hellogo" {
377+ export TARGETARCH=amd64
378+ export TARGETOS=windows
379+ testHelloGO
380+ unset TARGETOS
381+ }
382+
383+ @test " windows-arm64-hellogo" {
384+ export TARGETARCH=arm64
385+ export TARGETOS=windows
386+ testHelloGO
387+ unset TARGETOS
337388}
338389
339390testHelloCGO () {
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