test: check CXX and CC variables in the tests

This commit is contained in:
Amin Yahyaabadi 2022-01-29 12:47:02 -08:00
parent f62138fcc1
commit cbea9ec16b
2 changed files with 6 additions and 0 deletions

View File

@ -13,5 +13,8 @@ describe("setup-gcc", () => {
gpp = `g++-${version}`
}
await testBin(gpp, ["--version"], installInfo?.binDir)
expect(process.env.CC?.includes("gcc")).toBeTruthy()
expect(process.env.CXX?.includes("g++")).toBeTruthy()
})
})

View File

@ -44,6 +44,9 @@ describe("setup-llvm", () => {
it("should setup LLVM", async () => {
const { binDir } = await setupLLVM("11.0.0", directory, "")
await testBin("clang++", ["--version"], binDir)
expect(process.env.CC?.includes("clang")).toBeTruthy()
expect(process.env.CXX?.includes("clang++")).toBeTruthy()
})
afterAll(async () => {