diff options
Diffstat (limited to 'compiler_wrapper/bisect_flag_test.go')
-rw-r--r-- | compiler_wrapper/bisect_flag_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/compiler_wrapper/bisect_flag_test.go b/compiler_wrapper/bisect_flag_test.go index 2b099912..1ccf6051 100644 --- a/compiler_wrapper/bisect_flag_test.go +++ b/compiler_wrapper/bisect_flag_test.go @@ -27,6 +27,22 @@ func TestCallBisectDriver(t *testing.T) { }) } +func TestCallBisectDriverWithCCache(t *testing.T) { + withBisectTestContext(t, func(ctx *testContext) { + ctx.cfg.useCCache = true + cmd := ctx.must(callCompiler(ctx, ctx.cfg, ctx.newCommand(gccX86_64, mainCc))) + if err := verifyPath(cmd, "/usr/bin/python2"); err != nil { + t.Error(err) + } + if err := verifyArgCount(cmd, 1, "/usr/bin/ccache"); err != nil { + t.Error(err) + } + if err := verifyEnvUpdate(cmd, "CCACHE_DIR=.*"); err != nil { + t.Error(err) + } + }) +} + func TestDefaultBisectDir(t *testing.T) { withBisectTestContext(t, func(ctx *testContext) { ctx.env = []string{ |