Skip to content

Commit 10c725c

Browse files
committed
test: remove some long-running duplicate tests for kcov/llvm
1 parent 4eb56b8 commit 10c725c

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

src/kcov/__tests__/kcov.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,6 @@ describe("setup-Kcov", () => {
4242
await cleanupTmpDir("kcov-v40")
4343
})
4444

45-
it("should build and setup Kcov v39", async () => {
46-
const directory = await setupTmpDir("kcov-v39")
47-
const { binDir } = (await setupKcov("39", directory, "")) as InstallationInfo
48-
await testBin("kcov", ["--version"], binDir)
49-
await cleanupTmpDir("kcov-v39")
50-
})
51-
52-
// it("should find Kcov in the cache", async () => {
53-
// const binDir = await testKcov("v39", directory)
54-
// if (GITHUB_ACTIONS) {
55-
// expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache")
56-
// }
57-
// await cleanupTmpDir("kcov-v39")
58-
// })
59-
6045
it("should build and setup Kcov v38", async () => {
6146
try {
6247
const directory2 = await setupTmpDir("kcov-v38")

src/llvm/__tests__/llvm.test.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { setupLLVM, setupClangTools } from "../llvm"
22
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
33
import { isUrlOnline } from "is-url-online"
44
import { setupTmpDir, testBin } from "../../utils/tests/test-helpers"
5-
import { GITHUB_ACTIONS } from "ci-info"
65
import { execaSync } from "execa"
76
import path, { addExeExt } from "patha"
87
import { chmodSync } from "fs"
@@ -99,25 +98,6 @@ describe("setup-llvm", () => {
9998
execaSync(main_exe, { cwd: __dirname, stdio: "inherit" })
10099
})
101100

102-
it("should find llvm in the cache", async () => {
103-
const osVersion = await ubuntuVersion()
104-
const { binDir } = await setupLLVM(getVersion("llvm", "true", osVersion), directory, process.arch)
105-
await testBin("clang++", ["--version"], binDir)
106-
107-
if (GITHUB_ACTIONS && process.platform !== "linux") {
108-
expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache")
109-
// TODO returns the install dir on linux
110-
}
111-
112-
expect(process.env.CC?.includes("clang")).toBeTruthy()
113-
expect(process.env.CXX?.includes("clang++")).toBeTruthy()
114-
115-
if (GITHUB_ACTIONS && process.platform !== "linux") {
116-
expect(process.env.CC).toMatch("hostedtoolcache")
117-
expect(process.env.CXX).toMatch("hostedtoolcache")
118-
}
119-
})
120-
121101
it("should setup clang-tidy and clang-format", async () => {
122102
const osVersion = await ubuntuVersion()
123103
const { binDir } = await setupClangTools(getVersion("llvm", "true", osVersion), directory, process.arch)

0 commit comments

Comments
 (0)