From 159c1b98c1f93c8e669b512d078afbcb2306e56e Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Thu, 10 Jun 2021 15:10:00 +0200 Subject: [PATCH] Update non regression tests Signed-off-by: Sebastien GODARD --- tests/01450 | 2 +- tests/01452 | 4 ++++ tests/TLIST | 3 ++- tests/data-9.1.5 | Bin 0 -> 6028 bytes 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tests/01452 create mode 100644 tests/data-9.1.5 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 0000000000000000000000000000000000000000..1ee1906b0eab9237cc9a1559f95f0a73d82bba04 GIT binary patch literal 6028 zcmeHKT}V_x6rNqP+|{hC$bPIOA~g4^Yl&frSW%E*Nl8@TAO39UD)y(+Q&b@Jpir`q zg;rZBme4~zg(f{%`VwV`K@s%(5dD$(W^?x5VedJ+dvCj4lhOmjneUr3=g!PMclO)X z;o5kMDV$YW`imI1xx87!8zOQY&SUjJglbigz?LRe)>M~;lw+fmYL_?tWyd1+dj zRG*Pvn7$#1R6$Shm)pci3vbQ5nRx@enzva>e?Ir&N&<&siua4Le27V*wPn zh9#2sK_1Uq@Z(v<5GKyi4UlJ@A$SMD6dsJn4BhT}D<01z1^J28D~@Jtgb;@brtrr~ z%)qy-w#)c9Skq%nyn@R^!|3^J)`*26>pC2egCQ#>FYq;~pJzJX*9W|O)^4Oe?Qr$=X(*d*&0&OOW{H6qo z6TDG%A@T`tRGo-?!W&gLBA@Vb-v7Uj#D4wxaeh|_i6A`0_1?ldcY^3#hw|Tr>)beq zuh7xCc|_;-JjXiMT?|)e4Eohz<^-||N3mFc2S YW^}GxRz}qgEz;>yM|9t697yN>0_5lAhX4Qo literal 0 HcmV?d00001 -- 2.40.0