Project

General

Profile

Actions

Feature #14993

closed

zfs-tests: Move platform independent tests to a shared runfile

Added by Toomas Soome 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Note, this update is based on OpenZFS patch 5e74ac51c70ee978e338e828f05377092d0637d4, but not fully - we do not implement (yet?) the OS identifier support in patch names.

    Tests that aren't limited to running on Linux can be moved to a common
    runfile to be shared with other platforms.

    The test runner and wrapper script are enhanced to allow specifying
    multiple runfiles as a comma-separated list. The default runfiles are
    now "common.run,PLATFORM.run" where PLATFORM is determined at run time.

Testing done: run updated zfs-tests.
Example (bootfs is declared as [tests/functional/bootfs:illumos]) :

tsoome@test:~$ /opt/zfs-tests/bin/zfstest -T bootfs,compression
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/setup (run as root) [00:00] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_001_pos (run as root) [00:08] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_002_neg (run as root) [00:06] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_003_pos (run as root) [00:16] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_004_neg (run as root) [00:07] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_005_neg (run as root) [02:30] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_006_pos (run as root) [00:34] [FAIL]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_007_pos (run as root) [00:06] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/bootfs_008_pos (run as root) [00:15] [PASS]
Test (illumos): /opt/zfs-tests/tests/functional/bootfs/cleanup (run as root) [00:01] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/setup (run as root) [00:08] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/compress_001_pos (run as root) [01:27] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/compress_002_pos (run as root) [01:27] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/compress_003_pos (run as root) [02:27] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/compress_004_pos (run as root) [17:48] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/l2arc_compressed_arc (run as root) [02:04] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/l2arc_compressed_arc_disabled (run as root) [02:00] [PASS]
Test: /opt/zfs-tests/tests/functional/compression/cleanup (run as root) [00:06] [PASS]

Results Summary
PASS      17
FAIL       1

Running Time:   00:32:00
Percent passed: 94.4%
Log directory:  /var/tmp/test_results/20221011T114245
tsoome@test:~$


Related issues

Related to illumos gate - Feature #15005: Tests for btree implementation used by range treesClosedToomas Soome

Actions
Actions #1

Updated by Electric Monk 2 months ago

  • Gerrit CR set to 2374
Actions #2

Updated by Toomas Soome 2 months ago

  • Description updated (diff)
Actions #3

Updated by Toomas Soome 2 months ago

  • Related to Feature #15005: Tests for btree implementation used by range trees added
Actions #4

Updated by Toomas Soome about 2 months ago

  • Description updated (diff)
Actions #5

Updated by Electric Monk about 1 month ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit b8052df9f609edb713f6828c9eecc3d7be19dfb3

commit  b8052df9f609edb713f6828c9eecc3d7be19dfb3
Author: Ryan Moeller <ryan@iXsystems.com>
Date:   2022-10-21T17:21:39.000Z

    14993 zfs-tests: Move platform independent tests to a shared runfile
    Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF