golang-github-rogpeppe-go-internal →
1.6.2-1 →
armhf → 2020-10-25 05:47:15
sbuild (Debian sbuild) 0.71.0 (24 Aug 2016) on bm-wb-04
+==============================================================================+
| golang-github-rogpeppe-go-internal 1.6.2-1 (armhf) Sun, 25 Oct 2020 05:35:27 +0000 |
+==============================================================================+
Package: golang-github-rogpeppe-go-internal
Version: 1.6.2-1
Source Version: 1.6.2-1
Distribution: bullseye-staging
Machine Architecture: armhf
Host Architecture: armhf
Build Architecture: armhf
I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/bullseye-staging-armhf-sbuild-d6647376-4c05-4411-b9d4-c0b68021e7af' with '<<CHROOT>>'
+------------------------------------------------------------------------------+
| Update chroot |
+------------------------------------------------------------------------------+
Get:1 http://172.17.0.1/private bullseye-staging InRelease [11.3 kB]
Get:2 http://172.17.0.1/private bullseye-staging/main Sources [11.7 MB]
Get:3 http://172.17.0.1/private bullseye-staging/main armhf Packages [12.8 MB]
Fetched 24.5 MB in 24s (1024 kB/s)
Reading package lists...
W: No sandbox user '_apt' on the system, can not drop privileges
+------------------------------------------------------------------------------+
| Fetch source files |
+------------------------------------------------------------------------------+
Check APT
---------
Checking available source versions...
Download source files with APT
------------------------------
Reading package lists...
NOTICE: 'golang-github-rogpeppe-go-internal' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/go-team/packages/golang-github-rogpeppe-go-internal.git
Please use:
git clone https://salsa.debian.org/go-team/packages/golang-github-rogpeppe-go-internal.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 129 kB of source archives.
Get:1 http://172.17.0.1/private bullseye-staging/main golang-github-rogpeppe-go-internal 1.6.2-1 (dsc) [2440 B]
Get:2 http://172.17.0.1/private bullseye-staging/main golang-github-rogpeppe-go-internal 1.6.2-1 (tar) [123 kB]
Get:3 http://172.17.0.1/private bullseye-staging/main golang-github-rogpeppe-go-internal 1.6.2-1 (diff) [3316 B]
Fetched 129 kB in 0s (992 kB/s)
Download complete and in download only mode
I: NOTICE: Log filtering will replace 'build/golang-github-rogpeppe-go-internal-XdvlTE/golang-github-rogpeppe-go-internal-1.6.2' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/golang-github-rogpeppe-go-internal-XdvlTE' with '<<BUILDDIR>>'
+------------------------------------------------------------------------------+
| Install build-essential |
+------------------------------------------------------------------------------+
Setup apt archive
-----------------
Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
dpkg-deb: building package 'sbuild-build-depends-core-dummy' in '/<<BUILDDIR>>/resolver-tPhsSI/apt_archive/sbuild-build-depends-core-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
gpg: keybox '/<<BUILDDIR>>/resolver-tPhsSI/gpg/pubring.kbx' created
gpg: /<<BUILDDIR>>/resolver-tPhsSI/gpg/trustdb.gpg: trustdb created
gpg: key 35506D9A48F77B2E: public key "Sbuild Signer (Sbuild Build Dependency Archive Key) <buildd-tools-devel@lists.alioth.debian.org>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: key 35506D9A48F77B2E: "Sbuild Signer (Sbuild Build Dependency Archive Key) <buildd-tools-devel@lists.alioth.debian.org>" not changed
gpg: key 35506D9A48F77B2E: secret key imported
gpg: Total number processed: 1
gpg: unchanged: 1
gpg: secret keys read: 1
gpg: secret keys imported: 1
gpg: using "Sbuild Signer" as default secret key for signing
Ign:1 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Release [957 B]
Get:3 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Release.gpg [370 B]
Get:4 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Sources [349 B]
Get:5 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Packages [432 B]
Fetched 2108 B in 1s (2783 B/s)
Reading package lists...
W: No sandbox user '_apt' on the system, can not drop privileges
Reading package lists...
Install core build dependencies (apt-based resolver)
----------------------------------------------------
Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
bsdextrautils krb5-locales libpam-cap netbase sensible-utils
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
sbuild-build-depends-core-dummy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 848 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ sbuild-build-depends-core-dummy 0.invalid.0 [848 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 848 B in 0s (22.7 kB/s)
Selecting previously unselected package sbuild-build-depends-core-dummy.
(Reading database ... 12710 files and directories currently installed.)
Preparing to unpack .../sbuild-build-depends-core-dummy_0.invalid.0_armhf.deb ...
Unpacking sbuild-build-depends-core-dummy (0.invalid.0) ...
Setting up sbuild-build-depends-core-dummy (0.invalid.0) ...
W: No sandbox user '_apt' on the system, can not drop privileges
+------------------------------------------------------------------------------+
| Check architectures |
+------------------------------------------------------------------------------+
Arch check ok (armhf included in any all)
+------------------------------------------------------------------------------+
| Install package build dependencies |
+------------------------------------------------------------------------------+
Setup apt archive
-----------------
Merged Build-Depends: debhelper-compat (= 13), dh-golang (>= 1.46~), golang-any, golang-gopkg-errgo.v2-dev (>= 2.1.0~)
Filtered Build-Depends: debhelper-compat (= 13), dh-golang (>= 1.46~), golang-any, golang-gopkg-errgo.v2-dev (>= 2.1.0~)
dpkg-deb: building package 'sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy' in '/<<BUILDDIR>>/resolver-tPhsSI/apt_archive/sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: sbuild-build-depends-core-dummy sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy
dpkg-scanpackages: info: Wrote 2 entries to output Packages file.
gpg: using "Sbuild Signer" as default secret key for signing
Ign:1 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Release [963 B]
Get:3 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Release.gpg [370 B]
Get:4 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Sources [551 B]
Get:5 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ Packages [636 B]
Fetched 2520 B in 1s (3225 B/s)
Reading package lists...
W: No sandbox user '_apt' on the system, can not drop privileges
Reading package lists...
Install golang-github-rogpeppe-go-internal build dependencies (apt-based resolver)
----------------------------------------------------------------------------------
Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
krb5-locales libpam-cap netbase
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
autoconf automake autopoint autotools-dev debhelper dh-autoreconf dh-golang
dh-strip-nondeterminism dwz file gettext gettext-base golang-1.15-go
golang-1.15-src golang-any golang-github-kr-pretty-dev
golang-github-kr-pty-dev golang-github-kr-text-dev golang-go
golang-gopkg-check.v1-dev golang-gopkg-errgo.v2-dev golang-src groff-base
intltool-debian libarchive-zip-perl libcroco3 libdebhelper-perl libelf1
libfile-stripnondeterminism-perl libglib2.0-0 libicu67 libmagic-mgc
libmagic1 libpipeline1 libsigsegv2 libsub-override-perl libtool libuchardet0
libxml2 m4 man-db po-debconf
Suggested packages:
autoconf-archive gnu-standards autoconf-doc dh-make gettext-doc
libasprintf-dev libgettextpo-dev bzr | brz ca-certificates git mercurial
subversion groff libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc
apparmor less www-browser libmail-box-perl
Recommended packages:
curl | wget | lynx pkg-config libarchive-cpio-perl libglib2.0-data
shared-mime-info xdg-user-dirs libltdl-dev libmail-sendmail-perl
The following NEW packages will be installed:
autoconf automake autopoint autotools-dev debhelper dh-autoreconf dh-golang
dh-strip-nondeterminism dwz file gettext gettext-base golang-1.15-go
golang-1.15-src golang-any golang-github-kr-pretty-dev
golang-github-kr-pty-dev golang-github-kr-text-dev golang-go
golang-gopkg-check.v1-dev golang-gopkg-errgo.v2-dev golang-src groff-base
intltool-debian libarchive-zip-perl libcroco3 libdebhelper-perl libelf1
libfile-stripnondeterminism-perl libglib2.0-0 libicu67 libmagic-mgc
libmagic1 libpipeline1 libsigsegv2 libsub-override-perl libtool libuchardet0
libxml2 m4 man-db po-debconf
sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy
0 upgraded, 43 newly installed, 0 to remove and 0 not upgraded.
Need to get 75.5 MB of archives.
After this operation, 400 MB of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-tPhsSI/apt_archive ./ sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy 0.invalid.0 [920 B]
Get:2 http://172.17.0.1/private bullseye-staging/main armhf libuchardet0 armhf 0.0.7-1 [65.0 kB]
Get:3 http://172.17.0.1/private bullseye-staging/main armhf groff-base armhf 1.22.4-5 [783 kB]
Get:4 http://172.17.0.1/private bullseye-staging/main armhf libpipeline1 armhf 1.5.3-1 [29.9 kB]
Get:5 http://172.17.0.1/private bullseye-staging/main armhf man-db armhf 2.9.3-2 [1269 kB]
Get:6 http://172.17.0.1/private bullseye-staging/main armhf libmagic-mgc armhf 1:5.38-5 [262 kB]
Get:7 http://172.17.0.1/private bullseye-staging/main armhf libmagic1 armhf 1:5.38-5 [113 kB]
Get:8 http://172.17.0.1/private bullseye-staging/main armhf file armhf 1:5.38-5 [67.0 kB]
Get:9 http://172.17.0.1/private bullseye-staging/main armhf gettext-base armhf 0.19.8.1-10 [117 kB]
Get:10 http://172.17.0.1/private bullseye-staging/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
Get:11 http://172.17.0.1/private bullseye-staging/main armhf m4 armhf 1.4.18-4 [185 kB]
Get:12 http://172.17.0.1/private bullseye-staging/main armhf autoconf all 2.69-11.1 [341 kB]
Get:13 http://172.17.0.1/private bullseye-staging/main armhf autotools-dev all 20180224.1 [77.0 kB]
Get:14 http://172.17.0.1/private bullseye-staging/main armhf automake all 1:1.16.2-4 [801 kB]
Get:15 http://172.17.0.1/private bullseye-staging/main armhf autopoint all 0.19.8.1-10 [435 kB]
Get:16 http://172.17.0.1/private bullseye-staging/main armhf libtool all 2.4.6-14 [513 kB]
Get:17 http://172.17.0.1/private bullseye-staging/main armhf dh-autoreconf all 19 [16.9 kB]
Get:18 http://172.17.0.1/private bullseye-staging/main armhf libdebhelper-perl all 13.2.1 [188 kB]
Get:19 http://172.17.0.1/private bullseye-staging/main armhf libarchive-zip-perl all 1.68-1 [104 kB]
Get:20 http://172.17.0.1/private bullseye-staging/main armhf libsub-override-perl all 0.09-2 [10.2 kB]
Get:21 http://172.17.0.1/private bullseye-staging/main armhf libfile-stripnondeterminism-perl all 1.9.0-1 [25.5 kB]
Get:22 http://172.17.0.1/private bullseye-staging/main armhf dh-strip-nondeterminism all 1.9.0-1 [15.2 kB]
Get:23 http://172.17.0.1/private bullseye-staging/main armhf libelf1 armhf 0.181-1 [161 kB]
Get:24 http://172.17.0.1/private bullseye-staging/main armhf dwz armhf 0.13-5 [142 kB]
Get:25 http://172.17.0.1/private bullseye-staging/main armhf libglib2.0-0 armhf 2.66.1-2 [1174 kB]
Get:26 http://172.17.0.1/private bullseye-staging/main armhf libicu67 armhf 67.1-4 [8289 kB]
Get:27 http://172.17.0.1/private bullseye-staging/main armhf libxml2 armhf 2.9.10+dfsg-6.1 [578 kB]
Get:28 http://172.17.0.1/private bullseye-staging/main armhf libcroco3 armhf 0.6.13-1 [133 kB]
Get:29 http://172.17.0.1/private bullseye-staging/main armhf gettext armhf 0.19.8.1-10 [1219 kB]
Get:30 http://172.17.0.1/private bullseye-staging/main armhf intltool-debian all 0.35.0+20060710.5 [26.8 kB]
Get:31 http://172.17.0.1/private bullseye-staging/main armhf po-debconf all 1.0.21 [248 kB]
Get:32 http://172.17.0.1/private bullseye-staging/main armhf debhelper all 13.2.1 [1007 kB]
Get:33 http://172.17.0.1/private bullseye-staging/main armhf dh-golang all 1.49 [24.3 kB]
Get:34 http://172.17.0.1/private bullseye-staging/main armhf golang-1.15-src armhf 1.15.2-1+rpi1 [13.8 MB]
Get:35 http://172.17.0.1/private bullseye-staging/main armhf golang-1.15-go armhf 1.15.2-1+rpi1 [43.1 MB]
Get:36 http://172.17.0.1/private bullseye-staging/main armhf golang-src armhf 2:1.15~1 [4856 B]
Get:37 http://172.17.0.1/private bullseye-staging/main armhf golang-go armhf 2:1.15~1 [23.9 kB]
Get:38 http://172.17.0.1/private bullseye-staging/main armhf golang-any armhf 2:1.15~1 [4976 B]
Get:39 http://172.17.0.1/private bullseye-staging/main armhf golang-github-kr-pty-dev all 1.1.6-1 [10.6 kB]
Get:40 http://172.17.0.1/private bullseye-staging/main armhf golang-github-kr-text-dev all 0.1.0-2 [10.9 kB]
Get:41 http://172.17.0.1/private bullseye-staging/main armhf golang-github-kr-pretty-dev all 0.2.1-1 [10.8 kB]
Get:42 http://172.17.0.1/private bullseye-staging/main armhf golang-gopkg-check.v1-dev all 0.0+git20180628.788fd78-1 [31.6 kB]
Get:43 http://172.17.0.1/private bullseye-staging/main armhf golang-gopkg-errgo.v2-dev all 2.1.0-2 [8980 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 75.5 MB in 6s (12.9 MB/s)
Selecting previously unselected package libuchardet0:armhf.
(Reading database ... 12710 files and directories currently installed.)
Preparing to unpack .../00-libuchardet0_0.0.7-1_armhf.deb ...
Unpacking libuchardet0:armhf (0.0.7-1) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../01-groff-base_1.22.4-5_armhf.deb ...
Unpacking groff-base (1.22.4-5) ...
Selecting previously unselected package libpipeline1:armhf.
Preparing to unpack .../02-libpipeline1_1.5.3-1_armhf.deb ...
Unpacking libpipeline1:armhf (1.5.3-1) ...
Selecting previously unselected package man-db.
Preparing to unpack .../03-man-db_2.9.3-2_armhf.deb ...
Unpacking man-db (2.9.3-2) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../04-libmagic-mgc_1%3a5.38-5_armhf.deb ...
Unpacking libmagic-mgc (1:5.38-5) ...
Selecting previously unselected package libmagic1:armhf.
Preparing to unpack .../05-libmagic1_1%3a5.38-5_armhf.deb ...
Unpacking libmagic1:armhf (1:5.38-5) ...
Selecting previously unselected package file.
Preparing to unpack .../06-file_1%3a5.38-5_armhf.deb ...
Unpacking file (1:5.38-5) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../07-gettext-base_0.19.8.1-10_armhf.deb ...
Unpacking gettext-base (0.19.8.1-10) ...
Selecting previously unselected package libsigsegv2:armhf.
Preparing to unpack .../08-libsigsegv2_2.12-2_armhf.deb ...
Unpacking libsigsegv2:armhf (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../09-m4_1.4.18-4_armhf.deb ...
Unpacking m4 (1.4.18-4) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../10-autoconf_2.69-11.1_all.deb ...
Unpacking autoconf (2.69-11.1) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../11-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../12-automake_1%3a1.16.2-4_all.deb ...
Unpacking automake (1:1.16.2-4) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../13-autopoint_0.19.8.1-10_all.deb ...
Unpacking autopoint (0.19.8.1-10) ...
Selecting previously unselected package libtool.
Preparing to unpack .../14-libtool_2.4.6-14_all.deb ...
Unpacking libtool (2.4.6-14) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../15-dh-autoreconf_19_all.deb ...
Unpacking dh-autoreconf (19) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../16-libdebhelper-perl_13.2.1_all.deb ...
Unpacking libdebhelper-perl (13.2.1) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../17-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../18-libsub-override-perl_0.09-2_all.deb ...
Unpacking libsub-override-perl (0.09-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../19-libfile-stripnondeterminism-perl_1.9.0-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.9.0-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../20-dh-strip-nondeterminism_1.9.0-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.9.0-1) ...
Selecting previously unselected package libelf1:armhf.
Preparing to unpack .../21-libelf1_0.181-1_armhf.deb ...
Unpacking libelf1:armhf (0.181-1) ...
Selecting previously unselected package dwz.
Preparing to unpack .../22-dwz_0.13-5_armhf.deb ...
Unpacking dwz (0.13-5) ...
Selecting previously unselected package libglib2.0-0:armhf.
Preparing to unpack .../23-libglib2.0-0_2.66.1-2_armhf.deb ...
Unpacking libglib2.0-0:armhf (2.66.1-2) ...
Selecting previously unselected package libicu67:armhf.
Preparing to unpack .../24-libicu67_67.1-4_armhf.deb ...
Unpacking libicu67:armhf (67.1-4) ...
Selecting previously unselected package libxml2:armhf.
Preparing to unpack .../25-libxml2_2.9.10+dfsg-6.1_armhf.deb ...
Unpacking libxml2:armhf (2.9.10+dfsg-6.1) ...
Selecting previously unselected package libcroco3:armhf.
Preparing to unpack .../26-libcroco3_0.6.13-1_armhf.deb ...
Unpacking libcroco3:armhf (0.6.13-1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../27-gettext_0.19.8.1-10_armhf.deb ...
Unpacking gettext (0.19.8.1-10) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../28-intltool-debian_0.35.0+20060710.5_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.5) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../29-po-debconf_1.0.21_all.deb ...
Unpacking po-debconf (1.0.21) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../30-debhelper_13.2.1_all.deb ...
Unpacking debhelper (13.2.1) ...
Selecting previously unselected package dh-golang.
Preparing to unpack .../31-dh-golang_1.49_all.deb ...
Unpacking dh-golang (1.49) ...
Selecting previously unselected package golang-1.15-src.
Preparing to unpack .../32-golang-1.15-src_1.15.2-1+rpi1_armhf.deb ...
Unpacking golang-1.15-src (1.15.2-1+rpi1) ...
Selecting previously unselected package golang-1.15-go.
Preparing to unpack .../33-golang-1.15-go_1.15.2-1+rpi1_armhf.deb ...
Unpacking golang-1.15-go (1.15.2-1+rpi1) ...
Selecting previously unselected package golang-src:armhf.
Preparing to unpack .../34-golang-src_2%3a1.15~1_armhf.deb ...
Unpacking golang-src:armhf (2:1.15~1) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../35-golang-go_2%3a1.15~1_armhf.deb ...
Unpacking golang-go (2:1.15~1) ...
Selecting previously unselected package golang-any:armhf.
Preparing to unpack .../36-golang-any_2%3a1.15~1_armhf.deb ...
Unpacking golang-any:armhf (2:1.15~1) ...
Selecting previously unselected package golang-github-kr-pty-dev.
Preparing to unpack .../37-golang-github-kr-pty-dev_1.1.6-1_all.deb ...
Unpacking golang-github-kr-pty-dev (1.1.6-1) ...
Selecting previously unselected package golang-github-kr-text-dev.
Preparing to unpack .../38-golang-github-kr-text-dev_0.1.0-2_all.deb ...
Unpacking golang-github-kr-text-dev (0.1.0-2) ...
Selecting previously unselected package golang-github-kr-pretty-dev.
Preparing to unpack .../39-golang-github-kr-pretty-dev_0.2.1-1_all.deb ...
Unpacking golang-github-kr-pretty-dev (0.2.1-1) ...
Selecting previously unselected package golang-gopkg-check.v1-dev.
Preparing to unpack .../40-golang-gopkg-check.v1-dev_0.0+git20180628.788fd78-1_all.deb ...
Unpacking golang-gopkg-check.v1-dev (0.0+git20180628.788fd78-1) ...
Selecting previously unselected package golang-gopkg-errgo.v2-dev.
Preparing to unpack .../41-golang-gopkg-errgo.v2-dev_2.1.0-2_all.deb ...
Unpacking golang-gopkg-errgo.v2-dev (2.1.0-2) ...
Selecting previously unselected package sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy.
Preparing to unpack .../42-sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy_0.invalid.0_armhf.deb ...
Unpacking sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy (0.invalid.0) ...
Setting up libpipeline1:armhf (1.5.3-1) ...
Setting up libicu67:armhf (67.1-4) ...
Setting up libmagic-mgc (1:5.38-5) ...
Setting up golang-1.15-src (1.15.2-1+rpi1) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libglib2.0-0:armhf (2.66.1-2) ...
No schema files found: doing nothing.
Setting up libdebhelper-perl (13.2.1) ...
Setting up libmagic1:armhf (1:5.38-5) ...
Setting up gettext-base (0.19.8.1-10) ...
Setting up file (1:5.38-5) ...
Setting up autotools-dev (20180224.1) ...
Setting up libsigsegv2:armhf (2.12-2) ...
Setting up autopoint (0.19.8.1-10) ...
Setting up golang-github-kr-pty-dev (1.1.6-1) ...
Setting up libuchardet0:armhf (0.0.7-1) ...
Setting up libsub-override-perl (0.09-2) ...
Setting up golang-src:armhf (2:1.15~1) ...
Setting up golang-1.15-go (1.15.2-1+rpi1) ...
Setting up libelf1:armhf (0.181-1) ...
Setting up libxml2:armhf (2.9.10+dfsg-6.1) ...
Setting up libfile-stripnondeterminism-perl (1.9.0-1) ...
Setting up libtool (2.4.6-14) ...
Setting up golang-go (2:1.15~1) ...
Setting up m4 (1.4.18-4) ...
Setting up golang-any:armhf (2:1.15~1) ...
Setting up golang-github-kr-text-dev (0.1.0-2) ...
Setting up libcroco3:armhf (0.6.13-1) ...
Setting up autoconf (2.69-11.1) ...
Setting up dh-strip-nondeterminism (1.9.0-1) ...
Setting up dwz (0.13-5) ...
Setting up groff-base (1.22.4-5) ...
Setting up automake (1:1.16.2-4) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up golang-github-kr-pretty-dev (0.2.1-1) ...
Setting up gettext (0.19.8.1-10) ...
Setting up golang-gopkg-check.v1-dev (0.0+git20180628.788fd78-1) ...
Setting up man-db (2.9.3-2) ...
Not building database; man-db/auto-update is not 'true'.
Setting up intltool-debian (0.35.0+20060710.5) ...
Setting up golang-gopkg-errgo.v2-dev (2.1.0-2) ...
Setting up po-debconf (1.0.21) ...
Setting up dh-autoreconf (19) ...
Setting up debhelper (13.2.1) ...
Setting up dh-golang (1.49) ...
Setting up sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy (0.invalid.0) ...
Processing triggers for libc-bin (2.31-4+rpi1) ...
W: No sandbox user '_apt' on the system, can not drop privileges
+------------------------------------------------------------------------------+
| Build environment |
+------------------------------------------------------------------------------+
Kernel: Linux 4.9.0-0.bpo.4-armmp armhf (armv7l)
Toolchain package versions: binutils_2.35.1-2+rpi1 dpkg-dev_1.20.5+rpi1 g++-10_10.2.0-13+rpi1 gcc-10_10.2.0-13+rpi1 libc6-dev_2.31-4+rpi1 libstdc++-10-dev_10.2.0-13+rpi1 libstdc++6_10.2.0-13+rpi1 linux-libc-dev_5.7.10-1+rpi1
Package versions: adduser_3.118 apt_2.1.10 aptitude_0.8.13-2 aptitude-common_0.8.13-2 autoconf_2.69-11.1 automake_1:1.16.2-4 autopoint_0.19.8.1-10 autotools-dev_20180224.1 base-files_11+rpi1 base-passwd_3.5.48 bash_5.1~rc1-2 binutils_2.35.1-2+rpi1 binutils-arm-linux-gnueabihf_2.35.1-2+rpi1 binutils-common_2.35.1-2+rpi1 bsdextrautils_2.36-3 bsdutils_1:2.36-3 build-essential_12.8 bzip2_1.0.8-4 coreutils_8.32-4 cpp_4:10.2.0-1+rpi1 cpp-10_10.2.0-13+rpi1 dash_0.5.10.2-7 debconf_1.5.74 debhelper_13.2.1 debianutils_4.11.2 dh-autoreconf_19 dh-golang_1.49 dh-strip-nondeterminism_1.9.0-1 diffutils_1:3.7-3 dirmngr_2.2.20-1 dpkg_1.20.5+rpi1 dpkg-dev_1.20.5+rpi1 dwz_0.13-5 e2fsprogs_1.45.6-1 fakeroot_1.25.3-1 fdisk_2.36-3 file_1:5.38-5 findutils_4.7.0-1 g++_4:10.2.0-1+rpi1 g++-10_10.2.0-13+rpi1 gcc_4:10.2.0-1+rpi1 gcc-10_10.2.0-13+rpi1 gcc-10-base_10.2.0-13+rpi1 gettext_0.19.8.1-10 gettext-base_0.19.8.1-10 gnupg_2.2.20-1 gnupg-l10n_2.2.20-1 gnupg-utils_2.2.20-1 golang-1.15-go_1.15.2-1+rpi1 golang-1.15-src_1.15.2-1+rpi1 golang-any_2:1.15~1 golang-github-kr-pretty-dev_0.2.1-1 golang-github-kr-pty-dev_1.1.6-1 golang-github-kr-text-dev_0.1.0-2 golang-go_2:1.15~1 golang-gopkg-check.v1-dev_0.0+git20180628.788fd78-1 golang-gopkg-errgo.v2-dev_2.1.0-2 golang-src_2:1.15~1 gpg_2.2.20-1 gpg-agent_2.2.20-1 gpg-wks-client_2.2.20-1 gpg-wks-server_2.2.20-1 gpgconf_2.2.20-1 gpgsm_2.2.20-1 gpgv_2.2.20-1 grep_3.4-1 groff-base_1.22.4-5 gzip_1.10-2 hostname_3.23 init-system-helpers_1.58 intltool-debian_0.35.0+20060710.5 iputils-ping_3:20200821-2 krb5-locales_1.17-10 libacl1_2.2.53-8 libapt-pkg6.0_2.1.10 libarchive-zip-perl_1.68-1 libasan6_10.2.0-13+rpi1 libassuan0_2.5.3-7.1 libatomic1_10.2.0-13+rpi1 libattr1_1:2.4.48-5 libaudit-common_1:2.8.5-3.1 libaudit1_1:2.8.5-3.1 libbinutils_2.35.1-2+rpi1 libblkid1_2.36-3 libboost-iostreams1.71.0_1.71.0-7 libbz2-1.0_1.0.8-4 libc-bin_2.31-4+rpi1 libc-dev-bin_2.31-4+rpi1 libc6_2.31-4+rpi1 libc6-dev_2.31-4+rpi1 libcap-ng0_0.7.9-2.2 libcap2_1:2.44-1 libcap2-bin_1:2.44-1 libcc1-0_10.2.0-13+rpi1 libcom-err2_1.45.6-1 libcroco3_0.6.13-1 libcrypt-dev_1:4.4.17-1 libcrypt1_1:4.4.17-1 libctf-nobfd0_2.35.1-2+rpi1 libctf0_2.35.1-2+rpi1 libcwidget4_0.5.18-5 libdb5.3_5.3.28+dfsg1-0.6 libdebconfclient0_0.254 libdebhelper-perl_13.2.1 libdpkg-perl_1.20.5+rpi1 libelf1_0.181-1 libext2fs2_1.45.6-1 libfakeroot_1.25.3-1 libfdisk1_2.36-3 libffi7_3.3-4 libfile-stripnondeterminism-perl_1.9.0-1 libgcc-10-dev_10.2.0-13+rpi1 libgcc-s1_10.2.0-13+rpi1 libgcrypt20_1.8.6-2 libgdbm-compat4_1.18.1-5.1 libgdbm6_1.18.1-5.1 libglib2.0-0_2.66.1-2 libgmp10_2:6.2.0+dfsg-6 libgnutls30_3.6.15-4 libgomp1_10.2.0-13+rpi1 libgpg-error0_1.38-2 libgssapi-krb5-2_1.17-10+b3 libhogweed6_3.6-2 libicu67_67.1-4 libidn2-0_2.3.0-1 libisl22_0.22.1-1 libk5crypto3_1.17-10+b3 libkeyutils1_1.6.1-2 libkrb5-3_1.17-10+b3 libkrb5support0_1.17-10+b3 libksba8_1.4.0-2 libldap-2.4-2_2.4.53+dfsg-1+rpi1 libldap-common_2.4.53+dfsg-1+rpi1 liblz4-1_1.9.2-2 liblzma5_5.2.4-1 libmagic-mgc_1:5.38-5 libmagic1_1:5.38-5 libmount1_2.36-3 libmpc3_1.2.0-1 libmpfr6_4.1.0-3 libncursesw6_6.2+20200918-1 libnettle8_3.6-2 libnpth0_1.6-3 libnsl-dev_1.3.0-2 libnsl2_1.3.0-2 libnss-nis_3.1-4 libnss-nisplus_1.3-4 libp11-kit0_0.23.21-2 libpam-cap_1:2.44-1 libpam-modules_1.3.1-5 libpam-modules-bin_1.3.1-5 libpam-runtime_1.3.1-5 libpam0g_1.3.1-5 libpcre2-8-0_10.34-7 libpcre3_2:8.39-13 libperl5.30_5.30.3-4 libpipeline1_1.5.3-1 libreadline8_8.0-4 libsasl2-2_2.1.27+dfsg-2 libsasl2-modules-db_2.1.27+dfsg-2 libseccomp2_2.4.4-1+rpi1 libselinux1_3.1-2 libsemanage-common_3.1-1 libsemanage1_3.1-1 libsepol1_3.1-1 libsigc++-2.0-0v5_2.10.4-2 libsigsegv2_2.12-2 libsmartcols1_2.36-3 libsqlite3-0_3.33.0-1 libss2_1.45.6-1 libssl1.1_1.1.1g-1 libstdc++-10-dev_10.2.0-13+rpi1 libstdc++6_10.2.0-13+rpi1 libsub-override-perl_0.09-2 libsystemd0_246.4-1+rpi1 libtasn1-6_4.16.0-2 libtinfo6_6.2+20200918-1 libtirpc-common_1.2.6-3 libtirpc-dev_1.2.6-3 libtirpc3_1.2.6-3 libtool_2.4.6-14 libubsan1_10.2.0-13+rpi1 libuchardet0_0.0.7-1 libudev1_246.4-1+rpi1 libunistring2_0.9.10-4 libuuid1_2.36-3 libxapian30_1.4.17-1 libxml2_2.9.10+dfsg-6.1 libzstd1_1.4.5+dfsg-4+rpi1 linux-libc-dev_5.7.10-1+rpi1 login_1:4.8.1-1 logsave_1.45.6-1 lsb-base_11.1.0+rpi1 m4_1.4.18-4 make_4.3-4 man-db_2.9.3-2 mawk_1.3.4.20200120-2 mount_2.36-3 ncurses-base_6.2+20200918-1 ncurses-bin_6.2+20200918-1 netbase_6.2 passwd_1:4.8.1-1 patch_2.7.6-6 perl_5.30.3-4 perl-base_5.30.3-4 perl-modules-5.30_5.30.3-4 pinentry-curses_1.1.0-4 po-debconf_1.0.21 raspbian-archive-keyring_20120528.2 readline-common_8.0-4 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-golang-github-rogpeppe-go-internal-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.12+nmu1 sysvinit-utils_2.96-5 tar_1.30+dfsg-7 tzdata_2020d-1 util-linux_2.36-3 xz-utils_5.2.4-1 zlib1g_1:1.2.11.dfsg-2
+------------------------------------------------------------------------------+
| Build |
+------------------------------------------------------------------------------+
Unpack source
-------------
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/dpkg-verify-sig.oHJfZzNT/trustedkeys.kbx': General error
gpgv: Signature made Fri Oct 23 09:09:39 2020 UTC
gpgv: using RSA key 142421B19AD4A95996F95072EA2500B412C59ACF
gpgv: issuer "foka@debian.org"
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./golang-github-rogpeppe-go-internal_1.6.2-1.dsc
dpkg-source: info: extracting golang-github-rogpeppe-go-internal in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking golang-github-rogpeppe-go-internal_1.6.2.orig.tar.gz
dpkg-source: info: unpacking golang-github-rogpeppe-go-internal_1.6.2-1.debian.tar.xz
Check disc space
----------------
Sufficient free space for build
User Environment
----------------
APT_CONFIG=/var/lib/sbuild/apt.conf
DEB_BUILD_OPTIONS=parallel=4
HOME=/sbuild-nonexistent
LC_ALL=POSIX
LOGNAME=buildd
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=bullseye-staging-armhf-sbuild
SCHROOT_CHROOT_NAME=bullseye-staging-armhf-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=109
SCHROOT_GROUP=buildd
SCHROOT_SESSION_ID=bullseye-staging-armhf-sbuild-d6647376-4c05-4411-b9d4-c0b68021e7af
SCHROOT_UID=104
SCHROOT_USER=buildd
SHELL=/bin/sh
TERM=linux
USER=buildd
dpkg-buildpackage
-----------------
dpkg-buildpackage: info: source package golang-github-rogpeppe-go-internal
dpkg-buildpackage: info: source version 1.6.2-1
dpkg-buildpackage: info: source distribution unstable
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture armhf
debian/rules clean
dh clean --buildsystem=golang --with golang
dh_auto_clean -O--buildsystem=golang
dh_autoreconf_clean -O--buildsystem=golang
dh_clean -O--buildsystem=golang
debian/rules binary-arch
dh binary-arch --buildsystem=golang --with golang
dh_update_autotools_config -a -O--buildsystem=golang
dh_autoreconf -a -O--buildsystem=golang
dh_auto_configure -a -O--buildsystem=golang
dh_auto_build -a -O--buildsystem=golang
cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 4 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar
internal/unsafeheader
internal/race
runtime/internal/sys
internal/cpu
sync/atomic
unicode
runtime/internal/math
unicode/utf8
math/bits
internal/bytealg
runtime/internal/atomic
math
internal/testlog
encoding
unicode/utf16
github.com/rogpeppe/go-internal/semver
runtime
internal/nettrace
runtime/cgo
crypto/internal/subtle
container/list
crypto/subtle
vendor/golang.org/x/crypto/cryptobyte/asn1
vendor/golang.org/x/crypto/internal/subtle
internal/goversion
github.com/rogpeppe/go-internal/internal/syscall/windows
github.com/rogpeppe/go-internal/internal/syscall/windows/registry
github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll
internal/reflectlite
gopkg.in/errgo.v2/errors
sync
internal/singleflight
math/rand
github.com/rogpeppe/go-internal/par
errors
sort
internal/oserror
io
strconv
syscall
vendor/golang.org/x/net/dns/dnsmessage
bytes
hash
crypto
reflect
strings
hash/crc32
crypto/internal/randutil
bufio
path
internal/syscall/unix
time
internal/syscall/execenv
crypto/hmac
crypto/rc4
vendor/golang.org/x/crypto/hkdf
vendor/golang.org/x/text/transform
regexp/syntax
context
internal/poll
regexp
internal/fmtsort
encoding/binary
os
github.com/rogpeppe/go-internal/fmtsort
crypto/sha256
crypto/cipher
encoding/base64
crypto/sha512
crypto/ed25519/internal/edwards25519
path/filepath
fmt
net
io/ioutil
crypto/aes
crypto/des
crypto/md5
crypto/sha1
encoding/pem
encoding/hex
flag
compress/flate
github.com/rogpeppe/go-internal/cache
encoding/json
github.com/rogpeppe/go-internal/module
github.com/rogpeppe/go-internal/txtar
log
archive/zip
compress/gzip
math/big
net/url
vendor/golang.org/x/crypto/chacha20
vendor/golang.org/x/crypto/poly1305
vendor/golang.org/x/crypto/curve25519
vendor/golang.org/x/crypto/chacha20poly1305
vendor/golang.org/x/text/unicode/bidi
vendor/golang.org/x/text/unicode/norm
vendor/golang.org/x/text/secure/bidirule
vendor/golang.org/x/net/http2/hpack
crypto/rand
crypto/elliptic
encoding/asn1
crypto/ed25519
crypto/rsa
crypto/dsa
vendor/golang.org/x/net/idna
vendor/golang.org/x/crypto/cryptobyte
crypto/x509/pkix
mime
crypto/ecdsa
mime/quotedprintable
net/http/internal
github.com/rogpeppe/go-internal/imports
os/exec
github.com/rogpeppe/go-internal/internal/textutil
runtime/debug
runtime/trace
gopkg.in/errgo.v2/fmt/errors
testing
go/token
github.com/rogpeppe/go-internal/internal/os/execpath
go/scanner
internal/lazyregexp
text/template/parse
go/ast
github.com/rogpeppe/go-internal/testenv
github.com/rogpeppe/go-internal/testscript
crypto/x509
net/textproto
vendor/golang.org/x/net/http/httpproxy
text/template
vendor/golang.org/x/net/http/httpguts
mime/multipart
go/parser
internal/goroot
github.com/rogpeppe/go-internal/cmd/txtar-addmod
crypto/tls
github.com/rogpeppe/go-internal/cmd/txtar-c
go/doc
go/build
github.com/rogpeppe/go-internal/cmd/txtar-x
github.com/rogpeppe/go-internal/dirhash
github.com/rogpeppe/go-internal/lockedfile/internal/filelock
github.com/rogpeppe/go-internal/lockedfile
github.com/rogpeppe/go-internal/modfile
github.com/rogpeppe/go-internal/renameio
github.com/rogpeppe/go-internal/gotooltest
net/http/httptrace
net/http
github.com/rogpeppe/go-internal/goproxytest
github.com/rogpeppe/go-internal/cmd/txtar-goproxy
github.com/rogpeppe/go-internal/cmd/testscript
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
GOPROXY="" dh_auto_test
cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 4 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar
=== RUN TestBasic
--- PASS: TestBasic (0.51s)
=== RUN TestGrowth
--- PASS: TestGrowth (35.87s)
=== RUN TestVerifyPanic
cache_test.go:139: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<<
>>>
old: cb8379ac2098aa165029e3938a51da0bcecfc008fd6795f401178647f96c5b34 3
new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3
--- PASS: TestVerifyPanic (0.59s)
=== RUN TestCacheLog
--- PASS: TestCacheLog (0.57s)
=== RUN TestCacheTrim
--- PASS: TestCacheTrim (0.88s)
=== RUN TestDefaultDir
--- PASS: TestDefaultDir (0.00s)
=== RUN TestHash
--- PASS: TestHash (0.00s)
=== RUN TestHashFile
--- PASS: TestHashFile (0.00s)
PASS
ok github.com/rogpeppe/go-internal/cache 38.482s
=== RUN TestScripts
=== RUN TestScripts/env_var_no_go
=== PAUSE TestScripts/env_var_no_go
=== RUN TestScripts/env_var_with_go
=== PAUSE TestScripts/env_var_with_go
=== RUN TestScripts/error
=== PAUSE TestScripts/error
=== RUN TestScripts/help
=== PAUSE TestScripts/help
=== RUN TestScripts/nogo
=== PAUSE TestScripts/nogo
=== RUN TestScripts/noproxy
=== PAUSE TestScripts/noproxy
=== RUN TestScripts/simple
=== PAUSE TestScripts/simple
=== RUN TestScripts/skip
=== PAUSE TestScripts/skip
=== RUN TestScripts/work
=== PAUSE TestScripts/work
=== CONT TestScripts/env_var_no_go
=== CONT TestScripts/noproxy
=== CONT TestScripts/skip
=== CONT TestScripts/simple
=== CONT TestScripts/skip
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# should support skip (0.760s)
> unquote file.txt
> testscript -v file.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> go version
[stdout]
go version go1.15.2 linux/arm
> skip
> stdout 'go version'
> ! stderr .+
PASS
=== CONT TestScripts/work
=== CONT TestScripts/env_var_no_go
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# Test passing environment variables to scripts with no go command on PATH
#
# This is the counterpart to env_var_with_go.txt (0.006s)
> unquote noproxy.txt
> unquote withproxy.txt
> dropgofrompath
> env BANANA=banana
> env GOPATH=$WORK/ourgopath
> env GOPROXY=
# no GOPROXY, no pass-through, no proxy (0.083s)
> testscript -v noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> env BANANA
BANANA=
> env GOPATH
GOPATH=
> env GOPROXY
GOPROXY=
PASS
> stdout ^BANANA=$
> stdout ^GOPATH=$
> stdout ^GOPROXY=$
> ! stderr .+
# no GOPROXY, no pass-through, with proxy (0.086s)
> testscript -v withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPROXY=http://127.0.0.1:42329/mod
GONOSUMDB=*
> env BANANA
BANANA=
> env GOPATH
GOPATH=
> env GOPROXY
GOPROXY=http://127.0.0.1:42329/mod
PASS
> stdout ^BANANA=$
> stdout ^GOPATH=$
> stdout ^GOPROXY=http://.*/mod$
> ! stderr .+
# no GOPROXY, with pass-through, no proxy (0.093s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
BANANA=banana
GOPATH=$WORK/ourgopath
GOPROXY=
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$
> ! stderr .+
# no GOPROXY, with pass-through, with proxy (0.125s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPROXY=
GONOSUMDB=*
BANANA=banana
GOPATH=$WORK/ourgopath
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$
> ! stderr .+
> setfilegoproxy $WORK/proxy
# with GOPROXY, no pass-through, no proxy (0.108s)
> testscript -v noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> env BANANA
BANANA=
> env GOPATH
GOPATH=
> env GOPROXY
GOPROXY=
PASS
> stdout ^BANANA=$
> stdout ^GOPATH=$
> stdout ^GOPROXY=$
> ! stderr .+
# with GOPROXY, no pass-through, with proxy (0.139s)
> testscript -v withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPROXY=http://127.0.0.1:33045/mod
GONOSUMDB=*
> env BANANA
BANANA=
> env GOPATH
GOPATH=
> env GOPROXY
GOPROXY=http://127.0.0.1:33045/mod
PASS
> stdout ^BANANA=$
> stdout ^GOPATH=$
> stdout ^GOPROXY=http://.*/mod$
> ! stderr .+
# with GOPROXY, with pass-through, no proxy (0.072s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
BANANA=banana
GOPATH=$WORK/ourgopath
GOPROXY=file://$WORK/proxy
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=file://$WORK/proxy
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$GOPROXY$
> ! stderr .+
# with GOPROXY, with pass-through, with proxy (0.046s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPROXY=file://$WORK/proxy
GONOSUMDB=*
BANANA=banana
GOPATH=$WORK/ourgopath
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=file://$WORK/proxy
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$GOPROXY$
> ! stderr .+
PASS
=== CONT TestScripts/help
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# Simply sanity check on help output (0.025s)
> ! testscript -help
[stderr]
The testscript command runs github.com/rogpeppe/go-internal/testscript scripts
in a fresh temporary work directory tree.
Usage:
testscript [-v] [-e VAR]... files...
The testscript command is designed to make it easy to create self-contained
reproductions of command sequences.
Each file is opened as a script and run as described in the documentation for
github.com/rogpeppe/go-internal/testscript. The special filename "-" is
interpreted as the standard input.
As a special case, supporting files/directories in the .gomodproxy subdirectory
will be served via a github.com/rogpeppe/go-internal/goproxytest server which
is available to each script via the GOPROXY environment variable. The contents
of the .gomodproxy subdirectory are not available to the script except via the
proxy server. See the documentation for
github.com/rogpeppe/go-internal/goproxytest for details on the format of these
files/directories.
Environment variables can be passed through to each script with the -e flag,
where VAR is the name of the variable. Variables override testscript-defined
values, with the exception of WORK which cannot be overridden. The -e flag can
appear multiple times to specify multiple variables.
Examples
========
The following example, fruit.txt, shows a simple reproduction that includes
.gomodproxy supporting files:
go get -m fruit.com
go list fruit.com/...
stdout 'fruit.com/fruit'
-- go.mod --
module mod
-- .gomodproxy/fruit.com_v1.0.0/.mod --
module fruit.com
-- .gomodproxy/fruit.com_v1.0.0/.info --
{"Version":"v1.0.0","Time":"2018-10-22T18:45:39Z"}
-- .gomodproxy/fruit.com_v1.0.0/fruit/fruit.go --
package fruit
const Name = "Apple"
Running testscript -v fruit.txt we get:
...
> go get -m fruit.com
[stderr]
go: finding fruit.com v1.0.0
> go list fruit.com/...
[stdout]
fruit.com/fruit
[stderr]
go: downloading fruit.com v1.0.0
> stdout 'fruit.com/fruit'
PASS
The following example, goimports.txt, shows a simple reproduction involving
goimports:
go install golang.org/x/tools/cmd/goimports
# check goimports help information
exec goimports -d main.go
stdout 'import "math"'
-- go.mod --
module mod
require golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372
-- main.go --
package mod
const Pi = math.Pi
Running testscript -v goimports.txt we get:
...
> go install golang.org/x/tools/cmd/goimports
[stderr]
go: finding golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372
go: downloading golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372
# check goimports help information (0.015s)
> exec goimports -d main.go
[stdout]
diff -u main.go.orig main.go
--- main.go.orig 2019-01-08 16:03:35.861907738 +0000
+++ main.go 2019-01-08 16:03:35.861907738 +0000
@@ -1,3 +1,5 @@
package mod
+import "math"
+
const Pi = math.Pi
> stdout 'import "math"'
PASS
[exit status 2]
> ! stdout .+
> stderr 'The testscript command'
> stderr 'Examples'
PASS
=== CONT TestScripts/nogo
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# should support skip (0.094s)
> unquote file.txt
> env PATH=
> ! testscript -v file.txt
[stdout]
WORK=$WORK
PATH=
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> go env
FAIL: $WORK/tmp/testscript057562075/0/script.txt:1: unknown command "go"
[stderr]
error running file.txt in $WORK/tmp/testscript057562075/0
[exit status 1]
> stdout 'unknown command "go"'
> stderr 'error running file.txt in'
PASS
=== CONT TestScripts/error
=== CONT TestScripts/work
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# should support skip (0.673s)
> unquote file.txt
> testscript -v -work file.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> exec true
PASS
[stderr]
temporary work directory: $WORK/tmp/testscript282423855
> stderr '\Qtemporary work directory: '$WORK'\E[/\\]tmp[/\\]'
PASS
=== CONT TestScripts/env_var_with_go
=== CONT TestScripts/simple
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# With .gomodproxy supporting files, any GOPROXY from the
# environment should be overridden by the test proxy. (1.556s)
> env GOPROXY=0.1.2.3
> unquote file.txt
> testscript -v file.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:36841/mod
goversion=1.15
GONOSUMDB=*
> go list -m
[stdout]
example.com/mod
> stdout 'example.com/mod'
> go list fruit.com/...
[stdout]
fruit.com/coretest
fruit.com/fruit
[stderr]
go: downloading fruit.com v1.0.0
> stdout 'fruit.com/fruit'
> stdout 'fruit.com/coretest'
PASS
> stdout 'example.com/mod'
> ! stderr .+
PASS
=== CONT TestScripts/noproxy
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# With no .gomodproxy supporting files, we use the GOPROXY from
# the environment. (1.665s)
> env GOPROXY=0.1.2.3
> unquote file.txt
> testscript -v file.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=0.1.2.3
goversion=1.15
> go env
[stdout]
GO111MODULE=""
GOARCH="arm"
GOBIN=""
GOCACHE="/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build"
GOENV="/no-home/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="$WORK/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="$WORK/gopath"
GOPRIVATE=""
GOPROXY="0.1.2.3"
GOROOT="/usr/lib/go-1.15"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.15/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="6"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/tmp/go-build700623295=/tmp/go-build -gno-record-gcc-switches"
> [!windows] stdout '^GOPROXY="0.1.2.3"$'
> [windows] stdout '^set GOPROXY=0.1.2.3$'
PASS
PASS
=== CONT TestScripts/error
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# should support skip (0.001s)
> unquote file.txt
# stdin (0.858s)
> stdin file.txt
> ! testscript -v
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> exec false
[exit status 1]
FAIL: $WORK/tmp/testscript893230784/0/script.txt:1: unexpected command failure
[stderr]
error running <stdin> in $WORK/tmp/testscript893230784/0
[exit status 1]
> stderr 'error running <stdin> in'
# file-based (0.381s)
> ! testscript -v file.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> exec false
[exit status 1]
FAIL: $WORK/tmp/testscript420876925/0/script.txt:1: unexpected command failure
[stderr]
error running file.txt in $WORK/tmp/testscript420876925/0
[exit status 1]
> stderr 'error running file.txt in'
PASS
=== CONT TestScripts/env_var_with_go
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
GOINTERNALMODPATH=.
GONOSUMDB=*
# Test passing environment variables to scripts with the go command on PATH
#
# Below where we check the output of testscript -v, we have to match against
# the string literal $WORK because testscript rewrites the actual directory
# to $WORK. Hence we don't want to expand this script's $WORK in such a comparison.
#
# This is the counterpart to env_var_no_go.txt (0.006s)
> unquote noproxy.txt
> unquote withproxy.txt
# Baseline (0.455s)
> testscript -v noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> env BANANA
BANANA=
> env GOPATH
GOPATH=$WORK/gopath
> env GOPROXY
GOPROXY=https://proxy.golang.org,direct
PASS
> stdout ^BANANA=$
> stdout '^GOPATH=\$WORK[/\\]gopath'$
> [!go1.13] stdout ^GOPROXY=$
> [go1.13] stdout ^GOPROXY=https://proxy.golang.org,direct$
> ! stderr .+
> env BANANA=banana
> env GOPATH=$WORK/ourgopath
> env GOPROXY=
# no GOPROXY, no pass-through, no proxy (0.420s)
> testscript -v noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> env BANANA
BANANA=
> env GOPATH
GOPATH=$WORK/gopath
> env GOPROXY
GOPROXY=https://proxy.golang.org,direct
PASS
> stdout ^BANANA=$
> stdout '^GOPATH=\$WORK[/\\]gopath'$
> [!go1.13] stdout ^GOPROXY=$
> [go1.13] stdout ^GOPROXY=https://proxy.golang.org,direct$
> ! stderr .+
# no GOPROXY, no pass-through, with proxy (0.257s)
> testscript -v withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:38907/mod
goversion=1.15
GONOSUMDB=*
> env BANANA
BANANA=
> env GOPATH
GOPATH=$WORK/gopath
> env GOPROXY
GOPROXY=http://127.0.0.1:38907/mod
PASS
> stdout ^BANANA=$
> stdout '^GOPATH=\$WORK[/\\]gopath'$
> stdout ^GOPROXY=http://.*/mod$
> ! stderr .+
# no GOPROXY, with pass-through, no proxy (0.235s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/ourgopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=
goversion=1.15
BANANA=banana
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$
> ! stderr .+
# no GOPROXY, with pass-through, with proxy (0.238s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/ourgopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=
goversion=1.15
GONOSUMDB=*
BANANA=banana
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$
> ! stderr .+
> setfilegoproxy $WORK/proxy
# with GOPROXY, no pass-through, no proxy (0.236s)
> testscript -v noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=file://$WORK/proxy
goversion=1.15
> env BANANA
BANANA=
> env GOPATH
GOPATH=$WORK/gopath
> env GOPROXY
GOPROXY=file://$WORK/proxy
PASS
> stdout ^BANANA=$
> stdout '^GOPATH=\$WORK[/\\]gopath'$
> stdout ^GOPROXY=$GOPROXY$
> ! stderr .+
# with GOPROXY, no pass-through, with proxy (0.253s)
> testscript -v withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:38199/mod
goversion=1.15
GONOSUMDB=*
> env BANANA
BANANA=
> env GOPATH
GOPATH=$WORK/gopath
> env GOPROXY
GOPROXY=http://127.0.0.1:38199/mod
PASS
> stdout ^BANANA=$
> stdout '^GOPATH=\$WORK[/\\]gopath'$
> stdout ^GOPROXY=http://.*/mod$
> ! stderr .+
# with GOPROXY, with pass-through, no proxy (0.266s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/ourgopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=file://$WORK/proxy
goversion=1.15
BANANA=banana
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=file://$WORK/proxy
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$GOPROXY$
> ! stderr .+
# with GOPROXY, with pass-through, with proxy (0.240s)
> testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt
[stdout]
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/ourgopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=file://$WORK/proxy
goversion=1.15
GONOSUMDB=*
BANANA=banana
> env BANANA
BANANA=banana
> env GOPATH
GOPATH=$WORK/ourgopath
> env GOPROXY
GOPROXY=file://$WORK/proxy
PASS
> stdout ^BANANA=banana$
> stdout ^GOPATH=${WORK@R}[/\\]ourgopath$
> stdout ^GOPROXY=$GOPROXY$
> ! stderr .+
PASS
--- PASS: TestScripts (0.29s)
--- PASS: TestScripts/skip (0.76s)
--- PASS: TestScripts/env_var_no_go (0.78s)
--- PASS: TestScripts/help (0.03s)
--- PASS: TestScripts/nogo (0.10s)
--- PASS: TestScripts/work (0.70s)
--- PASS: TestScripts/simple (1.56s)
--- PASS: TestScripts/noproxy (1.68s)
--- PASS: TestScripts/error (1.24s)
--- PASS: TestScripts/env_var_with_go (2.62s)
PASS
ok github.com/rogpeppe/go-internal/cmd/testscript 4.415s
=== RUN TestScripts
=== RUN TestScripts/encode
=== PAUSE TestScripts/encode
=== RUN TestScripts/to_stdout
=== PAUSE TestScripts/to_stdout
=== RUN TestScripts/txtar-addmod-self
=== PAUSE TestScripts/txtar-addmod-self
=== CONT TestScripts/encode
=== CONT TestScripts/txtar-addmod-self
=== CONT TestScripts/to_stdout
go proxy: no archive github.com v0.0.0-20171119174359-809beceb2371
go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371
=== CONT TestScripts/encode
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:32903/mod
goversion=1.15
GONOSUMDB=*
> mkdir $WORK/out
> txtar-addmod $WORK/out github.com/shurcooL/httpfs@v0.0.0-20171119174359-809beceb2371
> ! stdout .+
> ! stderr .+
> exists $WORK/out/github.com_shurcoo!l_httpfs_v0.0.0-20171119174359-809beceb2371.txt
PASS
=== CONT TestScripts/to_stdout
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:32903/mod
goversion=1.15
GONOSUMDB=*
> unquote expect
> txtar-addmod - github.com/gobin-testrepos/simple-main
[stdout]
-- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/.mod --
module github.com/gobin-testrepos/simple-main
-- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/.info --
{"Version":"v1.0.0","Time":"2018-10-22T18:45:39Z"}
-- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/go.mod --
module github.com/gobin-testrepos/simple-main
-- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/main.go --
package main
import "fmt"
func main() {
fmt.Println("I am a simple module-based main")
}
> cmp stdout expect
> ! stderr .+
PASS
=== CONT TestScripts/txtar-addmod-self
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:32903/mod
goversion=1.15
GONOSUMDB=*
> mkdir $WORK/out
> txtar-addmod $WORK/out github.com/gobin-testrepos/simple-main
> ! stdout .+
> ! stderr .+
> exists $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt
> ! grep foobar $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt
> txtar-addmod -all $WORK/out github.com/gobin-testrepos/simple-main
> grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt
PASS
--- PASS: TestScripts (0.36s)
--- PASS: TestScripts/encode (1.20s)
--- PASS: TestScripts/to_stdout (1.41s)
--- PASS: TestScripts/txtar-addmod-self (2.09s)
PASS
ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 2.493s
=== RUN TestScripts
=== RUN TestScripts/all
=== PAUSE TestScripts/all
=== RUN TestScripts/needquote
=== PAUSE TestScripts/needquote
=== RUN TestScripts/quote
=== PAUSE TestScripts/quote
=== RUN TestScripts/txtar-savedir-self
=== PAUSE TestScripts/txtar-savedir-self
=== CONT TestScripts/all
=== CONT TestScripts/quote
=== CONT TestScripts/txtar-savedir-self
=== CONT TestScripts/needquote
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote blah/withsep
> unquote expect
> txtar-c blah
[stdout]
-- nosep --
bar
[stderr]
txtar-c: blah/withsep: ignoring file with txtar marker in
> stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in'
> cmp stdout expect
PASS
=== CONT TestScripts/quote
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote blah/withsep
> unquote expect
> txtar-c -quote blah
[stdout]
unquote withsep
-- withsep --
>-- separator --
>foo
> ! stderr .+
> cmp stdout expect
PASS
=== CONT TestScripts/txtar-savedir-self
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote expect
> txtar-c blah
[stdout]
-- go.mod --
module example.com/blah
-- main.go --
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
-- subdir/x --
x contents
> ! stderr .+
> cmp stdout expect
PASS
=== CONT TestScripts/all
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote expect-all
> unquote expect-no-all
# Without the -a flag, it should ignore . files. (0.031s)
> txtar-c blah
[stdout]
-- go.mod --
module example.com/blah
-- main.go --
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
> ! stderr .+
> cmp stdout expect-no-all
# With the -a flag, it should include them. (0.028s)
> txtar-c -a blah
[stdout]
-- .foo/foo --
foo
-- .other --
other
-- go.mod --
module example.com/blah
-- main.go --
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
> ! stderr .+
> cmp stdout expect-all
PASS
--- PASS: TestScripts (0.00s)
--- PASS: TestScripts/needquote (0.06s)
--- PASS: TestScripts/txtar-savedir-self (0.08s)
--- PASS: TestScripts/quote (0.09s)
--- PASS: TestScripts/all (0.11s)
PASS
ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.146s
? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files]
=== RUN TestScripts
=== RUN TestScripts/extract-dir
=== PAUSE TestScripts/extract-dir
=== RUN TestScripts/extract-out-of-bounds
=== PAUSE TestScripts/extract-out-of-bounds
=== RUN TestScripts/extract-stdin
=== PAUSE TestScripts/extract-stdin
=== RUN TestScripts/extract
=== PAUSE TestScripts/extract
=== CONT TestScripts/extract-dir
=== CONT TestScripts/extract-out-of-bounds
=== CONT TestScripts/extract-stdin
=== CONT TestScripts/extract
=== CONT TestScripts/extract-dir
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote file.txtar
> txtar-x -C x/y file.txtar
> cmp x/y/foo expect/foo
> cmp x/y/a/b/bar expect/a/b/bar
PASS
=== CONT TestScripts/extract
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote file.txtar
> txtar-x file.txtar
> cmp foo expect/foo
> cmp a/b/bar expect/a/b/bar
PASS
=== CONT TestScripts/extract-stdin
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote file.txtar
> stdin file.txtar
> txtar-x
> cmp foo expect/foo
> cmp a/b/bar expect/a/b/bar
PASS
=== CONT TestScripts/extract-out-of-bounds
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> unquote file1.txtar file2.txtar
> ! txtar-x file1.txtar
[stderr]
txtar-x: "../foo": outside parent directory
[exit status 1]
> stderr '"\.\./foo": outside parent directory'
> ! txtar-x file2.txtar
[stderr]
txtar-x: "/foo": outside parent directory
[exit status 1]
> stderr '"/foo": outside parent directory'
PASS
--- PASS: TestScripts (0.00s)
--- PASS: TestScripts/extract (0.06s)
--- PASS: TestScripts/extract-dir (0.09s)
--- PASS: TestScripts/extract-out-of-bounds (0.09s)
--- PASS: TestScripts/extract-stdin (0.09s)
PASS
ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.141s
=== RUN TestHash1
--- PASS: TestHash1 (0.00s)
=== RUN TestHashDir
--- PASS: TestHashDir (0.01s)
=== RUN TestHashZip
--- PASS: TestHashZip (0.01s)
=== RUN TestDirFiles
--- PASS: TestDirFiles (0.02s)
PASS
ok github.com/rogpeppe/go-internal/dirhash 0.076s
=== RUN TestCompare
--- PASS: TestCompare (0.00s)
=== RUN TestOrder
--- PASS: TestOrder (0.00s)
=== RUN TestInterface
--- PASS: TestInterface (0.00s)
PASS
ok github.com/rogpeppe/go-internal/fmtsort 0.033s
=== RUN TestScripts
=== RUN TestScripts/list
=== PAUSE TestScripts/list
=== CONT TestScripts/list
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=http://127.0.0.1:43127/mod
goversion=1.15
GONOSUMDB=*
# prior to go 1.12 you cannot list a module without a requirement (2.035s)
> [!go1.12] go get fruit.com
> go list -m -versions fruit.com
[stdout]
fruit.com v1.0.0 v1.1.0
> stdout 'v1.0.0 v1.1.0'
> go get -d fruit.com@v1.0.0
[stderr]
go: downloading fruit.com v1.0.0
> go get -d fruit.com@v1.1.0
[stderr]
go: downloading fruit.com v1.1.0
PASS
--- PASS: TestScripts (0.27s)
--- PASS: TestScripts/list (2.11s)
PASS
ok github.com/rogpeppe/go-internal/goproxytest 2.437s
=== RUN TestSimple
=== RUN TestSimple/version
=== PAUSE TestSimple/version
=== CONT TestSimple/version
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=arm
GOOS=linux
GOROOT=/usr/lib/go-1.15
GOCACHE=/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/go-build
GOPROXY=https://proxy.golang.org,direct
goversion=1.15
> go list -f '{{context.ReleaseTags}}' runtime
[stdout]
[go1.1 go1.2 go1.3 go1.4 go1.5 go1.6 go1.7 go1.8 go1.9 go1.10 go1.11 go1.12 go1.13 go1.14 go1.15]
> [go1.11] [!go1.12] stdout go1\.11
> [go1.11] [!go1.12] ! stdout go1\.12
> [go1.12] stdout go1\.12
PASS
--- PASS: TestSimple (0.42s)
--- PASS: TestSimple/version (0.38s)
PASS
ok github.com/rogpeppe/go-internal/gotooltest 0.835s
=== RUN TestReadImports
--- PASS: TestReadImports (0.00s)
=== RUN TestReadComments
--- PASS: TestReadComments (0.00s)
=== RUN TestReadFailures
--- PASS: TestReadFailures (0.00s)
=== RUN TestReadFailuresIgnored
--- PASS: TestReadFailuresIgnored (0.00s)
=== RUN TestScan
--- PASS: TestScan (0.03s)
=== RUN TestScanStar
--- PASS: TestScanStar (0.00s)
PASS
ok github.com/rogpeppe/go-internal/imports 0.075s
? github.com/rogpeppe/go-internal/internal/os/execpath [no test files]
? github.com/rogpeppe/go-internal/internal/syscall/windows [no test files]
? github.com/rogpeppe/go-internal/internal/syscall/windows/registry [no test files]
? github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll [no test files]
=== RUN TestDiff
--- PASS: TestDiff (0.00s)
PASS
ok github.com/rogpeppe/go-internal/internal/textutil 0.055s
=== RUN TestMutexExcludes
=== PAUSE TestMutexExcludes
=== RUN TestReadWaitsForLock
=== PAUSE TestReadWaitsForLock
=== RUN TestCanLockExistingFile
=== PAUSE TestCanLockExistingFile
=== RUN TestSpuriousEDEADLK
--- PASS: TestSpuriousEDEADLK (0.04s)
=== CONT TestMutexExcludes
=== CONT TestCanLockExistingFile
=== CONT TestReadWaitsForLock
=== CONT TestMutexExcludes
lockedfile_test.go:74: mu := MutexAt(_)
lockedfile_test.go:80: unlock, _ := mu.Lock()
=== CONT TestReadWaitsForLock
lockedfile_test.go:123: WriteString("part 1\n") = <nil>
=== CONT TestMutexExcludes
lockedfile_test.go:83: mu2 := MutexAt(mu.Path)
--- PASS: TestCanLockExistingFile (0.01s)
=== CONT TestReadWaitsForLock
lockedfile_test.go:145: WriteString("part 2\n") = <nil>
lockedfile_test.go:135: Read(_) = "part 1\npart 2\n"
--- PASS: TestReadWaitsForLock (0.02s)
=== CONT TestMutexExcludes
lockedfile_test.go:96: unlock()
lockedfile_test.go:91: unlock2, _ := mu2.Lock()
lockedfile_test.go:92: unlock2()
--- PASS: TestMutexExcludes (0.03s)
PASS
ok github.com/rogpeppe/go-internal/lockedfile 0.111s
=== RUN TestLockExcludesLock
=== PAUSE TestLockExcludesLock
=== RUN TestLockExcludesRLock
=== PAUSE TestLockExcludesRLock
=== RUN TestRLockExcludesOnlyLock
=== PAUSE TestRLockExcludesOnlyLock
=== RUN TestLockNotDroppedByExecCommand
filelock_test.go:190: fd 7 = /tmp/TestLockNotDroppedByExecCommand943790305
filelock_test.go:193: Lock(fd 7) = <nil>
filelock_test.go:195: fd 8 = os.Open("/tmp/TestLockNotDroppedByExecCommand943790305")
filelock_test.go:206: Lock(fd 8) is blocked (as expected)
filelock_test.go:207: Unlock(fd 7) = <nil>
asm_arm.s:857: Lock(fd 8) = <nil>
filelock_test.go:209: Unlock(fd 8) = <nil>
--- PASS: TestLockNotDroppedByExecCommand (0.05s)
=== CONT TestLockExcludesLock
=== CONT TestRLockExcludesOnlyLock
=== CONT TestLockExcludesLock
filelock_test.go:124: fd 7 = /tmp/TestLockExcludesLock347444940
filelock_test.go:127: fd 9 = os.Open("/tmp/TestLockExcludesLock347444940")
filelock_test.go:130: Lock(fd 7) = <nil>
=== CONT TestRLockExcludesOnlyLock
filelock_test.go:156: fd 8 = /tmp/TestRLockExcludesOnlyLock405850043
=== CONT TestLockExcludesRLock
=== CONT TestRLockExcludesOnlyLock
filelock_test.go:158: RLock(fd 8) = <nil>
filelock_test.go:160: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock405850043")
filelock_test.go:172: RLock(fd 10) = <nil>
filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock405850043")
=== CONT TestLockExcludesRLock
filelock_test.go:140: fd 11 = /tmp/TestLockExcludesRLock949210078
filelock_test.go:143: fd 13 = os.Open("/tmp/TestLockExcludesRLock949210078")
filelock_test.go:146: Lock(fd 11) = <nil>
=== CONT TestRLockExcludesOnlyLock
filelock_test.go:177: Lock(fd 12) is blocked (as expected)
filelock_test.go:179: Unlock(fd 10) = <nil>
asm_arm.s:857: Lock(fd 12) = <nil>
=== CONT TestLockExcludesLock
filelock_test.go:131: Lock(fd 9) is blocked (as expected)
=== CONT TestRLockExcludesOnlyLock
filelock_test.go:181: Unlock(fd 8) = <nil>
=== CONT TestLockExcludesLock
filelock_test.go:132: Unlock(fd 7) = <nil>
=== CONT TestRLockExcludesOnlyLock
filelock_test.go:184: Unlock(fd 12) = <nil>
=== CONT TestLockExcludesRLock
filelock_test.go:147: RLock(fd 13) is blocked (as expected)
filelock_test.go:148: Unlock(fd 11) = <nil>
=== CONT TestLockExcludesLock
asm_arm.s:857: Lock(fd 9) = <nil>
filelock_test.go:134: Unlock(fd 9) = <nil>
--- PASS: TestRLockExcludesOnlyLock (0.02s)
=== CONT TestLockExcludesRLock
asm_arm.s:857: RLock(fd 13) = <nil>
filelock_test.go:150: Unlock(fd 13) = <nil>
--- PASS: TestLockExcludesRLock (0.02s)
--- PASS: TestLockExcludesLock (0.02s)
PASS
ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.103s
=== RUN TestPrintGolden
--- PASS: TestPrintGolden (0.01s)
=== RUN TestParseLax
--- PASS: TestParseLax (0.00s)
=== RUN TestPrintParse
--- PASS: TestPrintParse (0.02s)
=== RUN TestModulePath
=== RUN TestModulePath/module_"github.com/rsc/vgotest"
=== RUN TestModulePath/module_github.com/rsc/vgotest
=== RUN TestModulePath/module__"github.com/rsc/vgotest"
=== RUN TestModulePath/module__github.com/rsc/vgotest
=== RUN TestModulePath/module_`github.com/rsc/vgotest`
=== RUN TestModulePath/module_"github.com/rsc/vgotest/v2"
=== RUN TestModulePath/module_github.com/rsc/vgotest/v2
=== RUN TestModulePath/module_"gopkg.in/yaml.v2"
=== RUN TestModulePath/module_gopkg.in/yaml.v2
=== RUN TestModulePath/module_"gopkg.in/check.v1"_
=== RUN TestModulePath/module_"gopkg.in/check.v1_"
=== RUN TestModulePath/module_gopkg.in/check.v1_
=== RUN TestModulePath/module_"gopkg.in/check.v1"__
=== RUN TestModulePath/module_gopkg.in/check.v1__
=== RUN TestModulePath/module_"gopkg.in/check.v1"__#01
=== RUN TestModulePath/module_gopkg.in/check.v1__#01
=== RUN TestModulePath/module__"gopkg.in/check.v1"__
=== RUN TestModulePath/module__gopkg.in/check.v1__
=== RUN TestModulePath/module_"gopkg.in/check.v1"asd
=== RUN TestModulePath/module__"gopkg.in/check.v1"__#01
=== RUN TestModulePath/module__gopkg.in/check.v1__#01
=== RUN TestModulePath/module_"gopkg.in/check.v1"asd#01
=== RUN TestModulePath/module___module_a/b/c_
=== RUN TestModulePath/module_"___"
=== RUN TestModulePath/module___
=== RUN TestModulePath/module_"__a/b/c__"
=== RUN TestModulePath/module_"github.com/rsc/vgotest1"_//_with_a_comment
--- PASS: TestModulePath (0.01s)
--- PASS: TestModulePath/module_"github.com/rsc/vgotest" (0.00s)
--- PASS: TestModulePath/module_github.com/rsc/vgotest (0.00s)
--- PASS: TestModulePath/module__"github.com/rsc/vgotest" (0.00s)
--- PASS: TestModulePath/module__github.com/rsc/vgotest (0.00s)
--- PASS: TestModulePath/module_`github.com/rsc/vgotest` (0.00s)
--- PASS: TestModulePath/module_"github.com/rsc/vgotest/v2" (0.00s)
--- PASS: TestModulePath/module_github.com/rsc/vgotest/v2 (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/yaml.v2" (0.00s)
--- PASS: TestModulePath/module_gopkg.in/yaml.v2 (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/check.v1"_ (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/check.v1_" (0.00s)
--- PASS: TestModulePath/module_gopkg.in/check.v1_ (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/check.v1"__ (0.00s)
--- PASS: TestModulePath/module_gopkg.in/check.v1__ (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/check.v1"__#01 (0.00s)
--- PASS: TestModulePath/module_gopkg.in/check.v1__#01 (0.00s)
--- PASS: TestModulePath/module__"gopkg.in/check.v1"__ (0.00s)
--- PASS: TestModulePath/module__gopkg.in/check.v1__ (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/check.v1"asd (0.00s)
--- PASS: TestModulePath/module__"gopkg.in/check.v1"__#01 (0.00s)
--- PASS: TestModulePath/module__gopkg.in/check.v1__#01 (0.00s)
--- PASS: TestModulePath/module_"gopkg.in/check.v1"asd#01 (0.00s)
--- PASS: TestModulePath/module___module_a/b/c_ (0.00s)
--- PASS: TestModulePath/module_"___" (0.00s)
--- PASS: TestModulePath/module___ (0.00s)
--- PASS: TestModulePath/module_"__a/b/c__" (0.00s)
--- PASS: TestModulePath/module_"github.com/rsc/vgotest1"_//_with_a_comment (0.00s)
=== RUN TestAddDropReplace
=== RUN TestAddDropReplace/#0
=== RUN TestAddDropReplace/#1
=== RUN TestAddDropReplace/#2
--- PASS: TestAddDropReplace (0.00s)
--- PASS: TestAddDropReplace/#0 (0.00s)
--- PASS: TestAddDropReplace/#1 (0.00s)
--- PASS: TestAddDropReplace/#2 (0.00s)
=== RUN TestAddRequire
=== RUN TestAddRequire/#0
=== RUN TestAddRequire/#1
=== RUN TestAddRequire/#2
--- PASS: TestAddRequire (0.00s)
--- PASS: TestAddRequire/#0 (0.00s)
--- PASS: TestAddRequire/#1 (0.00s)
--- PASS: TestAddRequire/#2 (0.00s)
PASS
ok github.com/rogpeppe/go-internal/modfile 0.094s
=== RUN TestCheck
--- PASS: TestCheck (0.00s)
=== RUN TestCheckPath
--- PASS: TestCheckPath (0.00s)
=== RUN TestSplitPathVersion
--- PASS: TestSplitPathVersion (0.00s)
=== RUN TestEncodePath
--- PASS: TestEncodePath (0.00s)
=== RUN TestDecodePath
--- PASS: TestDecodePath (0.00s)
PASS
ok github.com/rogpeppe/go-internal/module 0.064s
=== RUN TestWork
--- PASS: TestWork (0.14s)
=== RUN TestWorkParallel
--- PASS: TestWorkParallel (0.01s)
=== RUN TestCache
--- PASS: TestCache (0.00s)
PASS
ok github.com/rogpeppe/go-internal/par 0.239s
? github.com/rogpeppe/go-internal/renameio [no test files]
=== RUN TestIsValid
--- PASS: TestIsValid (0.00s)
=== RUN TestCanonical
--- PASS: TestCanonical (0.00s)
=== RUN TestMajor
--- PASS: TestMajor (0.00s)
=== RUN TestMajorMinor
--- PASS: TestMajorMinor (0.00s)
=== RUN TestPrerelease
--- PASS: TestPrerelease (0.00s)
=== RUN TestBuild
--- PASS: TestBuild (0.00s)
=== RUN TestCompare
--- PASS: TestCompare (0.00s)
=== RUN TestMax
--- PASS: TestMax (0.00s)
PASS
ok github.com/rogpeppe/go-internal/semver 0.029s
? github.com/rogpeppe/go-internal/testenv [no test files]
=== RUN TestCRLFInput
=== RUN TestCRLFInput/_
=== RUN TestCRLFInput/_/script
=== PAUSE TestCRLFInput/_/script
=== CONT TestCRLFInput/_/script
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
> exists output.txt
PASS
--- PASS: TestCRLFInput (0.01s)
--- PASS: TestCRLFInput/_ (0.00s)
--- PASS: TestCRLFInput/_/script (0.01s)
=== RUN TestEnv
--- PASS: TestEnv (0.00s)
=== RUN TestScripts
=== RUN TestScripts/cmpenv
=== PAUSE TestScripts/cmpenv
=== RUN TestScripts/command
=== PAUSE TestScripts/command
=== RUN TestScripts/commandstatus
=== PAUSE TestScripts/commandstatus
=== RUN TestScripts/cpstdout
=== PAUSE TestScripts/cpstdout
=== RUN TestScripts/defer
=== PAUSE TestScripts/defer
=== RUN TestScripts/evalsymlink
=== PAUSE TestScripts/evalsymlink
=== RUN TestScripts/exec_path_change
=== PAUSE TestScripts/exec_path_change
=== RUN TestScripts/execguard
=== PAUSE TestScripts/execguard
=== RUN TestScripts/exists
=== PAUSE TestScripts/exists
=== RUN TestScripts/hello
=== PAUSE TestScripts/hello
=== RUN TestScripts/interrupt
=== PAUSE TestScripts/interrupt
=== RUN TestScripts/nothing
=== PAUSE TestScripts/nothing
=== RUN TestScripts/readfile
=== PAUSE TestScripts/readfile
=== RUN TestScripts/regexpquote
=== PAUSE TestScripts/regexpquote
=== RUN TestScripts/setenv
=== PAUSE TestScripts/setenv
=== RUN TestScripts/setupfiles
=== PAUSE TestScripts/setupfiles
=== RUN TestScripts/stdin
=== PAUSE TestScripts/stdin
=== RUN TestScripts/testscript_update_script
=== PAUSE TestScripts/testscript_update_script
=== RUN TestScripts/testscript_update_script_actual_is_file
=== PAUSE TestScripts/testscript_update_script_actual_is_file
=== RUN TestScripts/testscript_update_script_expected_not_in_archive
=== PAUSE TestScripts/testscript_update_script_expected_not_in_archive
=== RUN TestScripts/testscript_update_script_quote
=== PAUSE TestScripts/testscript_update_script_quote
=== RUN TestScripts/testscript_update_script_stderr
=== PAUSE TestScripts/testscript_update_script_stderr
=== RUN TestScripts/values
=== PAUSE TestScripts/values
=== RUN TestScripts/wait
=== PAUSE TestScripts/wait
=== CONT TestScripts/cmpenv
=== CONT TestScripts/testscript_update_script_actual_is_file
=== CONT TestScripts/setupfiles
=== CONT TestScripts/cmpenv
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> env $=$
> cmpenv file1 file2
PASS
=== CONT TestScripts/setupfiles
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
# check that the Setup function saw the unarchived files,
# including the temp directory that's always created. (0.000s)
> setup-filenames a b tmp
PASS
=== CONT TestScripts/nothing
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
# Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s)
PASS
=== CONT TestScripts/readfile
=== CONT TestScripts/stdin
=== CONT TestScripts/testscript_update_script
=== CONT TestScripts/testscript_update_script_actual_is_file
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> unquote scripts/testscript.txt
> unquote testscript-new.txt
> testscript-update scripts
testscript:
PASS
$WORK/scripts/testscript.txt updated
> cmp scripts/testscript.txt testscript-new.txt
PASS
=== CONT TestScripts/testscript_update_script_stderr
=== CONT TestScripts/testscript_update_script
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> unquote scripts/testscript.txt
> unquote testscript-new.txt
> testscript-update scripts
testscript:
PASS
$WORK/scripts/testscript.txt updated
> cmp scripts/testscript.txt testscript-new.txt
PASS
=== CONT TestScripts/readfile
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> echo stdout stdout
[stdout]
stdout
> testreadfile stdout
> echo stderr stderr
[stderr]
stderr
> testreadfile stderr
> testreadfile x/somefile
PASS
=== CONT TestScripts/stdin
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> [!exec:cat] skip
> stdin hello.txt
> exec cat
[stdout]
hello
> stdout hello
> exec cat
> ! stdout hello
> [!exec:cat] stop
# Check that 'stdin stdout' works. (0.033s)
> exec cat hello.txt
[stdout]
hello
> stdin stdout
> exec cat
[stdout]
hello
> stdout hello
PASS
=== CONT TestScripts/wait
=== CONT TestScripts/values
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> test-values
PASS
=== CONT TestScripts/exec_path_change
=== CONT TestScripts/interrupt
=== CONT TestScripts/testscript_update_script_stderr
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> unquote scripts/testscript.txt
> unquote testscript-new.txt
> testscript-update scripts
testscript:
PASS
$WORK/scripts/testscript.txt updated
> cmp scripts/testscript.txt testscript-new.txt
PASS
=== CONT TestScripts/hello
=== CONT TestScripts/interrupt
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> [windows] skip
> signalcatcher &
> waitfile catchsignal
> interrupt
> wait
[background] testscript.test: exit status 0
[stdout]
caught interrupt
> stdout 'caught interrupt'
PASS
=== CONT TestScripts/exists
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> chmod 444 foo_r
> exists foo
> ! exists unfoo
# TODO The following line fails but probably should not.
# ! exists -readonly foo (0.000s)
> exists foo_r
> exists -readonly foo_r
PASS
=== CONT TestScripts/execguard
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> [exec:nosuchcommand] exec nosuchcommand
> [!exec:cat] stop
> exec cat foo
[stdout]
foo
> stdout 'foo\n'
PASS
=== CONT TestScripts/setenv
=== CONT TestScripts/hello
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> [!exec:cat] stop
# hello world (0.051s)
> exec cat hello.text
[stdout]
hello world
> stdout 'hello world\n'
> ! stderr .
PASS
=== CONT TestScripts/regexpquote
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> env XXX='hello)'
> grep ^${XXX@R}$ file.txt
PASS
=== CONT TestScripts/setenv
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> setSpecialVal
> exists $SPECIALVAL.txt
> ensureSpecialVal
PASS
=== CONT TestScripts/cpstdout
=== CONT TestScripts/evalsymlink
=== CONT TestScripts/cpstdout
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> [!exec:cat] stop
# hello world (0.059s)
> exec cat hello.text
[stdout]
hello world
> cp stdout got
> cmp got hello.text
PASS
=== CONT TestScripts/defer
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> testdefer
> testdefer
> testdefer
PASS
=== CONT TestScripts/commandstatus
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> ! status 1
[exit status 1]
> ! status 2
[exit status 2]
> status 0
PASS
=== CONT TestScripts/testscript_update_script_quote
=== CONT TestScripts/evalsymlink
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
# If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the
# matcher will have problems with external programs that uses the real path.
# This script tests that $WORK is matched in a consistent way (also see #79). (0.253s)
> [windows] skip
> exec pwd
[stdout]
$WORK
> stdout ^$WORK$
> exec pwd -P
[stdout]
$WORK
> stdout ^$WORK$
PASS
=== CONT TestScripts/testscript_update_script_expected_not_in_archive
=== CONT TestScripts/testscript_update_script_quote
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> unquote scripts/testscript.txt
> unquote testscript-new.txt
> testscript-update scripts
testscript:
PASS
$WORK/scripts/testscript.txt updated
> cmp scripts/testscript.txt testscript-new.txt
PASS
=== CONT TestScripts/command
=== CONT TestScripts/wait
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> [!exec:echo] skip
> [!exec:false] skip
# TODO: the '\n' below doesn't work on Windows on Github Actions, which does
# have coreutils like "echo" installed. Perhaps they emit CRLF? (0.408s)
> [windows] skip
> exec echo foo
[stdout]
foo
> stdout foo
> exec echo foo &
> exec echo bar &
> ! exec false &
# Starting a background process should clear previous output. (0.000s)
> ! stdout foo
# Wait should set the output to the concatenated outputs of the background
# programs, in the order in which they were started. (0.003s)
> wait
[background] echo foo: exit status 0
[stdout]
foo
[background] echo bar: exit status 0
[stdout]
bar
[background] false: exit status 1
> stdout 'foo\nbar'
# The end of the test should interrupt or kill any remaining background
# programs. (0.062s)
> [!exec:sleep] skip
> ! exec sleep 86400 &
[background] sleep 86400: signal: interrupt
PASS
=== CONT TestScripts/command
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
> printargs a b 'c d'
[stdout]
["printargs" "a" "b" "c d"]
> stdout '\["printargs" "a" "b" "c d"\]\n'
PASS
=== CONT TestScripts/testscript_update_script_expected_not_in_archive
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
# Verify that comparing stdout against a file not in the archive does nothing (0.114s)
> unquote scripts/testscript.txt
> cp scripts/testscript.txt unchanged
> ! testscript-update scripts
testscript:
> echo stdout right
[stdout]
right
> cp file expect
> cmp stdout expect
[diff -stdout +expect]
-right
+wrong
FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ
> cmp scripts/testscript.txt unchanged
PASS
=== CONT TestScripts/exec_path_change
testscript.go:382:
WORK=$WORK
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
GONOSUMDB=*
# If the PATH environment variable is set in the testscript.Params.Setup phase
# or set directly within a script, exec should honour that PATH (5.337s)
> [!exec:go] skip
> env HOME=$WORK${/}home
> [windows] env USERPROFILE=$WORK\home
> [windows] env LOCALAPPDATA=$WORK\appdata
> cd go
$WORK/go
> exec go$exe version
[stdout]
go version go1.15.2 linux/arm
> stdout 'go version'
> exec go$exe build
> env PATH=$WORK${/}go${:}$PATH
> exec go$exe version
[stdout]
This is not go
> stdout 'This is not go'
PASS
--- PASS: TestScripts (0.01s)
--- PASS: TestScripts/cmpenv (0.01s)
--- PASS: TestScripts/setupfiles (0.02s)
--- PASS: TestScripts/nothing (0.01s)
--- PASS: TestScripts/testscript_update_script_actual_is_file (0.05s)
--- PASS: TestScripts/stdin (0.11s)
--- PASS: TestScripts/readfile (0.12s)
--- PASS: TestScripts/values (0.01s)
--- PASS: TestScripts/testscript_update_script (0.13s)
--- PASS: TestScripts/testscript_update_script_stderr (0.14s)
--- PASS: TestScripts/interrupt (0.07s)
--- PASS: TestScripts/exists (0.01s)
--- PASS: TestScripts/execguard (0.02s)
--- PASS: TestScripts/hello (0.06s)
--- PASS: TestScripts/regexpquote (0.00s)
--- PASS: TestScripts/setenv (0.01s)
--- PASS: TestScripts/cpstdout (0.07s)
--- PASS: TestScripts/defer (0.02s)
--- PASS: TestScripts/commandstatus (0.08s)
--- PASS: TestScripts/evalsymlink (0.26s)
--- PASS: TestScripts/testscript_update_script_quote (0.14s)
--- PASS: TestScripts/wait (0.48s)
--- PASS: TestScripts/command (0.08s)
--- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.16s)
--- PASS: TestScripts/exec_path_change (5.63s)
=== RUN TestTestwork
--- PASS: TestTestwork (21.24s)
=== RUN TestWorkdirRoot
=== RUN TestWorkdirRoot/run_tests
=== RUN TestWorkdirRoot/run_tests/nothing
=== PAUSE TestWorkdirRoot/run_tests/nothing
=== CONT TestWorkdirRoot/run_tests/nothing
testscript.go:382:
WORK=/tmp/428118749/script-nothing
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
/=/
:=:
exe=
# Intentionally empty test script; used to test Params.WorkdirRoot (0.000s)
PASS
--- PASS: TestWorkdirRoot (0.01s)
--- PASS: TestWorkdirRoot/run_tests (0.00s)
--- PASS: TestWorkdirRoot/run_tests/nothing (0.00s)
=== RUN TestBadDir
--- PASS: TestBadDir (0.00s)
PASS
ok github.com/rogpeppe/go-internal/testscript 27.086s
=== RUN Test
=== RUN Test/basic
=== RUN Test/basic#01
--- PASS: Test (0.00s)
--- PASS: Test/basic (0.00s)
--- PASS: Test/basic#01 (0.00s)
=== RUN TestWrite
--- PASS: TestWrite (0.00s)
=== RUN TestUnquote
=== RUN TestUnquote/no_final_newline
=== RUN TestUnquote/no_initial_>
--- PASS: TestUnquote (0.00s)
--- PASS: TestUnquote/no_final_newline (0.00s)
--- PASS: TestUnquote/no_initial_> (0.00s)
=== RUN TestQuote
=== RUN TestQuote/empty
=== RUN TestQuote/one_line
=== RUN TestQuote/several_lines
=== RUN TestQuote/bad_data
=== RUN TestQuote/no_final_newline
--- PASS: TestQuote (0.00s)
--- PASS: TestQuote/empty (0.00s)
--- PASS: TestQuote/one_line (0.00s)
--- PASS: TestQuote/several_lines (0.00s)
--- PASS: TestQuote/bad_data (0.00s)
--- PASS: TestQuote/no_final_newline (0.00s)
PASS
ok github.com/rogpeppe/go-internal/txtar 0.033s
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
create-stamp debian/debhelper-build-stamp
dh_testroot -a -O--buildsystem=golang
dh_prep -a -O--buildsystem=golang
dh_auto_install -a -O--buildsystem=golang
cd obj-arm-linux-gnueabihf && mkdir -p /<<PKGBUILDDIR>>/debian/tmp/usr
cd obj-arm-linux-gnueabihf && cp -r bin /<<PKGBUILDDIR>>/debian/tmp/usr
dh_install -a -O--buildsystem=golang
dh_installdocs -a -O--buildsystem=golang
dh_installchangelogs -a -O--buildsystem=golang
dh_installsystemduser -a -O--buildsystem=golang
dh_perl -a -O--buildsystem=golang
dh_link -a -O--buildsystem=golang
dh_strip_nondeterminism -a -O--buildsystem=golang
dh_compress -a -O--buildsystem=golang
dh_fixperms -a -O--buildsystem=golang
dh_missing -a -O--buildsystem=golang
dh_dwz -a -a -O--buildsystem=golang
dwz: debian/go-internal/usr/bin/testscript: .debug_info section not present
dwz: debian/go-internal/usr/bin/txtar-addmod: .debug_info section not present
dwz: debian/go-internal/usr/bin/txtar-c: .debug_info section not present
dwz: debian/go-internal/usr/bin/txtar-goproxy: .debug_info section not present
dwz: debian/go-internal/usr/bin/txtar-x: .debug_info section not present
dwz: Too few files for multifile optimization
dh_dwz: warning: No dwz multifile created, but not explicitly requested either so ignoring it.
dh_dwz: warning: Common issues include no debug information at all (missing -g) and
dh_dwz: warning: compressed debug information (#931891).
dh_strip -a -a -O--buildsystem=golang
dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-addmod
dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-c
dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-x
dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-goproxy
dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/testscript
dh_makeshlibs -a -a -O--buildsystem=golang
dh_shlibdeps -a -a -O--buildsystem=golang
dh_installdeb -a -O--buildsystem=golang
dh_golang -a -O--buildsystem=golang
Use of uninitialized value $caller in string eq at /usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm line 567.
dh_gencontrol -a -O--buildsystem=golang
dh_md5sums -a -O--buildsystem=golang
dh_builddeb -a -O--buildsystem=golang
dpkg-deb: building package 'go-internal' in '../go-internal_1.6.2-1_armhf.deb'.
dpkg-genbuildinfo --build=any
dpkg-genchanges --build=any -mRaspbian wandboard test autobuilder <root@raspbian.org> >../golang-github-rogpeppe-go-internal_1.6.2-1_armhf.changes
dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included)
dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
--------------------------------------------------------------------------------
Build finished at 2020-10-25T05:47:06Z
Finished
--------
I: Built successfully
+------------------------------------------------------------------------------+
| Post Build Chroot |
+------------------------------------------------------------------------------+
+------------------------------------------------------------------------------+
| Changes |
+------------------------------------------------------------------------------+
golang-github-rogpeppe-go-internal_1.6.2-1_armhf.changes:
---------------------------------------------------------
Format: 1.8
Date: Fri, 23 Oct 2020 03:05:36 -0600
Source: golang-github-rogpeppe-go-internal
Binary: go-internal
Architecture: armhf
Version: 1.6.2-1
Distribution: bullseye-staging
Urgency: medium
Maintainer: Raspbian wandboard test autobuilder <root@raspbian.org>
Changed-By: Anthony Fok <foka@debian.org>
Description:
go-internal - Selected Go-internal packages factored out from the standard libr
Changes:
golang-github-rogpeppe-go-internal (1.6.2-1) unstable; urgency=medium
.
* New upstream version 1.6.2
* debian/copyright: Add author’s email address
* debian/gbp.conf: Enable pristine-tar
* Bump debhelper dependency to "Build-Depends: debhelper-compat (= 13)"
Checksums-Sha1:
ec53ebe46d98406bc73530b65e496944d7c607da 2219408 go-internal_1.6.2-1_armhf.deb
2468d86ea99331c1dae79129a6883937ebe8151d 5142 golang-github-rogpeppe-go-internal_1.6.2-1_armhf.buildinfo
Checksums-Sha256:
19fa939577168d12468c6ce848e309c07ed4d6ca36354a6dbb22f1623deb9977 2219408 go-internal_1.6.2-1_armhf.deb
f2dcdf1a29b3c59c4970b6b0ce60d701d48b67a7e85f676efaf64c8715999c19 5142 golang-github-rogpeppe-go-internal_1.6.2-1_armhf.buildinfo
Files:
195aa580357f746215907c3ffb13653d 2219408 devel optional go-internal_1.6.2-1_armhf.deb
627ed891cd1e8ed14f6374ecafb44ac4 5142 devel optional golang-github-rogpeppe-go-internal_1.6.2-1_armhf.buildinfo
+------------------------------------------------------------------------------+
| Package contents |
+------------------------------------------------------------------------------+
go-internal_1.6.2-1_armhf.deb
-----------------------------
new Debian package, version 2.0.
size 2219408 bytes: control archive=1288 bytes.
1580 bytes, 36 lines control
414 bytes, 7 lines md5sums
Package: go-internal
Source: golang-github-rogpeppe-go-internal
Version: 1.6.2-1
Architecture: armhf
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Installed-Size: 13181
Depends: libc6 (>= 2.4)
Built-Using: golang-1.15 (= 1.15.2-1+rpi1), golang-gopkg-errgo.v2 (= 2.1.0-2)
Section: devel
Priority: optional
Homepage: https://github.com/rogpeppe/go-internal
Description: Selected Go-internal packages factored out from the standard library (binaries)
The go-internal repository factors out an opinionated selection of
internal packages and functionality from the Go standard library.
Currently this consists mostly of packages and testing code from
within the Go tool implementation.
.
Included are the following:
.
* dirhash: calculate hashes over directory trees the same way
that the Go tool does.
* goproxytest: a GOPROXY implementation designed for test use.
* gotooltest: Use the Go tool inside test scripts (see testscript below).
* imports: list of known architectures and OSs, and support for reading
import statements.
* modfile: read and write go.mod files while preserving formatting
and comments.
* module: module paths and versions.
* par: do work in parallel.
* semver: semantic version parsing.
* testenv: information on the current testing environment.
* testscript: script-based testing based on txtar files.
* txtar: simple text-based file archives for testing.
.
This package contains the compiled binaries, namely testscript,
txtar-addmod, txtar-c and txtar-goproxy.
drwxr-xr-x root/root 0 2020-10-23 09:05 ./
drwxr-xr-x root/root 0 2020-10-23 09:05 ./usr/
drwxr-xr-x root/root 0 2020-10-23 09:05 ./usr/bin/
-rwxr-xr-x root/root 4635704 2020-10-23 09:05 ./usr/bin/testscript
-rwxr-xr-x root/root 1585092 2020-10-23 09:05 ./usr/bin/txtar-addmod
-rwxr-xr-x root/root 1446212 2020-10-23 09:05 ./usr/bin/txtar-c
-rwxr-xr-x root/root 4371312 2020-10-23 09:05 ./usr/bin/txtar-goproxy
-rwxr-xr-x root/root 1446196 2020-10-23 09:05 ./usr/bin/txtar-x
drwxr-xr-x root/root 0 2020-10-23 09:05 ./usr/share/
drwxr-xr-x root/root 0 2020-10-23 09:05 ./usr/share/doc/
drwxr-xr-x root/root 0 2020-10-23 09:05 ./usr/share/doc/go-internal/
-rw-r--r-- root/root 325 2020-10-23 09:05 ./usr/share/doc/go-internal/changelog.Debian.gz
-rw-r--r-- root/root 1890 2020-02-17 09:01 ./usr/share/doc/go-internal/copyright
+------------------------------------------------------------------------------+
| Post Build |
+------------------------------------------------------------------------------+
+------------------------------------------------------------------------------+
| Cleanup |
+------------------------------------------------------------------------------+
Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
+------------------------------------------------------------------------------+
| Summary |
+------------------------------------------------------------------------------+
Build Architecture: armhf
Build-Space: 128072
Build-Time: 264
Distribution: bullseye-staging
Host Architecture: armhf
Install-Time: 388
Job: golang-github-rogpeppe-go-internal_1.6.2-1
Machine Architecture: armhf
Package: golang-github-rogpeppe-go-internal
Package-Time: 699
Source-Version: 1.6.2-1
Space: 128072
Status: successful
Version: 1.6.2-1
--------------------------------------------------------------------------------
Finished at 2020-10-25T05:47:06Z
Build needed 00:11:39, 128072k disc space