mirror of https://github.com/aminya/setup-cpp
test: remove some long-running duplicate tests for kcov/llvm
This commit is contained in:
parent
4eb56b89c0
commit
10c725c53f
|
@ -42,21 +42,6 @@ describe("setup-Kcov", () => {
|
||||||
await cleanupTmpDir("kcov-v40")
|
await cleanupTmpDir("kcov-v40")
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should build and setup Kcov v39", async () => {
|
|
||||||
const directory = await setupTmpDir("kcov-v39")
|
|
||||||
const { binDir } = (await setupKcov("39", directory, "")) as InstallationInfo
|
|
||||||
await testBin("kcov", ["--version"], binDir)
|
|
||||||
await cleanupTmpDir("kcov-v39")
|
|
||||||
})
|
|
||||||
|
|
||||||
// it("should find Kcov in the cache", async () => {
|
|
||||||
// const binDir = await testKcov("v39", directory)
|
|
||||||
// if (GITHUB_ACTIONS) {
|
|
||||||
// expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache")
|
|
||||||
// }
|
|
||||||
// await cleanupTmpDir("kcov-v39")
|
|
||||||
// })
|
|
||||||
|
|
||||||
it("should build and setup Kcov v38", async () => {
|
it("should build and setup Kcov v38", async () => {
|
||||||
try {
|
try {
|
||||||
const directory2 = await setupTmpDir("kcov-v38")
|
const directory2 = await setupTmpDir("kcov-v38")
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { setupLLVM, setupClangTools } from "../llvm"
|
||||||
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
|
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
|
||||||
import { isUrlOnline } from "is-url-online"
|
import { isUrlOnline } from "is-url-online"
|
||||||
import { setupTmpDir, testBin } from "../../utils/tests/test-helpers"
|
import { setupTmpDir, testBin } from "../../utils/tests/test-helpers"
|
||||||
import { GITHUB_ACTIONS } from "ci-info"
|
|
||||||
import { execaSync } from "execa"
|
import { execaSync } from "execa"
|
||||||
import path, { addExeExt } from "patha"
|
import path, { addExeExt } from "patha"
|
||||||
import { chmodSync } from "fs"
|
import { chmodSync } from "fs"
|
||||||
|
@ -99,25 +98,6 @@ describe("setup-llvm", () => {
|
||||||
execaSync(main_exe, { cwd: __dirname, stdio: "inherit" })
|
execaSync(main_exe, { cwd: __dirname, stdio: "inherit" })
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should find llvm in the cache", async () => {
|
|
||||||
const osVersion = await ubuntuVersion()
|
|
||||||
const { binDir } = await setupLLVM(getVersion("llvm", "true", osVersion), directory, process.arch)
|
|
||||||
await testBin("clang++", ["--version"], binDir)
|
|
||||||
|
|
||||||
if (GITHUB_ACTIONS && process.platform !== "linux") {
|
|
||||||
expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache")
|
|
||||||
// TODO returns the install dir on linux
|
|
||||||
}
|
|
||||||
|
|
||||||
expect(process.env.CC?.includes("clang")).toBeTruthy()
|
|
||||||
expect(process.env.CXX?.includes("clang++")).toBeTruthy()
|
|
||||||
|
|
||||||
if (GITHUB_ACTIONS && process.platform !== "linux") {
|
|
||||||
expect(process.env.CC).toMatch("hostedtoolcache")
|
|
||||||
expect(process.env.CXX).toMatch("hostedtoolcache")
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
it("should setup clang-tidy and clang-format", async () => {
|
it("should setup clang-tidy and clang-format", async () => {
|
||||||
const osVersion = await ubuntuVersion()
|
const osVersion = await ubuntuVersion()
|
||||||
const { binDir } = await setupClangTools(getVersion("llvm", "true", osVersion), directory, process.arch)
|
const { binDir } = await setupClangTools(getVersion("llvm", "true", osVersion), directory, process.arch)
|
||||||
|
|
Loading…
Reference in New Issue