From 10c725c53f72f68439dfd4f0dd2f1341c741d00b Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 24 Jul 2023 15:48:23 -0700 Subject: [PATCH] test: remove some long-running duplicate tests for kcov/llvm --- src/kcov/__tests__/kcov.test.ts | 15 --------------- src/llvm/__tests__/llvm.test.ts | 20 -------------------- 2 files changed, 35 deletions(-) diff --git a/src/kcov/__tests__/kcov.test.ts b/src/kcov/__tests__/kcov.test.ts index ab432dd4..bbfbc626 100644 --- a/src/kcov/__tests__/kcov.test.ts +++ b/src/kcov/__tests__/kcov.test.ts @@ -42,21 +42,6 @@ describe("setup-Kcov", () => { 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 () => { try { const directory2 = await setupTmpDir("kcov-v38") diff --git a/src/llvm/__tests__/llvm.test.ts b/src/llvm/__tests__/llvm.test.ts index abf9596b..0037ceab 100644 --- a/src/llvm/__tests__/llvm.test.ts +++ b/src/llvm/__tests__/llvm.test.ts @@ -2,7 +2,6 @@ import { setupLLVM, setupClangTools } from "../llvm" import { getSpecificVersionAndUrl } from "../../utils/setup/version" import { isUrlOnline } from "is-url-online" import { setupTmpDir, testBin } from "../../utils/tests/test-helpers" -import { GITHUB_ACTIONS } from "ci-info" import { execaSync } from "execa" import path, { addExeExt } from "patha" import { chmodSync } from "fs" @@ -99,25 +98,6 @@ describe("setup-llvm", () => { 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 () => { const osVersion = await ubuntuVersion() const { binDir } = await setupClangTools(getVersion("llvm", "true", osVersion), directory, process.arch)