aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_output.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/build_output.txt')
-rw-r--r--src/cmd/go/testdata/script/build_output.txt34
1 files changed, 32 insertions, 2 deletions
diff --git a/src/cmd/go/testdata/script/build_output.txt b/src/cmd/go/testdata/script/build_output.txt
index e5a4852346..1e82950dbc 100644
--- a/src/cmd/go/testdata/script/build_output.txt
+++ b/src/cmd/go/testdata/script/build_output.txt
@@ -5,7 +5,7 @@
[windows] env NONEXE=''
env GOBIN=$WORK/tmp/bin
-go install isarchive &
+go install m/isarchive &
go build x.go
exists -exec x$GOEXE
@@ -18,6 +18,32 @@ go build -o myprog x.go
exists -exec myprog
! exists myprogr.exe
+! exists bin
+go build -o bin/x x.go
+exists -exec bin/x
+rm bin
+
+! exists bin
+go build -o bin/ x.go
+exists -exec bin/x$GOEXE
+rm bin
+
+[windows] ! exists bin
+[windows] go build -o bin\x x.go
+[windows] exists -exec bin\x
+[windows] rm bin
+
+[windows] ! exists bin
+[windows] go build -o bin\ x.go
+[windows] exists -exec bin\x.exe
+[windows] rm bin
+
+! exists bin
+mkdir bin
+go build -o bin x.go
+exists -exec bin/x$GOEXE
+rm bin
+
go build p.go
! exists p
! exists p.a
@@ -55,6 +81,10 @@ exec $GOBIN/isarchive myatomic.a
! go build -o whatever cmd/gofmt sync/atomic
stderr 'multiple packages'
+-- go.mod --
+module m
+
+go 1.16
-- x.go --
package main
@@ -84,4 +114,4 @@ func main() {
fmt.Fprintf(os.Stderr, "file %s exists but is not an archive\n", os.Args[1])
os.Exit(1)
}
-} \ No newline at end of file
+}