From: Sebastien GODARD Date: Thu, 10 Jun 2021 13:10:00 +0000 (+0200) Subject: Update non regression tests X-Git-Tag: v12.5.5~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=159c1b98c1f93c8e669b512d078afbcb2306e56e;p=sysstat Update non regression tests Signed-off-by: Sebastien GODARD --- diff --git a/tests/01450 b/tests/01450 index 1bd5e6b..f92b94a 100644 --- a/tests/01450 +++ b/tests/01450 @@ -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 index 0000000..c2a9af4 --- /dev/null +++ b/tests/01452 @@ -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 diff --git a/tests/TLIST b/tests/TLIST index 061b098..e3626c0 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -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 index 0000000..1ee1906 Binary files /dev/null and b/tests/data-9.1.5 differ