diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-03 13:40:21 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-03 13:40:21 +0200 |
| commit | d169e0f3c4b76b7ca0edbb69130c17a2277984e9 (patch) | |
| tree | 86c194c0bea9556333db7f1f6d66727af539c5b9 /prog/export_test.go | |
| parent | 8180779d1d06e1cdf27882f50e7f72650f95797d (diff) | |
prog: test TransitivelyEnabledCalls on all targets
Fixes #585
Diffstat (limited to 'prog/export_test.go')
| -rw-r--r-- | prog/export_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
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() { |
