2021-09-16 23:15:43 +08:00
|
|
|
import { testBin } from "../../utils/tests/test-helpers"
|
2021-09-16 22:03:54 +08:00
|
|
|
import { setupGcc } from "../gcc"
|
|
|
|
|
|
|
|
jest.setTimeout(200000)
|
|
|
|
describe("setup-gcc", () => {
|
|
|
|
it("should setup gcc", async () => {
|
2021-09-17 06:34:54 +08:00
|
|
|
const installInfo = await setupGcc("11", "", process.arch)
|
2021-09-16 22:03:54 +08:00
|
|
|
|
2021-09-17 07:15:25 +08:00
|
|
|
let gpp = "g++"
|
|
|
|
if (process.platform !== "win32") {
|
|
|
|
gpp = "g++-11"
|
|
|
|
}
|
|
|
|
await testBin(gpp, ["--version"], installInfo?.binDir)
|
2021-09-16 22:03:54 +08:00
|
|
|
})
|
|
|
|
})
|