]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Avoid xgettext-git-1 failure on native Windows.
authorBruno Haible <bruno@clisp.org>
Sun, 4 May 2025 23:31:34 +0000 (01:31 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 May 2025 13:09:12 +0000 (15:09 +0200)
gettext-tools/tests/xgettext-git-1

index 33f72317925790da11e2c8eedb187ceb8dc60c5c..79b358e4857ea918c58fa5f9f3199bfccdd0ff32 100755 (executable)
@@ -59,6 +59,13 @@ cd src || Exit 1
 # Verify the computation of a POT-Creation-Date from 1000 files
 # in a single commit.
 
+case "$host_os" in
+  mingw* | windows*)
+    # The xgettext invocation would fail with error "Argument list too long".
+    # It can be worked around by using the --files-from option.
+    # But this exercise is outside of the scope of this unit test.
+    ;;
+  *)
 TZ=UTC0 \
 ${XGETTEXT} -o xg-gi-test1-b.tmp --no-location \
             'Hadschi Halef Omar/ben/Hadschi Abul Abbas/ibn/Hadschi Dawuhd al Gossarah'/same*.c
@@ -91,10 +98,20 @@ EOF
 : ${DIFF=diff}
 ${DIFF} xg-gi-test1-b.ok xg-gi-test1-b.pot || Exit 1
 
+    ;;
+esac
+
 # ------------------------------------------------------------------------------
 # Verify the computation of a POT-Creation-Date from 1000 files
 # in different commits.
 
+case "$host_os" in
+  mingw* | windows*)
+    # The xgettext invocation would fail with error "Argument list too long".
+    # It can be worked around by using the --files-from option.
+    # But this exercise is outside of the scope of this unit test.
+    ;;
+  *)
 TZ=UTC0 \
 ${XGETTEXT} -o xg-gi-test1-c.tmp --no-location \
             'Hadschi Halef Omar/ben/Hadschi Abul Abbas/ibn/Hadschi Dawuhd al Gossarah'/sequence*.c
@@ -127,6 +144,9 @@ EOF
 : ${DIFF=diff}
 ${DIFF} xg-gi-test1-c.ok xg-gi-test1-c.pot || Exit 1
 
+    ;;
+esac
+
 # ------------------------------------------------------------------------------
 # Verify the computation of a POT-Creation-Date from a file
 # outside the current directory.