diff --git a/src/kcov/__tests__/kcov.test.ts b/src/kcov/__tests__/kcov.test.ts index c94ce4e6..3b5b9f95 100644 --- a/src/kcov/__tests__/kcov.test.ts +++ b/src/kcov/__tests__/kcov.test.ts @@ -11,7 +11,7 @@ describe("setup-Kcov", () => { return } - it("should setup Kcov v40", async () => { + it("should setup Kcov v40 via downloading the binaries", async () => { const directory = await setupTmpDir("kcov-v40") const { binDir } = (await setupKcov("40-binary", directory, "")) as InstallationInfo // the prebuild binary only works on ubuntu 20.04 @@ -23,14 +23,14 @@ describe("setup-Kcov", () => { await cleanupTmpDir("kcov-v40") }) - it("should setup Kcov v40", async () => { + it("should build and setup Kcov v40", async () => { const directory = await setupTmpDir("kcov-v40") const { binDir } = (await setupKcov("40", directory, "")) as InstallationInfo await testBin("kcov", ["--version"], binDir) await cleanupTmpDir("kcov-v40") }) - it("should setup Kcov v39", async () => { + 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) @@ -45,7 +45,7 @@ describe("setup-Kcov", () => { // await cleanupTmpDir("kcov-v39") // }) - it("should setup Kcov v38", async () => { + it("should build and setup Kcov v38", async () => { try { const directory2 = await setupTmpDir("kcov-v38") diff --git a/src/kcov/kcov.ts b/src/kcov/kcov.ts index d3ba507b..2c74a14d 100644 --- a/src/kcov/kcov.ts +++ b/src/kcov/kcov.ts @@ -59,7 +59,7 @@ async function buildKcov(file: string, dest: string) { await execa("cmake", ["--build", "./build", "--config", "Release"], { cwd: out, stdio: "inherit" }) // execSudo("cmake", ["--install", "./build"], out) // return "user/local/bin" // the cmake install prefix - return out + return join(out, "build") } export async function setupKcov(versionGiven: string, setupDir: string, arch: string) {