Skip to content

Commit f18c2fd

Browse files
committed
ci: add verify-trim.py test script
On GitHub Actions we cannot insert kernel modules, so skip this script on tests that run with pull requests and after every push. Instead run this test with our nightly tests that run in a QEMU environment. Signed-off-by: Vincent Fu <[email protected]>
1 parent 4bc702c commit f18c2fd

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.github/workflows/qemu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
-device nvme-ns,id=nvm-1,drive=nvm-1,bus=nvme0,nsid=1,logical_block_size=4096,physical_block_size=4096,fdp.ruhs=0-63
5050
test_cmd: "nvme fdp status /dev/ng0n1 && python3 t/nvmept_fdp.py --fio ./fio --dut /dev/ng0n1"
5151
extra_pkgs: "nvme-cli"
52+
- config: verify-trim
53+
device:
54+
test_cmd: "python3 t/verify-trim.py"
55+
extra_pkgs: sg3-utils
5256
- config: ZBD
5357
device:
5458
test_cmd: "./t/zbd/run-tests-against-nullb"

ci/actions-full-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ main() {
1010

1111
echo "Running long running tests..."
1212
export PYTHONUNBUFFERED="TRUE"
13+
# We can't load modules so skip 1018 which requires null_blk
1314
skip=(
1415
6
1516
1007
1617
1008
18+
1018
1719
)
1820
args=(
1921
--debug

t/run-fio-tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,14 @@ def check_result(self):
11151115
'success': SUCCESS_LONG,
11161116
'requirements': [],
11171117
},
1118+
{
1119+
'test_id': 1018,
1120+
'test_class': FioExeTest,
1121+
'exe': 't/verify-trim.py',
1122+
'parameters': ['-f', '{fio_path}'],
1123+
'success': SUCCESS_DEFAULT,
1124+
'requirements': [Requirements.linux],
1125+
},
11181126
]
11191127

11201128

0 commit comments

Comments
 (0)