ci: add verify-trim.py test script
authorVincent Fu <vincentfu@gmail.com>
Mon, 31 Mar 2025 14:01:34 +0000 (10:01 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 7 Apr 2025 14:54:38 +0000 (10:54 -0400)
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 <vincent.fu@samsung.com>
.github/workflows/qemu.yml
ci/actions-full-test.sh
t/run-fio-tests.py

index db71fbe8171e8480e320179b012790b9057e319a..16787018d035eaf1d5502ab948260221998d4035 100644 (file)
@@ -49,6 +49,10 @@ jobs:
               -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
             test_cmd: "nvme fdp status /dev/ng0n1 && python3 t/nvmept_fdp.py --fio ./fio --dut /dev/ng0n1"
             extra_pkgs: "nvme-cli"
+          - config: verify-trim
+            device:
+            test_cmd: "python3 t/verify-trim.py"
+            extra_pkgs: sg3-utils
           - config: ZBD
             device:
             test_cmd: "./t/zbd/run-tests-against-nullb"
index 854788c1ac91f9f9c3b44132a9a2d7789faa322e..4222a21aab3c0f7f9b7de6252f719e43ee702c6a 100755 (executable)
@@ -10,10 +10,12 @@ main() {
 
     echo "Running long running tests..."
     export PYTHONUNBUFFERED="TRUE"
+    # We can't load modules so skip 1018 which requires null_blk
     skip=(
         6
        1007
        1008
+       1018
     )
     args=(
         --debug
index 7ceda067a879890d6e755678ead030378070e6b9..b4863297666941f5250526aa1052db68c3aa620e 100755 (executable)
@@ -1115,6 +1115,14 @@ TEST_LIST = [
         'success':          SUCCESS_LONG,
         'requirements':     [],
     },
+    {
+        'test_id':          1018,
+        'test_class':       FioExeTest,
+        'exe':              't/verify-trim.py',
+        'parameters':       ['-f', '{fio_path}'],
+        'success':          SUCCESS_DEFAULT,
+        'requirements':     [Requirements.linux],
+    },
 ]