Reg: sys/geom/class/eli/misc_test:preserve_disk_props skipped

From: Sankar Raj, HareshX <hareshx.sankar.raj_at_intel.com>
Date: Tue, 15 Apr 2025 14:24:40 UTC
Hi All,

We are from Intel - and we are trying to run the kyua framework tests with both software crypto acceleration providers and also Intel QAT HW.
We want a clarification on the kyua tests - sys/geom/class/eli/misc_test: preserve_disk_props  which is by default skipped and requires configuration property 'disks'.
We are not sure of how to set this property and get this test unskipped. Could someone please guide us in this regard?

Steps to reproduce the skipped behavior:

cd /usr/tests
kyua test sys/geom/class/eli/misc_test
sys/geom/class/eli/misc_test:physpath  ->  passed  [0.070s]
sys/geom/class/eli/misc_test:preserve_disk_props  ->  skipped: Required configuration property 'disks' not defined  [0.001s]
sys/geom/class/eli/misc_test:preserve_props  ->  passed  [0.040s]
sys/geom/class/eli/misc_test:unaligned_io  ->  passed  [2.935s]

Results file id is usr_tests.20250403-124541-697370
Results saved to /root/.kyua/store/results.usr_tests.20250403-124541-697370.db

3/4 passed (0 broken, 0 failed, 1 skipped)

Below log is from kyua report of the whole test list sys/geom/class/eli/:

kyua report --results-filter  skipped --results-file /usr/tests --verbose
===> Execution context
Current directory: /usr/tests
Environment variables:
    BLOCKSIZE=K
    ENV=/root/.shrc
    HOME=/root
    LANG=C.UTF-8
    LOGNAME=root
    MAIL=/var/mail/root
    MM_CHARSET=UTF-8
    OLDPWD=/root/kyua_executor
    PAGER=less
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
    PWD=/usr/tests
    SHELL=/bin/sh
    SSH_CLIENT=10.94.154.238 62938 22
    SSH_CONNECTION=10.94.154.238 62938 10.237.214.23 22
    SSH_TTY=/dev/pts/0
    TERM=xterm
    USER=root
===> sys/geom/class/eli/misc_test:preserve_disk_props
Result:     skipped: Required configuration property 'disks' not defined
Start time: 2025-02-15T06:08:08.886500Z
End time:   2025-02-15T06:08:08.887832Z
Duration:   0.001s
Metadata:
    allowed_architectures is empty
    allowed_platforms is empty
    description = geli should preserve properties for disks
    has_cleanup = true
    is_exclusive = false
    required_configs = disks
    required_disk_space = 0
    required_files is empty
    required_memory = 0
    required_programs is empty
    required_user = root
    timeout = 15
===> Skipped tests
sys/geom/class/eli/misc_test:preserve_disk_props  ->  skipped: Required configuration property 'disks' not defined  [0.001s]
===> Summary
Results read from /root/.kyua/store/results.usr_tests.20250215-060555-627469.db
Test cases: 37 total, 1 skipped, 0 expected failures, 1 broken, 0 failed
Start time: 2025-02-15T06:05:55.728318Z
End time:   2025-02-15T06:09:23.253538Z
Total time: 206.250s

We tried to create virtual disks using dd command and gave the property in the kyua.conf file as below:
cat /etc/kyua.conf
[eli]
disks = ["/dev/md0", "/dev/md1", "/dev/md2"]


We also tried to export DISKS parameter like below.

export DISKS="/dev/md0"

Example:

Creating a dummy disk for the test:

dd if=/dev/zero of=/tmp/dummy_disk.img bs=1M count=10
mdconfig -a -t vnode -f /tmp/dummy_disk.img -u 0

Setting disks property and running test:
export DISKS="/dev/md0" or Having disks set in kyua.conf
kyua test sys/geom/class/eli/misc_test

Cleanup:

mdconfig -d -u 0



We still got the tests to skipped. Could you please help in guiding us to run the tests without skipping them.
Any required documentation on the same would be helpful. Thanks in advance.

Kind Regards,
Haresh
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.