acerv / runltp-ng-original

Next-gen LTP runner
GNU General Public License v2.0
2 stars 3 forks source link

Add test command line and duration to verbose output #18

Closed pevik closed 1 year ago

pevik commented 1 year ago

Current output in 3dd3ae5816ec6cdf7308f46d2e3b36ccbd1bcd4c:

# runltp-ng -r net.nfs -v
Host information

    System: Linux
    Node: debian-testing-btrfs
    Kernel Release: 5.19.0-2-amd64
    Kernel Version: #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1 (2022-09-24)
    Machine Architecture: x86_64
    Processor: 

    Temporary directory: /tmp/runltp.root/tmpd79zli5i

Connecting to SUT: host
Downloading suite: /opt/ltp/runtest/net.nfs
Starting suite: net.nfs
running nfs3_01
nfs01 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
nfs01 1 TINFO: add local addr 10.0.0.2/24
nfs01 1 TINFO: add local addr fd00:1:1:1::2/64
nfs01 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
nfs01 1 TINFO: add remote addr 10.0.0.1/24
nfs01 1 TINFO: add remote addr fd00:1:1:1::1/64
nfs01 1 TINFO: Network config (local -- remote):
nfs01 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1
nfs01 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24
nfs01 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64
nfs01 1 TINFO: ceiling LTP_TIMEOUT_MUL to 11
nfs01 1 TINFO: timeout per run is 0h 55m 0s
nfs01 1 TINFO: mount.nfs: (linux nfs-utils 1.3.3)
nfs01 1 TINFO: setup NFSv3, socket type udp
nfs01 1 TINFO: Mounting NFS: mount -v -t nfs -o proto=udp,vers=3 10.0.0.2:/tmp/LTP_nfs01.WiLlSnXh8w/3/udp /tmp/LTP_nfs01.WiLlSnXh8w/3/0
mount.nfs: trying 10.0.0.2 prog 100003 vers 3 prot UDP port 2049
mount.nfs: trying 10.0.0.2 prog 100005 vers 3 prot UDP port 47843
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified
mount.nfs: timeout set for Wed Nov  2 15:22:28 2022
mount.nfs: trying text-based options 'proto=udp,vers=3,addr=10.0.0.2'
mount.nfs: prog 100003, trying vers=3, prot=17
mount.nfs: prog 100005, trying vers=3, prot=17
nfs01 1 TCONF: UDP support disabled with the kernel config NFS_DISABLE_UDP_SUPPORT?
TINFO: Cleaning up testcase

Summary:
passed   0
failed   0
broken   0
skipped  1
warnings 0
running nfs3t_01

It'd be great to have 1) command line 2) verbose output 3) separate each test somehow, .e.g.:

Starting suite: net.nfs
* running nfs3_01
cmd: nfs01.sh -v 3 -t udp
nfs01 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
nfs01 1 TINFO: add local addr 10.0.0.2/24
nfs01 1 TINFO: add local addr fd00:1:1:1::2/64
...

Summary:
passed   0
failed   0
broken   0
skipped  1
warnings 0

duration: 20s

* running nfs3t_01
acerv commented 1 year ago

Fixed in https://github.com/acerv/runltp-ng/commit/9b1f054a44b76224f29832b5f59c3e43e642987f