]> granicus.if.org Git - sysstat/commitdiff
simtest: Update data used for sar cross-day test
authorSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 13 Aug 2019 07:22:19 +0000 (09:22 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 13 Aug 2019 07:22:19 +0000 (09:22 +0200)
Previous data-cd data file had some bogus values leading to strange data
being displayed by sar (e.g. average values of 0.00 for CPU).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
tests/TLIST
tests/create.data-cd [new file with mode: 0644]
tests/data-cd

index aa824044fc4175a35feee248cb91e6bac8d0bddd..24b8e021e758301a8354cef20d676b17b4932f17 100644 (file)
@@ -119,6 +119,7 @@ NOTES:
 00910  LC_ALL=C TZ=GMT ./sar -uw -f tests/data-cd -s 23:59:58 -e 00:00:00 > tests/out.sar-cd.tmp
        [Testing options -s/-e on a file contents spanning two consecutive days]
        [Work only with very simple file contents (no LINUX RESTART or COMMENT records)]
+       [Note: "11:00:00 PM" is "23:00:00" - "12:00:00 AM" is "00:00:00"]
 00912  diff -u tests/out.sar-cd.tmp tests/expected.sar-cd
 00920  LC_ALL=C TZ=GMT ./sar -f tests/data.tmp -e 13:30 -z -n DEV -dp > tests/out.sar-z.tmp
 00922  diff -u tests/out.sar-z.tmp tests/expected.sar-z
diff --git a/tests/create.data-cd b/tests/create.data-cd
new file mode 100644 (file)
index 0000000..7fa7a6b
--- /dev/null
@@ -0,0 +1,21 @@
+rm -f tests/data-cd.new
+
+rm -f tests/root
+ln -s root1 tests/root
+./sadc --unix_time=1556755197 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root2 tests/root
+./sadc --unix_time=1556755198 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root3 tests/root
+./sadc --unix_time=1556755199 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root4 tests/root
+./sadc --unix_time=1556755200 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
+
+rm -f tests/root
+ln -s root5 tests/root
+./sadc --unix_time=1556755201 -S A_NULL,A_CPU,A_PCSW tests/data-cd.new 1 1 >/dev/null
index 464f35dda4198846e9a9053f634de70daa58b4ef..fc782d0e74df259c5708ba3adb8477e696885373 100644 (file)
Binary files a/tests/data-cd and b/tests/data-cd differ