From 80f21f70021687c131797c9d12b32cb163c041f5 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Wed, 14 Jul 2021 11:49:52 +0200 Subject: [PATCH] simtest: Add new iostat non-regression test Add a test using a whole device's UUID on iostat command line. Signed-off-by: Sebastien GODARD --- tests/02665 | 4 ++++ tests/TLIST | 1 + tests/expected.iostat-jUUID-list2 | 6 ++++++ 3 files changed, 11 insertions(+) create mode 100644 tests/02665 create mode 100644 tests/expected.iostat-jUUID-list2 diff --git a/tests/02665 b/tests/02665 new file mode 100644 index 0000000..02c6aae --- /dev/null +++ b/tests/02665 @@ -0,0 +1,4 @@ +rm -f tests/root +ln -s root1 tests/root +# 12345678-abcd-98ef-8521-7539adfbaf90 is a whole device here +LC_ALL=C TZ=GMT ./iostat -d -j UUID 12345678-abcd-98ef-8521-7539adfbaf90 > tests/out.iostat-jUUID-list2.tmp && diff -u tests/expected.iostat-jUUID-list2 tests/out.iostat-jUUID-list2.tmp diff --git a/tests/TLIST b/tests/TLIST index e3626c0..382e1f4 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -363,6 +363,7 @@ NOTES: 02640 LC_ALL=C TZ=GMT ./iostat -dN -p ALL > tests/out.iostat-N.tmp 02650 LC_ALL=C TZ=GMT ./iostat -d -j LABEL OS SYSTEM 1 2 > tests/out.iostat-jLABEL-list.tmp 02660 LC_ALL=C TZ=GMT ./iostat -dxs -j UUID 2578463f-6947-48c7-8b09-876a4145cfb1 1 2 > tests/out.iostat-jUUID-list.tmp +02665 LC_ALL=C TZ=GMT ./iostat -d -j UUID 12345678-abcd-98ef-8521-7539adfbaf90 > tests/out.iostat-jUUID-list2.tmp 02670 LC_ALL=C TZ=GMT ./iostat -g total sda -g foo 1 2 > tests/out.iostat-g2.tmp 02680 LC_ALL=C TZ=GMT ./iostat -g total ALL 1 2 > tests/out.iostat-gALL.tmp 02690 LC_ALL=C TZ=GMT ./iostat -g total -p ALL 1 2 > tests/out.iostat-gpALL.tmp diff --git a/tests/expected.iostat-jUUID-list2 b/tests/expected.iostat-jUUID-list2 new file mode 100644 index 0000000..b0850cd --- /dev/null +++ b/tests/expected.iostat-jUUID-list2 @@ -0,0 +1,6 @@ +Linux 1.2.3-TEST (SYSSTAT.TEST) 01/01/70 _x86_64_ (9 CPU) + + tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd Device + 8.59 222.14 57.08 0.00 1597749 410544 0 12345678-abcd-98ef-8521-7539adfbaf90 + + -- 2.40.0