setup-cpp/src/gcc/__tests__/gcc.test.ts

15 lines
330 B
TypeScript
Raw Normal View History

2021-09-16 22:03:54 +08:00
import { spawnSync as spawn } from "child_process"
import { setupGcc } from "../gcc"
jest.setTimeout(200000)
describe("setup-gcc", () => {
it("should setup gcc", async () => {
await setupGcc("", "", "")
2021-09-16 22:56:49 +08:00
const { status } = spawn("g++", ["--version"], {
2021-09-16 22:03:54 +08:00
encoding: "utf8",
})
expect(status).toBe(0)
})
})