mirror of
https://github.com/golang/go
synced 2024-11-24 01:20:08 -07:00
d5f690609f
This will enable test sharding over multiple VMs, to speed trybot answers. Update #10029 Change-Id: Ie277c6459bc38005e4d6af14d22effeaa0a4667e Reviewed-on: https://go-review.googlesource.com/6531 Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
23 lines
580 B
Bash
Executable File
23 lines
580 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2014 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
# We are testing cgo -godefs, which translates Go files that use
|
|
# import "C" into Go files with Go definitions of types defined in the
|
|
# import "C" block. Add more tests here.
|
|
FILE_PREFIXES="anonunion issue8478"
|
|
|
|
RM=
|
|
for FP in $FILE_PREFIXES
|
|
do
|
|
go tool cgo -godefs ${FP}.go > ${FP}_defs.go
|
|
RM="${RM} ${FP}_defs.go"
|
|
done
|
|
|
|
go build . && ./testgodefs
|
|
EXIT=$?
|
|
rm -rf _obj testgodefs ${RM}
|
|
exit $EXIT
|