diff options
Diffstat (limited to 'compiler_wrapper/ccache_flag_test.go')
-rw-r--r-- | compiler_wrapper/ccache_flag_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler_wrapper/ccache_flag_test.go b/compiler_wrapper/ccache_flag_test.go index 03a74de8..61abef06 100644 --- a/compiler_wrapper/ccache_flag_test.go +++ b/compiler_wrapper/ccache_flag_test.go @@ -54,6 +54,17 @@ func TestSetCacheDir(t *testing.T) { }) } +func TestSetCacheBaseDirToSysroot(t *testing.T) { + withCCacheEnabledTestContext(t, func(ctx *testContext) { + cmd := ctx.must(callCompiler(ctx, ctx.cfg, + ctx.newCommand(gccX86_64, mainCc))) + if err := verifyEnvUpdate(cmd, + "CCACHE_BASEDIR="+ctx.tempDir+"/usr/x86_64-cros-linux-gnu"); err != nil { + t.Error(err) + } + }) +} + func TestSetCacheUmask(t *testing.T) { withCCacheEnabledTestContext(t, func(ctx *testContext) { cmd := ctx.must(callCompiler(ctx, ctx.cfg, |