Skip to content

Commit

Permalink
test: test proces.arch
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 16, 2021
1 parent 7492e96 commit 3c2eaf1
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/brew/__tests__/brew.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("setup-brew", () => {
if (process.platform !== "darwin") {
return
}
const installInfo = setupBrew("", "", "")
const installInfo = setupBrew("", "", process.arch)
await testBin("brew", ["--version"], installInfo?.binDir)
})
})
2 changes: 1 addition & 1 deletion src/ccache/__tests__/ccache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { InstallationInfo } from "../../utils/setup/setupBin"
jest.setTimeout(200000)
describe("setup-ccache", () => {
it("should setup ccache", async () => {
const installInfo = await setupCcache("", "", "")
const installInfo = await setupCcache("", "", process.arch)

await testBin("ccache", ["--version"], (installInfo as InstallationInfo | undefined)?.binDir)
})
Expand Down
2 changes: 1 addition & 1 deletion src/chocolatey/__tests__/chocolatey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("setup-chocolatey", () => {
if (process.platform !== "win32") {
return
}
const { binDir } = (await setupChocolatey("", "", "")) as InstallationInfo
const { binDir } = (await setupChocolatey("", "", process.arch)) as InstallationInfo
await testBin("choco", ["--version"], binDir)
})
})
2 changes: 1 addition & 1 deletion src/conan/__tests__/conan.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { testBin } from "../../utils/tests/test-helpers"
jest.setTimeout(200000)
describe("setup-conan", () => {
it("should setup conan", async () => {
const installInfo = await setupConan("", "", "")
const installInfo = await setupConan("", "", process.arch)

await testBin("conan", ["--version"], installInfo.binDir)
})
Expand Down
2 changes: 1 addition & 1 deletion src/cppcheck/__tests__/cppcheck.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { InstallationInfo } from "../../utils/setup/setupBin"
jest.setTimeout(200000)
describe("setup-cppcheck", () => {
it("should setup cppcheck", async () => {
const installInfo = await setupCppcheck("", "", "")
const installInfo = await setupCppcheck("", "", process.arch)

await testBin("cppcheck", ["--version"], (installInfo as InstallationInfo | undefined)?.binDir)
})
Expand Down
2 changes: 1 addition & 1 deletion src/doxygen/__tests__/doxygen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { InstallationInfo } from "../../utils/setup/setupBin"
jest.setTimeout(200000)
describe("setup-doxygen", () => {
it("should setup doxygen", async () => {
const installInfo = await setupDoxygen("", "", "")
const installInfo = await setupDoxygen("", "", process.arch)

await testBin("doxygen", ["--version"], (installInfo as InstallationInfo | undefined)?.binDir)
})
Expand Down
2 changes: 1 addition & 1 deletion src/gcc/__tests__/gcc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { setupGcc } from "../gcc"
jest.setTimeout(200000)
describe("setup-gcc", () => {
it("should setup gcc", async () => {
const installInfo = await setupGcc("11", "", "")
const installInfo = await setupGcc("11", "", process.arch)

await testBin("g++", ["--version"], installInfo?.binDir)
})
Expand Down
2 changes: 1 addition & 1 deletion src/gcovr/__tests__/gcovr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { testBin } from "../../utils/tests/test-helpers"
jest.setTimeout(200000)
describe("setup-gcovr", () => {
it("should setup gcovr", async () => {
const installInfo = await setupGcovr("", "", "")
const installInfo = await setupGcovr("", "", process.arch)
await testBin("gcovr", ["--version"], installInfo.binDir)
})
})
2 changes: 1 addition & 1 deletion src/meson/__tests__/meson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { testBin } from "../../utils/tests/test-helpers"
jest.setTimeout(200000)
describe("setup-meson", () => {
it("should setup meson", async () => {
const installInfo = await setupMeson("", "", "")
const installInfo = await setupMeson("", "", process.arch)

await testBin("meson", ["--version"], installInfo.binDir)
})
Expand Down
2 changes: 1 addition & 1 deletion src/msvc/__tests__/msvc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("setup-msvc", () => {
if (process.platform !== "win32") {
return
}
await setupMSVC("2019", "", "")
await setupMSVC("2019", "", process.arch)

try {
await testBin("cl", [])
Expand Down
2 changes: 1 addition & 1 deletion src/opencppcoverage/__tests__/opencppcoverage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("setup-OpenCppCoverage", () => {
if (process.platform !== "win32") {
return
}
await setupOpencppcoverage("", "", "")
await setupOpencppcoverage("", "", process.arch)

await testBin("OpenCppCoverage")
})
Expand Down
2 changes: 1 addition & 1 deletion src/utils/setup/setupBrewPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let hasBrew = false
/** A function that installs a package using brew */
export function setupBrewPack(name: string, version?: string): InstallationInfo {
if (!hasBrew || which.sync("brew", { nothrow: true }) === null) {
setupBrew("", "", "")
setupBrew("", "", process.arch)
hasBrew = true
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/setup/setupChocoPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let hasChoco = false
/** A function that installs a package using choco */
export async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise<InstallationInfo> {
if (!hasChoco || which.sync("choco", { nothrow: true }) === null) {
await setupChocolatey("", "", "")
await setupChocolatey("", "", process.arch)
hasChoco = true
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/setup/setupPipPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function setupPipPack(name: string, version?: string) {
} else if (which.sync("pip", { nothrow: true }) !== null && (await isBinUptoDate("python", "3.0.0"))) {
pip = "pip"
} else {
await setupPython("3.x", "", "")
await setupPython("3.x", "", process.arch)
pip = "pip3"
}
}
Expand Down

0 comments on commit 3c2eaf1

Please sign in to comment.