mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +08:00
TeamCity: speed up ppc64le CI (#3622)
The builder is currently spending 15 to 20 minutes installing gcc and upgrading packages every time we run the tests. Because of this the build fails sometimes by running out of time. This change reduces that to 5 minutes by: * switching from curl to wget (which seems to have fewer dependencies) * not installing gcc on ppc64le * skipping tests that depend on gcc or other binutils
This commit is contained in:
committed by
GitHub
parent
ae715a2b2d
commit
1a1e215fac
@ -14,7 +14,15 @@ import (
|
||||
protest "github.com/go-delve/delve/pkg/proc/test"
|
||||
)
|
||||
|
||||
func mustHaveObjcopy(t *testing.T) {
|
||||
t.Helper()
|
||||
if objcopyPath, _ := exec.LookPath("objcopy"); objcopyPath == "" {
|
||||
t.Skip("no objcopy in path")
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadingExternalDebugInfo(t *testing.T) {
|
||||
mustHaveObjcopy(t)
|
||||
fixture := protest.BuildFixture("locationsprog", 0)
|
||||
defer os.Remove(fixture.Path)
|
||||
stripAndCopyDebugInfo(fixture, t)
|
||||
@ -26,6 +34,7 @@ func TestLoadingExternalDebugInfo(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGnuDebuglink(t *testing.T) {
|
||||
mustHaveObjcopy(t)
|
||||
// build math.go and make a copy of the executable
|
||||
fixture := protest.BuildFixture("math", 0)
|
||||
buf, err := os.ReadFile(fixture.Path)
|
||||
|
||||
Reference in New Issue
Block a user