]> granicus.if.org Git - sysstat/commitdiff
Update non regression tests
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 23 Jan 2022 13:45:45 +0000 (14:45 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 23 Jan 2022 13:45:45 +0000 (14:45 +0100)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
tests/00791 [moved from tests/00795 with 100% similarity]
tests/00793 [new file with mode: 0644]
tests/00794 [new file with mode: 0644]
tests/TLIST
tests/data-ukwn1 [new file with mode: 0644]
tests/expected.sadf-data-ukwn1 [new file with mode: 0644]
tests/expected3.sar-data-ukwn [new file with mode: 0644]

similarity index 100%
rename from tests/00795
rename to tests/00791
diff --git a/tests/00793 b/tests/00793
new file mode 100644 (file)
index 0000000..d02cb54
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C TZ=GMT ./sar -uq -f tests/data-ukwn1 > tests/out.sar-data-ukwn1.tmp && diff -u tests/expected3.sar-data-ukwn tests/out.sar-data-ukwn1.tmp
diff --git a/tests/00794 b/tests/00794
new file mode 100644 (file)
index 0000000..f0c83e2
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C ./sadf -H tests/data-ukwn1 > tests/out.sadf-data-ukwn1.tmp && diff -u tests/expected.sadf-data-ukwn1 tests/out.sadf-data-ukwn1.tmp
index 32967fc224bcfa7a34ef4287ab11bbbccbbf7f32..c86632fdd3f161fc9ea554d9ac03a1a3dc55de06 100644 (file)
@@ -166,7 +166,9 @@ NOTES:
 00784  LC_ALL=C TZ=GMT ./sar -w -f tests/data-ukwn > tests/out2.sar-data-ukwn.tmp
 00787  LC_ALL=C ./sadf -H tests/data-ukwn > tests/out.sadf-data-ukwn.tmp
 00790  LC_ALL=C TZ=GMT ./sar -A -f tests/data-ukwn0 > tests/out.sar-data-ukwn0.tmp
-00795  LC_ALL=C ./sadf -H tests/data-ukwn0 > tests/out.sadf-data-ukwn0.tmp
+00791  LC_ALL=C ./sadf -H tests/data-ukwn0 > tests/out.sadf-data-ukwn0.tmp
+00793  LC_ALL=C TZ=GMT ./sar -uq -f tests/data-ukwn1 > tests/out.sar-data-ukwn1.tmp
+00794  LC_ALL=C ./sadf -H tests/data-ukwn1 > tests/out.sadf-data-ukwn1.tmp
 
 =====  Testing sar's options
 00800  LC_ALL=C TZ=GMT ./sar --iface=lo,enp6s0,eth0 -n DEV,EDEV -f tests/data.tmp > tests/out.sar-iface.tmp
diff --git a/tests/data-ukwn1 b/tests/data-ukwn1
new file mode 100644 (file)
index 0000000..514f6a4
Binary files /dev/null and b/tests/data-ukwn1 differ
diff --git a/tests/expected.sadf-data-ukwn1 b/tests/expected.sadf-data-ukwn1
new file mode 100644 (file)
index 0000000..e6d06a4
--- /dev/null
@@ -0,0 +1,15 @@
+System activity data file: tests/data-ukwn1 (0x2175)
+File created by sar/sadc from sysstat version 12.5.6
+Genuine sa datafile: yes (0)
+Host: Linux 5.14.18-100.fc33.x86_64 (localhost.localdomain)    01/23/22        _x86_64_        (8 CPU)
+File date: 2022-01-23
+File time: 13:26:31 UTC (1642944391)
+Timezone: CET
+File composition: (1,1,12),(0,0,9),(2,0,1)
+Size of a long int: 8
+HZ = 100
+Number of activities in file: 2
+Extra structures available: N
+List of activities:
+01: [8b] A_CPU                Y:   9   (10,0,0)
+09: [8d] A_QUEUE              N:   1   (2,0,4)         [Unknown format]
diff --git a/tests/expected3.sar-data-ukwn b/tests/expected3.sar-data-ukwn
new file mode 100644 (file)
index 0000000..c00be55
--- /dev/null
@@ -0,0 +1,6 @@
+Linux 5.14.18-100.fc33.x86_64 (localhost.localdomain)  01/23/22        _x86_64_        (8 CPU)
+
+13:26:31        CPU     %user     %nice   %system   %iowait    %steal     %idle
+13:26:32        all      0.37      0.00      0.12      0.00      0.00     99.50
+13:26:33        all      0.25      0.00      0.00      0.00      0.00     99.75
+Average:        all      0.31      0.00      0.06      0.00      0.00     99.63