mirror of https://github.com/aminya/setup-cpp
test: pass the ubuntu version in gcc tests
This commit is contained in:
parent
44b95bad75
commit
fd436d2ed1
|
@ -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`).
|
||||
|
||||
|
|
|
@ -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++"
|
||||
|
|
Loading…
Reference in New Issue