]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Declare expected test failures on native Windows.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 03:37:47 +0000 (05:37 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 03:37:47 +0000 (05:37 +0200)
* autogen.sh (GNULIB_MODULES_TOOLS_TESTS): Add test-xfail.
* gettext-tools/tests/Makefile.am (XFAIL_TESTS): New variable.

autogen.sh
gettext-tools/tests/Makefile.am

index 9d9ce422d66201f85de9c3f1446b65a2ece1d57e..82e43299bb08e1dea707ddeb451d374bb0d12966 100755 (executable)
@@ -427,6 +427,7 @@ if ! $skip_gnulib; then
     --import --avoid=progname $GNULIB_MODULES_LIBGETTEXTPO $GNULIB_MODULES_LIBGETTEXTPO_OTHER || exit $?
   # In gettext-tools/tests:
   GNULIB_MODULES_TOOLS_TESTS='
+    test-xfail
     thread
   '
   $GNULIB_TOOL --dir=gettext-tools --macro-prefix=gttgl --lib=libtestsgnu --source-base=tests/gnulib-lib --m4-base=tests/gnulib-m4 --makefile-name=Makefile.gnulib --local-dir=gnulib-local --local-symlink \
index d5dd1131a1e1df01971b98922ffd50cbd0934b96..004d914472447b13bc3928d58c507f309d1a9421 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gettext-tools/tests subdirectory of GNU gettext
-## Copyright (C) 1995-1997, 2001-2010, 2012-2016, 2018-2023 Free Software Foundation, Inc.
+## Copyright (C) 1995-2024 Free Software Foundation, Inc.
 ##
 ## This program is free software: you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -223,6 +223,18 @@ TESTS = gettext-1 gettext-2 \
        lang-rst \
        autopoint-1 autopoint-2 autopoint-3 cldr-plurals-1
 
+# Expected test failures.
+XFAIL_TESTS =
+if OS_IS_NATIVE_WINDOWS
+# Tests that rely on shell scripts.
+XFAIL_TESTS += \
+       msgexec-1 msgexec-3 msgexec-4 msgexec-5 msgexec-6 \
+       msgfilter-6 msgfilter-7
+# Functionality that relies on shell scripts.
+XFAIL_TESTS += \
+       msginit-3
+endif
+
 EXTRA_DIST += init.sh init.cfg $(TESTS) \
        test.mo overflow-1.mo overflow-2.mo overflow-3.mo overflow-4.mo \
        overflow-5.mo overflow-6.mo overflow-7.mo sysdep-without-nul.mo \