From f7275c0e0db0eaf281162efc41c43491b51cc767 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Wed, 22 Feb 2023 15:37:22 +0100 Subject: [PATCH] Update non regression tests Signed-off-by: Sebastien GODARD --- tests/01485 | 1 + tests/02530 | 1 + tests/03140 | 1 + tests/04625 | 1 + tests/05600 | 1 + tests/TLIST | 7 +++++++ 6 files changed, 12 insertions(+) create mode 100644 tests/01485 create mode 100644 tests/02530 create mode 100644 tests/03140 create mode 100644 tests/04625 create mode 100644 tests/05600 diff --git a/tests/01485 b/tests/01485 new file mode 100644 index 0000000..b215382 --- /dev/null +++ b/tests/01485 @@ -0,0 +1 @@ +LC_ALL=C ./sar --dec=A 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/02530 b/tests/02530 new file mode 100644 index 0000000..46bb241 --- /dev/null +++ b/tests/02530 @@ -0,0 +1 @@ +LC_ALL=C ./iostat --dec=A 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/03140 b/tests/03140 new file mode 100644 index 0000000..0682c46 --- /dev/null +++ b/tests/03140 @@ -0,0 +1 @@ +LC_ALL=C ./mpstat --dec=A 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/04625 b/tests/04625 new file mode 100644 index 0000000..3059012 --- /dev/null +++ b/tests/04625 @@ -0,0 +1 @@ +LC_ALL=C ./cifsiostat --dec=A 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/05600 b/tests/05600 new file mode 100644 index 0000000..4c12d30 --- /dev/null +++ b/tests/05600 @@ -0,0 +1 @@ +LC_ALL=C ./pidstat --dec=A 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/TLIST b/tests/TLIST index 71e3ad2..f40b2e0 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -300,6 +300,7 @@ NOTES: 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 01480 LC_ALL=C ./sar -A -f tests/data-small_ust.tmp 2>&1 | grep "Invalid data" >/dev/null +01485 LC_ALL=C ./sar --dec=A 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 @@ -424,6 +425,7 @@ NOTES: 02515 LC_ALL=C ./iostat -H 2>&1 | grep "Usage:" >/dev/null 02520 LC_ALL=C ./iostat -j FOObar 2>&1 | grep "Invalid" >/dev/null 02525 LC_ALL=C ./iostat -p ALL +f tests/root/foo 2>&1 | grep "Usage:" >/dev/null +02530 LC_ALL=C ./iostat --dec=A 2>&1 | grep "Usage:" >/dev/null ===== Playing again with iostat 02600 LC_ALL=C TZ=GMT ./iostat -ym 1 2 > tests/out.iostat-ym.tmp @@ -488,6 +490,7 @@ NOTES: 03125 LC_ALL=C ./mpstat --dec=3 2>&1 | grep "Usage:" >/dev/null 03130 LC_ALL=C ./mpstat -N -1 2>&1 | grep "Usage:" >/dev/null 03135 LC_ALL=C ./mpstat -P 16 2>&1 | grep "Usage:" >/dev/null +03140 LC_ALL=C ./mpstat --dec=A 2>&1 | grep "Usage:" >/dev/null ===== tapestat: Basic tests 04000 LC_ALL=C TZ=GMT ./tapestat > tests/out.tapestat.tmp @@ -519,6 +522,7 @@ NOTES: 04610 LC_ALL=C ./cifsiostat 0 2 2>&1 | grep "Usage:" >/dev/null 04615 LC_ALL=C ./cifsiostat 2 0 2>&1 | grep "Usage:" >/dev/null 04620 LC_ALL=C ./cifsiostat 2 2 2 2>&1 | grep "Usage:" >/dev/null +04625 LC_ALL=C ./cifsiostat --dec=A 2>&1 | grep "Usage:" >/dev/null ===== pidstat: Basic tests 05000 LC_ALL=C TZ=GMT ./pidstat > tests/out.pidstat.tmp @@ -570,6 +574,9 @@ NOTES: 05450 LC_ALL=C TZ=GMT ./pidstat 2 6 -t -e sleep 3 > tests/out.pidstat-e.tmp 05452 LC_ALL=C TZ=GMT ./pidstat -e sleep 2 > tests/out2.pidstat-e.tmp +===== Test pidstat error cases +05600 LC_ALL=C ./pidstat --dec=A 2>&1 | grep "Usage:" >/dev/null + ===== Tests to be done at the very end 08900 cat tests/TLIST | grep ^0 | awk '{print $1}' > tests/out.list1.tmp (cd tests && ls -1 0* > out.list2.tmp) -- 2.40.0