]> granicus.if.org Git - sysstat/commitdiff
simtest: Add new iostat non-regression test
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 14 Jul 2021 09:49:52 +0000 (11:49 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 14 Jul 2021 09:49:52 +0000 (11:49 +0200)
Add a test using a whole device's UUID on iostat command line.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
tests/02665 [new file with mode: 0644]
tests/TLIST
tests/expected.iostat-jUUID-list2 [new file with mode: 0644]

diff --git a/tests/02665 b/tests/02665
new file mode 100644 (file)
index 0000000..02c6aae
--- /dev/null
@@ -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
index e3626c02b6233cf706ffa538aa387f39eda35d5d..382e1f447a72396542f19c635d049032f665cd59 100644 (file)
@@ -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 (file)
index 0000000..b0850cd
--- /dev/null
@@ -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
+
+