test: pass the ubuntu version in gcc tests

This commit is contained in:
Amin Yahyaabadi 2022-11-20 17:51:40 -08:00
parent 44b95bad75
commit fd436d2ed1
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Setting up a **cross-platform** environment for building and testing C++/C proje
| cache | cppcache |
| documentation | doxygen, graphviz |
| coverage | gcovr, opencppcoverage, kcov |
| other | python, sevenzip |
| other | python, powershell, sevenzip |
`setup-cpp` automatically installs the dependencies above tools if needed for the selected tool (e.g., `python` is required for `conan`).

View File

@ -4,6 +4,7 @@ import { getVersion } from "../../versions/versions"
import { join, addExeExt } from "patha"
import execa from "execa"
import { chmodSync } from "fs"
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
jest.setTimeout(3000000)
describe("setup-gcc", () => {
@ -13,7 +14,7 @@ describe("setup-gcc", () => {
})
it("should setup gcc", async () => {
const version = getVersion("gcc", undefined)
const version = getVersion("gcc", undefined, await ubuntuVersion())
const installInfo = await setupGcc(version, directory, process.arch)
let gpp = "g++"