From d169e0f3c4b76b7ca0edbb69130c17a2277984e9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 3 May 2018 13:40:21 +0200 Subject: prog: test TransitivelyEnabledCalls on all targets Fixes #585 --- prog/export_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'prog/export_test.go') diff --git a/prog/export_test.go b/prog/export_test.go index e22c903f4..015d4f319 100644 --- a/prog/export_test.go +++ b/prog/export_test.go @@ -49,6 +49,16 @@ func initTest(t *testing.T) (*Target, rand.Source, int) { return initRandomTargetTest(t, "linux", "amd64") } +func testEachTarget(t *testing.T, fn func(t *testing.T, target *Target)) { + for _, target := range AllTargets() { + target := target + t.Run(fmt.Sprintf("%v/%v", target.OS, target.Arch), func(t *testing.T) { + t.Parallel() + fn(t, target) + }) + } +} + func testEachTargetRandom(t *testing.T, fn func(t *testing.T, target *Target, rs rand.Source, iters int)) { iters := 10000 if testing.Short() { -- cgit mrf-deployment