From: Sebastien GODARD Date: Sat, 12 Dec 2020 08:30:44 +0000 (+0100) Subject: Add new non regression tests X-Git-Tag: v12.5.2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=568a14b3a4dd5e5cfb6e7395883d2be99fc3c136;p=sysstat Add new non regression tests Signed-off-by: Sebastien GODARD --- diff --git a/tests/00655 b/tests/00655 new file mode 100644 index 0000000..de47058 --- /dev/null +++ b/tests/00655 @@ -0,0 +1 @@ +LC_ALL=C TZ=GMT ./sadf -H tests/data-12.0.0 > tests/out.data-12.0.0-H.tmp && diff -u tests/expected.data-12.0.0-H tests/out.data-12.0.0-H.tmp diff --git a/tests/00670 b/tests/00670 new file mode 100644 index 0000000..77912b0 --- /dev/null +++ b/tests/00670 @@ -0,0 +1,4 @@ +rm -f tests/data-11.6.5-ow.tmp +cp -f tests/data-11.6.5 tests/data-11.6.5-ow.tmp + +LC_ALL=C TZ=GMT ./sadc 1 1 tests/data-11.6.5-ow.tmp 2>&1 | grep "Invalid system activity" >/dev/null diff --git a/tests/00675 b/tests/00675 new file mode 100644 index 0000000..4021b04 --- /dev/null +++ b/tests/00675 @@ -0,0 +1,3 @@ +rm -f tests/root +ln -s root1 tests/root +LC_ALL=C TZ=GMT ./sadc -F 1 1 tests/data-11.6.5-ow.tmp 2>&1 diff --git a/tests/00678 b/tests/00678 new file mode 100644 index 0000000..5d622bd --- /dev/null +++ b/tests/00678 @@ -0,0 +1 @@ +LC_ALL=C TZ=GMT ./sar -f tests/data-11.6.5-ow.tmp > tests/out.sar-ow.tmp && diff -u tests/expected3.sar-u tests/out.sar-ow.tmp diff --git a/tests/TLIST b/tests/TLIST index 92dc343..0a6e077 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -100,8 +100,13 @@ NOTES: 00620 ./sadf -c tests/data-11.6.5 > tests/data-11.6.5.tmp 00625 LC_ALL=C TZ=GMT ./sar -C -A -f tests/data-11.6.5.tmp > tests/out.data-11.6.5.tmp 00650 LC_ALL=C TZ=GMT ./sar -AC -f tests/data-12.0.0 > tests/out.data-12.0.0.tmp +00655 LC_ALL=C TZ=GMT ./sadf -H tests/data-12.0.0 > tests/out.data-12.0.0-H.tmp 00660 LC_ALL=C TZ=GMT ./sadf -H tests/data-9.1.6-hz.tmp > tests/out.sadf-H-hz.tmp 00664 LC_ALL=C TZ=GMT ./sadf -r -O debug tests/data-9.1.6-hz.tmp > tests/out.sadf-r-hz.tmp +00670 LC_ALL=C TZ=GMT ./sadc 1 1 tests/data-11.6.5-ow.tmp 2>&1 | grep "Invalid system activity" >/dev/null + [See also 01300 and 01305] +00675 LC_ALL=C TZ=GMT ./sadc -F 1 1 tests/data-11.6.5-ow.tmp 2>&1 +00678 LC_ALL=C TZ=GMT ./sar -f tests/data-11.6.5-ow.tmp > tests/out.sar-ow.tmp ===== Reading datafile from another architecture 00700 LC_ALL=C TZ=GMT ./sar -C -A -f tests/data-ppc-11.7.2 > tests/out.data-ppc-11.7.2.tmp diff --git a/tests/expected.data-12.0.0-H b/tests/expected.data-12.0.0-H new file mode 100644 index 0000000..00682c7 --- /dev/null +++ b/tests/expected.data-12.0.0-H @@ -0,0 +1,49 @@ +System activity data file: tests/data-12.0.0 (0x2175) +File created by sar/sadc from sysstat version 12.0.0 +Genuine sa datafile: yes (0) +Host: Linux 5.0.16-100.fc28.x86_64 (linux.home) 06/30/19 _x86_64_ (8 CPU) +File date: 2019-06-30 +File time: 05:39:21 UTC (1561873161) +Timezone: +File composition: (1,1,11),(0,0,9),(2,0,0) +Size of a long int: 8 +HZ = 100 +Number of activities in file: 36 +Extra structures available: N +List of activities: +01: [8b] A_CPU Y: 9 (10,0,0) +02: [8b] A_PCSW N: 1 (1,1,0) +03: [8b] A_IRQ Y: 489 (1,0,0) +04: [8a] A_SWAP N: 1 (0,2,0) +05: [8a] A_PAGE N: 1 (0,8,0) +06: [8b] A_IO N: 1 (5,0,0) +07: [8b] A_MEMORY N: 1 (17,0,0) +34: [8b] A_HUGE N: 1 (2,0,0) +08: [8b] A_KTABLES N: 1 (4,0,0) +09: [8c] A_QUEUE N: 1 (3,0,3) +11: [8c] A_DISK Y: 18 (1,2,6) +12: [8d] A_NET_DEV Y: 5 (7,0,1) +13: [8c] A_NET_EDEV Y: 5 (9,0,0) +14: [8a] A_NET_NFS N: 1 (0,0,6) +15: [8a] A_NET_NFSD N: 1 (0,0,11) +16: [8a] A_NET_SOCK N: 1 (0,0,6) +17: [8c] A_NET_IP N: 1 (8,0,0) +18: [8c] A_NET_EIP N: 1 (8,0,0) +19: [8a] A_NET_ICMP N: 1 (0,14,0) +20: [8a] A_NET_EICMP N: 1 (0,12,0) +21: [8a] A_NET_TCP N: 1 (0,4,0) +22: [8a] A_NET_ETCP N: 1 (0,5,0) +23: [8a] A_NET_UDP N: 1 (0,4,0) +24: [8a] A_NET_SOCK6 N: 1 (0,0,4) +25: [8c] A_NET_IP6 N: 1 (10,0,0) +26: [8c] A_NET_EIP6 N: 1 (11,0,0) +27: [8a] A_NET_ICMP6 N: 1 (0,17,0) +28: [8a] A_NET_EICMP6 N: 1 (0,11,0) +29: [8a] A_NET_UDP6 N: 1 (0,4,0) +39: [8a] A_NET_SOFT Y: 9 (0,0,5) +30: [8a] A_PWR_CPU Y: 9 (0,1,0) +31: [8a] A_PWR_FAN Y: 4 (2,0,0) +32: [8a] A_PWR_TEMP Y: 9 (3,0,0) +33: [8a] A_PWR_IN Y: 4 (3,0,0) +36: [8a] A_PWR_USB Y: 5 (0,0,4) +37: [8b] A_FS Y: 4 (5,0,0)