Merge pull request #133 from aminya/llvm

This commit is contained in:
Amin Yahyaabadi 2022-10-19 16:19:41 -07:00 committed by GitHub
commit 61313e30d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -1,13 +1,14 @@
import { setupLLVM, VERSIONS, getUrl, setupClangTools, getLinuxUrl } from "../llvm"
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
import { isUrlOnline } from "is-url-online"
import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers"
import { setupTmpDir, testBin } from "../../utils/tests/test-helpers"
import ciDetect from "@npmcli/ci-detect"
import execa from "execa"
import path, { addExeExt } from "patha"
import { chmodSync } from "fs"
import { getVersion } from "../../default_versions"
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
import * as io from "@actions/io"
jest.setTimeout(400000)
async function testUrl(version: string) {
@ -123,8 +124,8 @@ describe("setup-llvm", () => {
})
it("should setup LLVM 15.0.2", async () => {
await cleanupTmpDir("llvm")
await cleanupTmpDir("/Users/runner/hostedtoolcache/llvm")
await io.rmRF(directory)
await io.rmRF("/Users/runner/hostedtoolcache/llvm")
const { binDir } = await setupLLVM("15.0.2", directory, process.arch)
await testBin("clang++", ["--version"], binDir)
@ -143,6 +144,6 @@ describe("setup-llvm", () => {
})
afterAll(async () => {
await cleanupTmpDir("llvm")
await io.rmRF(directory)
}, 100000)
})