File: localename-tests

package info (click to toggle)
gnulib 20250303-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,836 kB
  • sloc: ansic: 378,598; sh: 30,630; python: 8,358; cpp: 2,811; yacc: 1,846; perl: 920; makefile: 577; lisp: 328; sed: 11; java: 5
file content (36 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Files:
tests/test-localename.c
tests/test-localename-w32utf8.sh
tests/test-localename-w32utf8.c
tests/windows-utf8.rc
tests/windows-utf8.manifest
tests/macros.h
m4/musl.m4
m4/windows-rc.m4

Depends-on:
locale-h
setenv
unsetenv
setlocale
strdup
test-xfail

configure.ac:
gl_CHECK_FUNCS_ANDROID([newlocale], [[#include <locale.h>]])
gl_MUSL_LIBC
gl_WINDOWS_RC

Makefile.am:
TESTS += test-localename
check_PROGRAMS += test-localename
test_localename_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)

if OS_IS_NATIVE_WINDOWS
TESTS += test-localename-w32utf8.sh
noinst_PROGRAMS += test-localename-w32utf8
test_localename_w32utf8_LDADD = $(LDADD) test-localename-windows-utf8.res $(SETLOCALE_LIB)
test-localename-windows-utf8.res : $(srcdir)/windows-utf8.rc
	$(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-localename-windows-utf8.res --output-format=coff
MOSTLYCLEANFILES += test-localename-windows-utf8.res
endif