From dbaff49de64b3610b015e9034584455633b548ae Mon Sep 17 00:00:00 2001 From: Niyaz Nigmatullin Date: Fri, 5 Aug 2022 12:17:36 +0300 Subject: [PATCH 1/2] gnu-tests: disable some tests that implementation-specific --- util/build-gnu.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index c875d4b3e..42658e2a8 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -213,3 +213,11 @@ sed -i -e "s/timeout 10 sleep 0x.002p1/#timeout 10 sleep 0x.002p1/" tests/misc/s # install verbose messages shows ginstall as command sed -i -e "s/ginstall: creating directory/install: creating directory/g" tests/install/basic-1.sh + +# GNU doesn't support padding < -LONG_MAX +# disable this testcase +sed -i -Ez "s/\n([^\n#]*pad-3\.2[^\n]*)\n([^\n]*)\n([^\n]*)/\n# uutils\/numfmt supports padding = LONG_MIN\n#\1\n#\2\n#\3/" tests/misc/numfmt.pl + +# GNU doesn't support width > INT_MAX +# disable these testcases +sed -i -E "s|^([^#]*2_31.*)$|#\1|g" tests/misc/printf-cov.pl From 5978185f94eb64a0a912711ff2e561583db0bd97 Mon Sep 17 00:00:00 2001 From: Niyaz Nigmatullin Date: Fri, 5 Aug 2022 15:01:58 +0300 Subject: [PATCH 2/2] fix spelling --- util/build-gnu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 42658e2a8..67d38cb06 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -215,9 +215,9 @@ sed -i -e "s/timeout 10 sleep 0x.002p1/#timeout 10 sleep 0x.002p1/" tests/misc/s sed -i -e "s/ginstall: creating directory/install: creating directory/g" tests/install/basic-1.sh # GNU doesn't support padding < -LONG_MAX -# disable this testcase +# disable this test case sed -i -Ez "s/\n([^\n#]*pad-3\.2[^\n]*)\n([^\n]*)\n([^\n]*)/\n# uutils\/numfmt supports padding = LONG_MIN\n#\1\n#\2\n#\3/" tests/misc/numfmt.pl # GNU doesn't support width > INT_MAX -# disable these testcases +# disable these test cases sed -i -E "s|^([^#]*2_31.*)$|#\1|g" tests/misc/printf-cov.pl