New module 'test-xfail'.
authorBruno Haible <bruno@clisp.org>
Fri, 17 May 2024 20:44:56 +0000 (22:44 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 May 2024 20:44:56 +0000 (22:44 +0200)
* modules/test-xfail: New file.

ChangeLog
modules/test-xfail [new file with mode: 0644]

index 25c95d2abada14dec8f0e99d70ed1a32d1d3f7ee..df2944317a7ebfa35c6ea85b461eabfadf35f43d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-17  Bruno Haible  <bruno@clisp.org>
+
+       New module 'test-xfail'.
+       * modules/test-xfail: New file.
+
 2024-05-17  Bruno Haible  <bruno@clisp.org>
 
        New module 'abort-debug'.
diff --git a/modules/test-xfail b/modules/test-xfail
new file mode 100644 (file)
index 0000000..3eef613
--- /dev/null
@@ -0,0 +1,65 @@
+Description:
+Define Automake conditionals that can be used to mark expected failures.
+
+Files:
+m4/musl.m4
+
+Depends-on:
+
+configure.ac:
+gl_MUSL_LIBC
+gl_CONDITIONAL([LIBC_IS_GNU],
+               [case "$host_os" in *-gnu* | gnu*) true ;; *) false ;; esac])
+gl_CONDITIONAL([LIBC_IS_MUSL],
+               [case "$host_os" in *-musl* | midipix*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_MACOS],
+               [case "$host_os" in darwin*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_MACOS11],
+               [case "$host_os" in darwin20.*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_MACOS12],
+               [case "$host_os" in darwin21.*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_MACOS13],
+               [case "$host_os" in darwin22.*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_MACOS14],
+               [case "$host_os" in darwin23.*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_FREEBSD],
+               [case "$host_os" in freebsd* | dragonfly*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_NETBSD],
+               [case "$host_os" in netbsd*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_OPENBSD],
+               [case "$host_os" in openbsd*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_AIX],
+               [case "$host_os" in aix*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_SOLARIS11],
+               [case "$host_os" in solaris2.11*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_CYGWIN],
+               [case "$host_os" in cygwin*) true ;; *) false ;; esac])
+gl_CONDITIONAL([OS_IS_NATIVE_WINDOWS],
+               [case "$host_os" in mingw* | windows*) true ;; *) false ;; esac])
+
+is_mingw=false; is_msvc=false
+case "$host_os" in
+  windows*-msvc*) is_msvc=true ;;
+  mingw* | windows*)
+    AC_EGREP_CPP([Special], [
+#ifdef _MSC_VER
+ Special
+#endif
+], [is_msvc=true], [is_mingw=true])
+    ;;
+esac
+gl_CONDITIONAL([PLATFORM_IS_MINGW], [$is_mingw])
+gl_CONDITIONAL([PLATFORM_IS_MSVC], [$is_msvc])
+
+gl_CONDITIONAL([OS_IS_ANDROID],
+               [case "$host_os" in linux-androideabi*) true ;; *) false ;; esac])
+
+Makefile.am:
+
+Include:
+
+License:
+GPL
+
+Maintainer:
+all