env/windows: touch up test_buildlet.bash to remove stale tests

Revamp rules for testing windows VMs (there were references to old
versions of Go that no longer exist on in the GCS bucket).

Change-Id: I86c692f4187979857d4e86ef0606c6fc9b4889cf
Reviewed-on: https://go-review.googlesource.com/c/build/+/410240
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Than McIntosh 2022-06-03 13:11:46 -04:00
Родитель 62bee91588
Коммит 9a0efbf976
1 изменённых файлов: 30 добавлений и 8 удалений

38
env/windows/test_buildlet.bash поставляемый
Просмотреть файл

@ -4,25 +4,47 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Prerequisites for using this script
set -ue
hostname="$1"
BUILDLET="windows-amd64-2012@${hostname}"
echo "Pushing go1.4, go1.9beta2 to buildlet"
gomote puttar -url https://storage.googleapis.com/golang/go1.9beta2.src.tar.gz "$BUILDLET"
echo "Pushing go1.4 to buildlet"
gomote put14 "$BUILDLET"
echo "Pushing go tip to buildlet"
(
TEMPDIR=`mktemp -d `
cd $TEMPDIR
git clone //go.googlesource.com/go
tar zcf - ./go > go.tar.gz
gomote puttar "$BUILDLET" go.tar.gz
rm -rf go go.tar.gz
)
echo "Building go (32-bit)"
gomote run -e GOARCH=386 -e GOHOSTARCH=386 -path 'C:/godep/gcc32/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=c:\workdir\go' "$BUILDLET" go/src/make.bat
# Go1.8 has failing tests on some windows versions.
# Push a new release when avaliable or update this to use master.
echo "Running tests for go (32-bit)"
#gomote run -e GOARCH=386 -e GOHOSTARCH=386 -path 'C:/godep/gcc32/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=C:\workdir\go' "$BUILDLET" go/bin/go.exe tool dist test -v --no-rebuild
echo "Building go (64-bit)"
gomote run -path '$PATH,C:/godep/gcc64/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=c:\workdir\go' "$BUILDLET" go/src/make.bat
# Note: full tests commented out for now. Comment out this early exit to
# re-enable tests when qualifying new VMs.
exit 0
# Keep going on error.
set +e
echo "Rebuilding go (32-bit)"
gomote run -e GOARCH=386 -e GOHOSTARCH=386 -path 'C:/godep/gcc32/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=c:\workdir\go' "$BUILDLET" go/src/make.bat
echo "Running tests for go (32-bit)"
gomote run -e GOARCH=386 -e GOHOSTARCH=386 -path 'C:/godep/gcc32/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=C:\workdir\go' "$BUILDLET" go/bin/go.exe tool dist test -v --no-rebuild
echo "Rebuilding go (64-bit)"
gomote run -path '$PATH,C:/godep/gcc64/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=c:\workdir\go' "$BUILDLET" go/src/make.bat
echo "Running tests for go (64-bit)"
#gomote run -path 'C:/godep/gcc64/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=C:\workdir\go' "$BUILDLET" go/bin/go.exe tool dist test -v --no-rebuild
gomote run -path 'C:/godep/gcc64/bin,$WORKDIR/go/bin,$PATH' -e 'GOROOT=C:\workdir\go' "$BUILDLET" go/bin/go.exe tool dist test -v --no-rebuild