Skip to content

Commit 927edb5

Browse files
committed
chore: add container-tests for fedora
1 parent a910f0d commit 927edb5

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

dev/container-tests/fedora.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
schemaVersion: 2.0.0
2+
3+
commandTests:
4+
- name: gcc compiler
5+
command: gcc
6+
args: ["--version"]
7+
expectedOutput: [".*gcc.*GCC.*"]
8+
- name: g++ compiler
9+
command: g++
10+
args: ["--version"]
11+
expectedOutput: [".*g\\+\\+.*GCC.*"]
12+
- name: cmake
13+
command: cmake
14+
args: ["--version"]
15+
expectedOutput: [".*cmake version.*"]
16+
- name: make
17+
command: make
18+
args: ["--version"]
19+
expectedOutput: [".*GNU Make.*"]
20+
- name: ninja
21+
command: ninja
22+
args: ["--version"]
23+
expectedOutput: [".*1.*"]
24+
- name: gcovr
25+
command: gcovr
26+
args: ["--version"]
27+
expectedOutput: [".*gcovr.*"]
28+
- name: ccache
29+
command: ccache
30+
args: ["--version"]
31+
expectedOutput: [".*ccache.*"]
32+
- name: doxygen
33+
command: doxygen
34+
args: ["--version"]
35+
expectedOutput: [".*1.*"]
36+
- name: cppcheck
37+
command: cppcheck
38+
args: ["--version"]
39+
expectedOutput: [".*Cppcheck.*"]
40+
41+
fileExistenceTests:
42+
- name: "vcpkg"
43+
path: "/root/vcpkg"
44+
shouldExist: true

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"build": "shx rm -rf dist/ && shx mkdir ./dist && run-p test.tsc build.parcel copy.matchers",
2121
"build.docker": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup_cpp .",
2222
"build.docker.arch": "pnpm build && docker build -f ./dev/docker/arch_node.dockerfile -t setup_cpp:arch .",
23+
"build.docker.fedora": "pnpm build && docker build -f ./dev/docker/fedora_node.dockerfile -t setup_cpp:fedora .",
2324
"build.docker.ubuntu": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup_cpp:ubuntu .",
2425
"build.parcel": "cross-env NODE_ENV=production parcel build --detailed-report",
2526
"bump": "ncu -u -x execa,numerous && pnpm update",
@@ -32,10 +33,12 @@
3233
"prepare": "npm run build",
3334
"start.docker": "docker run -t setup_cpp .",
3435
"start.docker.arch": "docker run -t setup_cpp:arch .",
36+
"start.docker.fedora": "docker run -t setup_cpp:fedora .",
3537
"start.docker.ubuntu": "docker run -t setup_cpp:ubuntu .",
3638
"test": "run-p test.format test.lint test.cspell test.tsc test.unit",
3739
"test.cspell": "cspell lint --no-progress --show-suggestions",
3840
"test.docker.arch": "docker build -f ./dev/docker/arch_node.dockerfile --target base -t setup_cpp:arch-base . && container-structure-test test --image setup_cpp:arch-base --config ./dev/container-tests/arch.yml",
41+
"test.docker.fedora": "docker build -f ./dev/docker/fedora_node.dockerfile --target base -t setup_cpp:fedora-base . && container-structure-test test --image setup_cpp:fedora-base --config ./dev/container-tests/fedora.yml",
3942
"test.docker.ubuntu": "docker build -f ./dev/docker/ubuntu_node.dockerfile --target base -t setup_cpp:ubuntu-base . && container-structure-test test --image setup_cpp:ubuntu-base --config ./dev/container-tests/ubuntu.yml",
4043
"test.format": "prettier . --check",
4144
"test.lint": "eslint .",

0 commit comments

Comments
 (0)