2021-09-16 16:30:47 +08:00
|
|
|
import { setupCppcheck } from "../cppcheck"
|
2021-09-16 23:15:43 +08:00
|
|
|
import { testBin } from "../../utils/tests/test-helpers"
|
2021-09-16 23:54:27 +08:00
|
|
|
import { InstallationInfo } from "../../utils/setup/setupBin"
|
2021-09-16 16:30:47 +08:00
|
|
|
|
|
|
|
|
jest.setTimeout(200000)
|
|
|
|
|
describe("setup-cppcheck", () => {
|
|
|
|
|
it("should setup cppcheck", async () => {
|
2021-09-17 06:34:54 +08:00
|
|
|
const installInfo = await setupCppcheck("", "", process.arch)
|
2021-09-16 16:30:47 +08:00
|
|
|
|
2021-09-16 23:54:27 +08:00
|
|
|
await testBin("cppcheck", ["--version"], (installInfo as InstallationInfo | undefined)?.binDir)
|
2021-09-16 16:30:47 +08:00
|
|
|
})
|
|
|
|
|
})
|