mirror of https://github.com/aminya/setup-cpp
test: check CXX and CC variables in the tests
This commit is contained in:
parent
f62138fcc1
commit
cbea9ec16b
|
@ -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()
|
||||
})
|
||||
})
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue