Skip to content

Commit 7e0eb80

Browse files
author
neil
committed
add tests
1 parent b4a63b6 commit 7e0eb80

File tree

10 files changed

+573
-0
lines changed

10 files changed

+573
-0
lines changed

.github/workflows/dragonflybsd.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
name: Test DragonflyBSD
3+
4+
on:
5+
workflow_dispatch:
6+
release:
7+
types: [published]
8+
push:
9+
branches:
10+
- '*'
11+
paths:
12+
- '**.sh'
13+
- '.github/workflows/dragonflybsd.yml'
14+
- '.github/workflows/nfs.yml'
15+
- '.github/workflows/sshfs.yml'
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
nfs:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
release: ["6.4.0", "6.4.1", "6.4.2"]
27+
arch: [""]
28+
runs: ["ubuntu-24.04"]
29+
30+
31+
uses: ./.github/workflows/nfs.yml
32+
with:
33+
runs: ${{ matrix.runs }}
34+
os: dragonflybsd
35+
release: ${{ matrix.release }}
36+
arch: ${{ matrix.arch }}
37+
38+
39+
40+

.github/workflows/freebsd.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
name: Test FreeBSD
3+
4+
on:
5+
workflow_dispatch:
6+
release:
7+
types: [published]
8+
push:
9+
branches:
10+
- '*'
11+
paths:
12+
- '**.sh'
13+
- '.github/workflows/freebsd.yml'
14+
- '.github/workflows/nfs.yml'
15+
- '.github/workflows/sshfs.yml'
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
testsshfs:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
release: ["13.3", "13.4", "13.5", "14.1", "14.2", "14.3", "15.0"]
27+
arch: ["aarch64", ""]
28+
runs: ["ubuntu-24.04"]
29+
30+
31+
uses: ./.github/workflows/sshfs.yml
32+
with:
33+
runs: ${{ matrix.runs }}
34+
os: freebsd
35+
release: ${{ matrix.release }}
36+
arch: ${{ matrix.arch }}
37+
38+
39+
testnfs:
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
release: ["12.4", "13.2", "13.3", "13.4", "13.5", "14.0", "14.1", "14.2", "14.3", "15.0"]
44+
arch: ["aarch64", ""]
45+
runs: ["ubuntu-24.04"]
46+
exclude:
47+
- release: 12.4
48+
arch: aarch64
49+
- release: 13.2
50+
arch: aarch64
51+
- release: 14.0
52+
arch: aarch64
53+
54+
uses: ./.github/workflows/nfs.yml
55+
with:
56+
runs: ${{ matrix.runs }}
57+
os: freebsd
58+
release: ${{ matrix.release }}
59+
arch: ${{ matrix.arch }}
60+

.github/workflows/netbsd.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
name: Test NetBSD
3+
4+
on:
5+
workflow_dispatch:
6+
release:
7+
types: [published]
8+
push:
9+
branches:
10+
- '*'
11+
paths:
12+
- '**.sh'
13+
- '.github/workflows/netbsd.yml'
14+
- '.github/workflows/nfs.yml'
15+
- '.github/workflows/sshfs.yml'
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
testsshfs:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
release: ["9.0", "9.1", "9.2", "9.3", "9.4", "10.0", "10.1"]
27+
arch: ["aarch64", ""]
28+
runs: ["ubuntu-24.04"]
29+
exclude:
30+
- release: "9.0"
31+
arch: aarch64
32+
- release: "9.1"
33+
arch: aarch64
34+
- release: "9.2"
35+
arch: aarch64
36+
- release: "9.3"
37+
arch: aarch64
38+
- release: "9.4"
39+
arch: aarch64
40+
41+
uses: ./.github/workflows/sshfs.yml
42+
with:
43+
runs: ${{ matrix.runs }}
44+
os: netbsd
45+
release: ${{ matrix.release }}
46+
arch: ${{ matrix.arch }}
47+
48+
49+
testnfs:
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
release: ["9.0", "9.1", "9.2", "9.3", "9.4", "10.0", "10.1"]
54+
arch: ["aarch64", ""]
55+
runs: ["ubuntu-24.04"]
56+
exclude:
57+
- release: "9.0"
58+
arch: aarch64
59+
- release: "9.1"
60+
arch: aarch64
61+
- release: "9.2"
62+
arch: aarch64
63+
- release: "9.3"
64+
arch: aarch64
65+
- release: "9.4"
66+
arch: aarch64
67+
68+
uses: ./.github/workflows/nfs.yml
69+
with:
70+
runs: ${{ matrix.runs }}
71+
os: netbsd
72+
release: ${{ matrix.release }}
73+
arch: ${{ matrix.arch }}
74+

.github/workflows/nfs.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: NFS
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
runs:
7+
description: "Runs on"
8+
required: false
9+
type: string
10+
os:
11+
description: "Test os"
12+
required: true
13+
type: string
14+
arch:
15+
description: "Test arch"
16+
required: true
17+
type: string
18+
release:
19+
description: "Test release"
20+
required: false
21+
type: string
22+
nic:
23+
description: "VM nic type"
24+
required: false
25+
type: string
26+
27+
28+
29+
jobs:
30+
testnfs:
31+
runs-on: ${{ inputs.runs }}
32+
name: Test nfs ${{ inputs.os }} ${{ inputs.arch }}
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Test
36+
id: test
37+
run: |
38+
set -ex
39+
sudo apt-get update && sudo apt-get --no-install-recommends -y install \
40+
curl axel screen \
41+
jq \
42+
zstd \
43+
ovmf \
44+
xz-utils \
45+
qemu-utils \
46+
ca-certificates \
47+
qemu-system-x86 \
48+
qemu-system-arm qemu-efi-aarch64 nfs-kernel-server rsync
49+
50+
#enable kvm for current runner
51+
sudo chmod 666 /dev/kvm
52+
53+
touch justcheck.txt
54+
55+
python anyvm.py --os "${{ inputs.os }}" --release "${{ inputs.release }}" --arch "${{ inputs.arch }}" -d -v "$(pwd):/mnt/host" --sshport 10022 --nc "${{ inputs.nc }}" --sync nfs
56+
# We use the ssh port as an alias to the vm, so we can use 'ssh $port' to login
57+
ssh 10022 ls /mnt/host
58+
59+
if ! ssh 10022 ls /mnt/host | grep justcheck.txt; then
60+
echo "file mount failed"
61+
exit 1
62+
fi
63+
64+
65+
66+
67+
68+

.github/workflows/omnios.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
name: Test OmniOS
3+
4+
on:
5+
workflow_dispatch:
6+
release:
7+
types: [published]
8+
push:
9+
branches:
10+
- '*'
11+
paths:
12+
- '**.sh'
13+
- '.github/workflows/omnios.yml'
14+
- '.github/workflows/nfs.yml'
15+
- '.github/workflows/sshfs.yml'
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
nfs:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
release: ["r151046", "r151048", "r151050", "r151052"]
27+
arch: [""]
28+
runs: ["ubuntu-24.04"]
29+
30+
31+
uses: ./.github/workflows/nfs.yml
32+
with:
33+
runs: ${{ matrix.runs }}
34+
os: omnios
35+
release: ${{ matrix.release }}
36+
arch: ${{ matrix.arch }}
37+
38+
39+
40+

.github/workflows/openbsd.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
2+
name: Test OpenBSD
3+
4+
on:
5+
workflow_dispatch:
6+
release:
7+
types: [published]
8+
push:
9+
branches:
10+
- '*'
11+
paths:
12+
- '**.sh'
13+
- '.github/workflows/openbsd.yml'
14+
- '.github/workflows/nfs.yml'
15+
- '.github/workflows/sshfs.yml'
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
testsshfs-old:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
release: ["7.3", "7.4", "7.5", "7.6"]
27+
arch: ["aarch64", ""]
28+
runs: ["ubuntu-24.04"]
29+
exclude:
30+
- release: 7.3
31+
arch: aarch64
32+
33+
34+
uses: ./.github/workflows/sshfs.yml
35+
with:
36+
runs: ${{ matrix.runs }}
37+
os: openbsd
38+
release: ${{ matrix.release }}
39+
arch: ${{ matrix.arch }}
40+
41+
42+
testnfs-old:
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
release: ["7.3", "7.4", "7.5", "7.6"]
47+
arch: ["aarch64", ""]
48+
runs: ["ubuntu-24.04"]
49+
exclude:
50+
- release: 7.3
51+
arch: aarch64
52+
53+
uses: ./.github/workflows/nfs.yml
54+
with:
55+
runs: ${{ matrix.runs }}
56+
os: openbsd
57+
release: ${{ matrix.release }}
58+
arch: ${{ matrix.arch }}
59+
60+
61+
testsshfs:
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
release: ["7.7", "7.8"]
66+
arch: ["aarch64", ""]
67+
runs: ["ubuntu-24.04"]
68+
69+
uses: ./.github/workflows/sshfs.yml
70+
with:
71+
runs: ${{ matrix.runs }}
72+
os: openbsd
73+
release: ${{ matrix.release }}
74+
arch: ${{ matrix.arch }}
75+
76+
testnfs:
77+
strategy:
78+
fail-fast: false
79+
matrix:
80+
release: ["7.7", "7.8"]
81+
arch: ["aarch64", ""]
82+
runs: ["ubuntu-24.04"]
83+
84+
uses: ./.github/workflows/nfs.yml
85+
with:
86+
runs: ${{ matrix.runs }}
87+
os: openbsd
88+
release: ${{ matrix.release }}
89+
arch: ${{ matrix.arch }}

0 commit comments

Comments
 (0)