From dee4ef17cd6d32e3b2e1aee8af5ccaa1c91b4ed6 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 7 Nov 2020 09:55:17 +0100 Subject: [PATCH] Update non regression tests Add new non regression test for sadf. Update non regression test for mpstat. Signed-off-by: Sebastien GODARD --- tests/01470 | 1 + tests/TLIST | 1 + tests/expected.mpstat-T | 4 ++-- .../sys/devices/system/cpu/cpu2/topology/physical_package_id | 2 +- .../sys/devices/system/cpu/cpu6/topology/physical_package_id | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 tests/01470 diff --git a/tests/01470 b/tests/01470 new file mode 100644 index 0000000..5715668 --- /dev/null +++ b/tests/01470 @@ -0,0 +1 @@ +LC_ALL=C ./sadf -x -j tests/data.tmp 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/TLIST b/tests/TLIST index 3922c4a..099f2e8 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -214,6 +214,7 @@ NOTES: 01440 LC_ALL=C TZ=GMT ./sar --unix_time=123456789 2>&1 | grep "Please check" >/dev/null 01450 LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.6 2>&1 | grep "cannot read the format of this file" >/dev/null 01460 LC_ALL=C ./sar -q FOO 2>&1 | grep "Usage:" >/dev/null +01470 LC_ALL=C ./sadf -x -j tests/data.tmp 2>&1 | grep "Usage:" >/dev/null ===== Specific tests for sensors statistics (basic sensor output already tested using data-11.6.5 conversion) 01500 LC_ALL=C TZ=GMT ./sadf -d tests/data-11.6.5.tmp -- -m FAN,IN,TEMP > tests/out.data-11.6.5-sadf-d.tmp diff --git a/tests/expected.mpstat-T b/tests/expected.mpstat-T index f42aced..6e30fcc 100644 --- a/tests/expected.mpstat-T +++ b/tests/expected.mpstat-T @@ -4,11 +4,11 @@ Linux 1.2.3-TEST (SYSSTAT.TEST) 01/01/70 _x86_64_ (9 CPU) 00:00:01 all 2.15 12.50 1.84 0.12 0.34 0.19 0.00 0.00 0.00 82.88 00:00:01 0 0 0 0 2.71 0.03 2.16 0.00 0.32 0.64 0.00 0.00 0.00 94.14 00:00:01 1 1 0 1 2.85 0.00 4.28 0.00 0.68 0.19 0.00 0.00 0.00 91.99 -00:00:01 2 2 0 0 2.25 0.03 1.51 0.68 0.23 0.13 0.00 0.00 0.00 95.18 +00:00:01 2 2 4 0 2.25 0.03 1.51 0.68 0.23 0.13 0.00 0.00 0.00 95.18 00:00:01 3 3 0 1 0.00 99.55 0.06 0.00 0.32 0.06 0.00 0.00 0.00 0.00 00:00:01 4 0 0 0 2.41 0.00 1.61 0.03 0.26 0.19 0.00 0.00 0.00 95.50 00:00:01 5 1 0 1 1.65 0.00 2.33 0.00 0.36 0.10 0.00 0.00 0.00 95.57 -00:00:01 6 2 0 0 2.41 0.00 2.03 0.16 0.48 0.10 0.00 0.00 0.00 94.82 +00:00:01 6 2 1 0 2.41 0.00 2.03 0.16 0.48 0.10 0.00 0.00 0.00 94.82 00:00:01 7 3 0 1 2.89 0.00 0.74 0.06 0.06 0.06 0.00 0.00 0.00 96.18 00:00:01 CPU CORE SOCK NODE %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle diff --git a/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id index 573541a..b8626c4 100644 --- a/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id +++ b/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id @@ -1 +1 @@ -0 +4 diff --git a/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id index 573541a..d00491f 100644 --- a/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id +++ b/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id @@ -1 +1 @@ -0 +1 -- 2.40.0