diff options
Diffstat (limited to 'compiler_wrapper/android_config_test.go')
-rw-r--r-- | compiler_wrapper/android_config_test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/compiler_wrapper/android_config_test.go b/compiler_wrapper/android_config_test.go index 4e2f1f5c..104be6df 100644 --- a/compiler_wrapper/android_config_test.go +++ b/compiler_wrapper/android_config_test.go @@ -35,6 +35,7 @@ func createAndroidClangPathGoldenInputs(ctx *testContext) goldenFile { gomaPath := path.Join(ctx.tempDir, "gomacc") ctx.writeFile(gomaPath, "") defaultPath := filepath.Join(ctx.tempDir, "clang") + clangTidyPath := filepath.Join(ctx.tempDir, "clang-tidy") deepPath := "a/b/c/d/e/f/g/clang" linkedDeepPath := "symlinked/clang_other" @@ -52,11 +53,21 @@ func createAndroidClangPathGoldenInputs(ctx *testContext) goldenFile { Cmds: errorResults, }, { + Env: []string{"WITH_TIDY=1"}, + WrapperCmd: newGoldenCmd(defaultPath, mainCc), + Cmds: okResults, + }, + { WrapperCmd: newGoldenCmd(filepath.Join(ctx.tempDir, "clang++"), mainCc), Cmds: okResults, }, { - WrapperCmd: newGoldenCmd(filepath.Join(ctx.tempDir, "clang-tidy"), mainCc), + WrapperCmd: newGoldenCmd(clangTidyPath, mainCc), + Cmds: okResults, + }, + { + Env: []string{"WITH_TIDY=1"}, + WrapperCmd: newGoldenCmd(clangTidyPath, mainCc), Cmds: okResults, }, { |