From 34a2dfeccc0fa8b3378391e2515f4fee0612fe1c Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Wed, 27 Sep 2023 21:35:22 -0700 Subject: [PATCH] enable tmt tests Signed-off-by: Carlos Rodriguez-Fernandez --- .fmf/version | 1 + plans/smoke.fmf | 8 ++ tests/basics.fmf | 113 ++++++++++++++++++++++++ tests/main.fmf | 2 + tests/versions.fmf | 215 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 339 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/smoke.fmf create mode 100644 tests/basics.fmf create mode 100644 tests/main.fmf create mode 100644 tests/versions.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..d707110 --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,8 @@ +summary: Smoke tests +discover: + how: fmf + test: + - /versions + - /basics +execute: + how: tmt diff --git a/tests/basics.fmf b/tests/basics.fmf new file mode 100644 index 0000000..ff6c030 --- /dev/null +++ b/tests/basics.fmf @@ -0,0 +1,113 @@ +/biolatency: + summary: basic tracing + test: "bpf-biolatency 1 1" + +/biopattern: + summary: basic tracing + test: "bpf-biopattern 1 1" + +/biosnoop: + summary: basic tracing + test: "bpf-biosnoop 1" + enabled: false + +/biostacks: + summary: basic tracing + test: "bpf-biostacks 1" + enabled: false + +/bitesize: + summary: basic tracing + test: "bpf-bitesize 1 1" + +/cachestat: + summary: basic tracing + test: "bpf-cachestat 1 1" + enabled: false + +/cpudist: + summary: basic tracing + test: "bpf-cpudist 1 1" + +/cpufreq: + summary: basic tracing + test: "bpf-cpufreq -d 1" + enabled: false + +/drsnoop: + summary: basic tracing + test: "bpf-drsnoop -d 1" + +/filetop: + summary: basic tracing + test: "bpf-filetop 1 1" + +/fsdist: + summary: basic tracing + test: "bpf-fsdist -t $(df -T $(pwd) | tail -1 | awk '{print $2}') 1 1" + +/fsslower: + summary: basic tracing + test: "bpf-fsslower -t $(df -T $(pwd) | tail -1 | awk '{print $2}') -d 1" + +/funclatency: + summary: basic tracing + test: "bpf-funclatency -i 1 -d 1 vfs_read" + +/hardirqs: + summary: basic tracing + test: "bpf-hardirqs 1 1" + +/klockstat: + summary: basic tracing + test: "bpf-klockstat -d 1" + +/llcstat: + summary: basic tracing + test: "bpf-llcstat 1" + +/offcputime: + summary: basic tracing + test: "bpf-offcputime 1" + +/opensnoop: + summary: basic tracing + test: "bpf-opensnoop -x -d 1" + enabled: false + +/readahead: + summary: basic tracing + test: "bpf-readahead -d 1" + enabled: false + +/runqlat: + summary: basic tracing + test: "bpf-runqlat 1 1" + +/runqlen: + summary: basic tracing + test: "bpf-runqlen 1 1" + +/slabratetop: + summary: basic tracing + test: "bpf-slabratetop 1 1" + +/softirqs: + summary: basic tracing + test: "bpf-softirqs 1 1" + +/syscount: + summary: basic tracing + test: "bpf-syscount -d 1 -T 1" + +/tcprtt: + summary: basic tracing + test: "bpf-tcprtt -d 1 -i 1" + +/tcpsynbl: + summary: basic tracing + test: "bpf-tcpsynbl 1 1" + +/vfsstat: + summary: basic tracing + test: "bpf-vfsstat 1 1" diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..5e0250c --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,2 @@ +require: + - libbpf-tools diff --git a/tests/versions.fmf b/tests/versions.fmf new file mode 100644 index 0000000..8956b9a --- /dev/null +++ b/tests/versions.fmf @@ -0,0 +1,215 @@ +/bindsnoop: + summary: get version + test: "bpf-bindsnoop -V" + +/biolatency: + summary: get version + test: "bpf-biolatency -V" + +/biopattern: + summary: get version + test: "bpf-biopattern -V" + +/biosnoop: + summary: get version + test: "bpf-biosnoop -V" + +/biostacks: + summary: get version + test: "bpf-biostacks -V" + +/bitesize: + summary: get version + test: "bpf-bitesize -V" + +/btrfsdist: + summary: get version + test: "bpf-btrfsdist -V" + +/btrfsslower: + summary: get version + test: "bpf-btrfsslower -V" + +/cachestat: + summary: get version + test: "bpf-cachestat -V" + +/cpudist: + summary: get version + test: "bpf-cpudist -V" + +/cpufreq: + summary: get version + test: "bpf-cpufreq -V" + +/drsnoop: + summary: get version + test: "bpf-drsnoop -V" + +/execsnoop: + summary: get version + test: "bpf-execsnoop -V" + +/exitsnoop: + summary: get version + test: "bpf-exitsnoop -V" + +/ext4dist: + summary: get version + test: "bpf-ext4dist -V" + +/ext4slower: + summary: get version + test: "bpf-ext4slower -V" + +/filelife: + summary: get version + test: "bpf-filelife -V" + +/filetop: + summary: get version + test: "bpf-filetop -V" + +/fsdist: + summary: get version + test: "bpf-fsdist -V" + +/fsslower: + summary: get version + test: "bpf-fsslower -V" + +/funclatency: + summary: get version + test: "bpf-funclatency -V" + +/gethostlatency: + summary: get version + test: "bpf-gethostlatency -V" + +/hardirqs: + summary: get version + test: "bpf-hardirqs -V" + +/killsnoop: + summary: get version + test: "bpf-killsnoop -V" + +/klockstat: + summary: get version + test: "bpf-klockstat -V" + +/ksnoop: + summary: get version + test: "bpf-ksnoop -V" + +/llcstat: + summary: get version + test: "bpf-llcstat -V" + +/mdflush: + summary: get version + test: "bpf-mdflush -V" + +/mountsnoop: + summary: get version + test: "bpf-mountsnoop -V" + +/nfsdist: + summary: get version + test: "bpf-nfsdist -V" + +/nfsslower: + summary: get version + test: "bpf-nfsslower -V" + +/numamove: + summary: get version + test: "bpf-numamove -V" + +/offcputime: + summary: get version + test: "bpf-offcputime -V" + +/oomkill: + summary: get version + test: "bpf-oomkill -V" + +/opensnoop: + summary: get version + test: "bpf-opensnoop -V" + +/readahead: + summary: get version + test: "bpf-readahead -V" + +/runqlat: + summary: get version + test: "bpf-runqlat -V" + +/runqlen: + summary: get version + test: "bpf-runqlen -V" + +/runqslower: + summary: get version + test: "bpf-runqslower -V" + +/sigsnoop: + summary: get version + test: "bpf-sigsnoop -V" + +/slabratetop: + summary: get version + test: "bpf-slabratetop -V" + +/softirqs: + summary: get version + test: "bpf-softirqs -V" + +/solisten: + summary: get version + test: "bpf-solisten -V" + +/statsnoop: + summary: get version + test: "bpf-statsnoop -V" + +/syscount: + summary: get version + test: "bpf-syscount -V" + +/tcpconnect: + summary: get version + test: "bpf-tcpconnect -V" + +/tcpconnlat: + summary: get version + test: "bpf-tcpconnlat -V" + +/tcplife: + summary: get version + test: "bpf-tcplife -V" + +/tcprtt: + summary: get version + test: "bpf-tcprtt -V" + +/tcpsynbl: + summary: get version + test: "bpf-tcpsynbl -V" + +/tcptracer: + summary: get version + test: "bpf-tcptracer -V" + +/vfsstat: + summary: get version + test: "bpf-vfsstat -V" + +/xfsdist: + summary: get version + test: "bpf-xfsdist -V" + +/xfsslower: + summary: get version + test: "bpf-xfsslower -V"