]> granicus.if.org Git - sysstat/commitdiff
Update non regression tests
authorSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 10 Jun 2021 13:10:00 +0000 (15:10 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 10 Jun 2021 13:10:00 +0000 (15:10 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
tests/01450
tests/01452 [new file with mode: 0644]
tests/TLIST
tests/data-9.1.5 [new file with mode: 0644]

index 1bd5e6be9d908cf11549eb13342518f2bcac9a8c..f92b94a6c4b2a6618b0704ba9787292af32f89a3 100644 (file)
@@ -1 +1 @@
-LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.6 2>&1 | grep "cannot read the format of this file" >/dev/null
+LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.6 2>&1 | grep "Try to convert" >/dev/null
diff --git a/tests/01452 b/tests/01452
new file mode 100644 (file)
index 0000000..c2a9af4
--- /dev/null
@@ -0,0 +1,4 @@
+LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.5 2>&1 | grep "cannot read the format of this file" >/dev/null
+if [ $? -eq 0 ]; then
+       LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.5 2>&1 | grep "Try to convert" >/dev/null && exit 1 || exit 0
+fi
index 061b0985017468414ee0959cb692538fceec33b0..e3626c02b6233cf706ffa538aa387f39eda35d5d 100644 (file)
@@ -250,7 +250,8 @@ NOTES:
 01425  LC_ALL=C ./sar 2 2 2 2>&1 | grep "Usage:" >/dev/null
 01430  LC_ALL=C ./sar -o foo 2>&1 | grep "Usage:" >/dev/null
 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
+01450  LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.6 2>&1 | grep "Try to convert" >/dev/null
+01452  LC_ALL=C TZ=GMT ./sar -f tests/data-9.1.5 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
 
diff --git a/tests/data-9.1.5 b/tests/data-9.1.5
new file mode 100644 (file)
index 0000000..1ee1906
Binary files /dev/null and b/tests/data-9.1.5 differ