2021-09-16 23:54:27 +08:00
|
|
|
import { InstallationInfo } from "../../utils/setup/setupBin"
|
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-16 23:54:27 +08:00
|
|
|
const installInfo = await setupGcc("", "", "")
|
2021-09-16 22:03:54 +08:00
|
|
|
|
2021-09-16 23:54:27 +08:00
|
|
|
await testBin("g++", ["--version"], (installInfo as InstallationInfo | undefined)?.binDir)
|
2021-09-16 22:03:54 +08:00
|
|
|
})
|
|
|
|
})
|