packaging: remove old options to find hidden files
[platform/upstream/findutils.git] / tests / Makefile.am
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17 #
18 # As a special exception to the GNU General Public License,
19 # this file may be distributed as part of a program that
20 # contains a configuration script generated by Autoconf, under
21 # the same distribution terms as the rest of that program.
22 #
23 # Generated by gnulib-tool.
24
25 AUTOMAKE_OPTIONS = 1.9.6 foreign subdir-objects
26
27 SUBDIRS = .
28 TESTS =
29 XFAIL_TESTS =
30 TESTS_ENVIRONMENT =
31 noinst_PROGRAMS =
32 check_PROGRAMS =
33 noinst_HEADERS =
34 noinst_LIBRARIES =
35 check_LIBRARIES = libtests.a
36 EXTRA_DIST =
37 BUILT_SOURCES =
38 SUFFIXES =
39 MOSTLYCLEANFILES = core *.stackdump
40 MOSTLYCLEANDIRS =
41 CLEANFILES =
42 DISTCLEANFILES =
43 MAINTAINERCLEANFILES =
44
45 AM_CPPFLAGS = \
46   -D@gltests_WITNESS@=1 \
47   -I. -I$(srcdir) \
48   -I.. -I$(srcdir)/.. \
49   -I../gl/lib -I$(srcdir)/../gl/lib
50
51 LDADD = libtests.a ../gl/lib/libgnulib.a libtests.a $(LIBTESTS_LIBDEPS)
52
53 libtests_a_SOURCES =
54 libtests_a_LIBADD = $(gltests_LIBOBJS)
55 libtests_a_DEPENDENCIES = $(gltests_LIBOBJS)
56 EXTRA_libtests_a_SOURCES =
57 AM_LIBTOOLFLAGS = --preserve-dup-deps
58
59 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
60
61 ## begin gnulib module accept
62
63
64 EXTRA_DIST += accept.c w32sock.h
65
66 EXTRA_libtests_a_SOURCES += accept.c
67
68 ## end   gnulib module accept
69
70 ## begin gnulib module accept-tests
71
72 TESTS += test-accept
73 check_PROGRAMS += test-accept
74 test_accept_LDADD = $(LDADD) @LIBSOCKET@
75 EXTRA_DIST += test-accept.c signature.h macros.h
76
77 ## end   gnulib module accept-tests
78
79 ## begin gnulib module alloca-opt-tests
80
81 TESTS += test-alloca-opt
82 check_PROGRAMS += test-alloca-opt
83
84 EXTRA_DIST += test-alloca-opt.c
85
86 ## end   gnulib module alloca-opt-tests
87
88 ## begin gnulib module areadlink-tests
89
90 TESTS += test-areadlink
91 check_PROGRAMS += test-areadlink
92 EXTRA_DIST += test-areadlink.h test-areadlink.c macros.h
93
94 ## end   gnulib module areadlink-tests
95
96 ## begin gnulib module areadlink-with-size-tests
97
98 TESTS += test-areadlink-with-size
99 check_PROGRAMS += test-areadlink-with-size
100 EXTRA_DIST += test-areadlink.h test-areadlink-with-size.c macros.h
101
102 ## end   gnulib module areadlink-with-size-tests
103
104 ## begin gnulib module areadlinkat-tests
105
106 TESTS += test-areadlinkat
107 check_PROGRAMS += test-areadlinkat
108 test_areadlinkat_LDADD = $(LDADD) @LIBINTL@
109 EXTRA_DIST += test-areadlink.h test-areadlinkat.c macros.h
110
111 ## end   gnulib module areadlinkat-tests
112
113 ## begin gnulib module argmatch-tests
114
115 TESTS += test-argmatch
116 check_PROGRAMS += test-argmatch
117 test_argmatch_LDADD = $(LDADD) @LIBINTL@
118
119 EXTRA_DIST += test-argmatch.c macros.h
120
121 ## end   gnulib module argmatch-tests
122
123 ## begin gnulib module arpa_inet
124
125 BUILT_SOURCES += arpa/inet.h
126
127 # We need the following in order to create <arpa/inet.h> when the system
128 # doesn't have one.
129 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
130         $(AM_V_at)$(MKDIR_P) arpa
131         $(AM_V_GEN)rm -f $@-t $@ && \
132         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
133           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
134               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
135               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
136               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
137               -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
138               -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
139               -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
140               -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
141               -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
142               -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
143               -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
144               -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
145               -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
146               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
147               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
148               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
149               < $(srcdir)/arpa_inet.in.h; \
150         } > $@-t && \
151         mv $@-t $@
152 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
153 MOSTLYCLEANDIRS += arpa
154
155 EXTRA_DIST += arpa_inet.in.h
156
157 ## end   gnulib module arpa_inet
158
159 ## begin gnulib module arpa_inet-tests
160
161 TESTS += test-arpa_inet
162 check_PROGRAMS += test-arpa_inet
163 EXTRA_DIST += test-arpa_inet.c
164
165 ## end   gnulib module arpa_inet-tests
166
167 ## begin gnulib module binary-io
168
169 libtests_a_SOURCES += binary-io.h binary-io.c
170
171 ## end   gnulib module binary-io
172
173 ## begin gnulib module binary-io-tests
174
175 TESTS += test-binary-io.sh
176 check_PROGRAMS += test-binary-io
177
178 EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
179
180 ## end   gnulib module binary-io-tests
181
182 ## begin gnulib module bind
183
184
185 EXTRA_DIST += bind.c w32sock.h
186
187 EXTRA_libtests_a_SOURCES += bind.c
188
189 ## end   gnulib module bind
190
191 ## begin gnulib module bind-tests
192
193 TESTS += test-bind
194 check_PROGRAMS += test-bind
195 test_bind_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
196 EXTRA_DIST += test-bind.c signature.h macros.h
197
198 ## end   gnulib module bind-tests
199
200 ## begin gnulib module bitrotate-tests
201
202 TESTS += test-bitrotate
203 check_PROGRAMS += test-bitrotate
204 EXTRA_DIST += test-bitrotate.c macros.h
205
206 ## end   gnulib module bitrotate-tests
207
208 ## begin gnulib module btowc-tests
209
210 TESTS += test-btowc1.sh test-btowc2.sh
211 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
212 check_PROGRAMS += test-btowc
213
214 EXTRA_DIST += test-btowc1.sh test-btowc2.sh test-btowc.c signature.h macros.h
215
216 ## end   gnulib module btowc-tests
217
218 ## begin gnulib module byteswap-tests
219
220 TESTS += test-byteswap
221 check_PROGRAMS += test-byteswap
222 EXTRA_DIST += test-byteswap.c macros.h
223
224 ## end   gnulib module byteswap-tests
225
226 ## begin gnulib module c-ctype-tests
227
228 TESTS += test-c-ctype
229 check_PROGRAMS += test-c-ctype
230
231 EXTRA_DIST += test-c-ctype.c macros.h
232
233 ## end   gnulib module c-ctype-tests
234
235 ## begin gnulib module c-strcase-tests
236
237 TESTS += test-c-strcase.sh
238 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
239 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
240 EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
241
242 ## end   gnulib module c-strcase-tests
243
244 ## begin gnulib module c-strcasestr-tests
245
246 TESTS += test-c-strcasestr
247 check_PROGRAMS += test-c-strcasestr
248
249 EXTRA_DIST += test-c-strcasestr.c macros.h
250
251 ## end   gnulib module c-strcasestr-tests
252
253 ## begin gnulib module c-strstr-tests
254
255 TESTS += test-c-strstr
256 check_PROGRAMS += test-c-strstr
257
258 EXTRA_DIST += test-c-strstr.c macros.h
259
260 ## end   gnulib module c-strstr-tests
261
262 ## begin gnulib module canonicalize-tests
263
264 TESTS += test-canonicalize
265 check_PROGRAMS += test-canonicalize
266 test_canonicalize_LDADD = $(LDADD) @LIBINTL@
267 EXTRA_DIST += test-canonicalize.c macros.h
268
269 ## end   gnulib module canonicalize-tests
270
271 ## begin gnulib module chdir-tests
272
273 TESTS += test-chdir
274 check_PROGRAMS += test-chdir
275 EXTRA_DIST += test-chdir.c signature.h macros.h
276
277 ## end   gnulib module chdir-tests
278
279 ## begin gnulib module cloexec-tests
280
281 TESTS += test-cloexec
282 check_PROGRAMS += test-cloexec
283 EXTRA_DIST += test-cloexec.c macros.h
284
285 ## end   gnulib module cloexec-tests
286
287 ## begin gnulib module close-tests
288
289 TESTS += test-close
290 check_PROGRAMS += test-close
291 EXTRA_DIST += test-close.c signature.h macros.h
292
293 ## end   gnulib module close-tests
294
295 ## begin gnulib module closein-tests
296
297 TESTS += test-closein.sh
298 check_PROGRAMS += test-closein
299 test_closein_LDADD = $(LDADD) @LIBINTL@
300 EXTRA_DIST += test-closein.sh test-closein.c
301
302 ## end   gnulib module closein-tests
303
304 ## begin gnulib module connect
305
306
307 EXTRA_DIST += connect.c w32sock.h
308
309 EXTRA_libtests_a_SOURCES += connect.c
310
311 ## end   gnulib module connect
312
313 ## begin gnulib module connect-tests
314
315 TESTS += test-connect
316 check_PROGRAMS += test-connect
317 test_connect_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
318 EXTRA_DIST += test-connect.c signature.h macros.h
319
320 ## end   gnulib module connect-tests
321
322 ## begin gnulib module ctype-tests
323
324 TESTS += test-ctype
325 check_PROGRAMS += test-ctype
326 EXTRA_DIST += test-ctype.c
327
328 ## end   gnulib module ctype-tests
329
330 ## begin gnulib module dirent-safer-tests
331
332 TESTS += test-dirent-safer
333 check_PROGRAMS += test-dirent-safer
334 # Link with libintl when needed. dirent-safer uses fdopendir if it is present,
335 # and fdopendir indirectly depends on openat-die -> gettext-h.
336 test_dirent_safer_LDADD = $(LDADD) $(LIBINTL)
337 EXTRA_DIST += test-dirent-safer.c macros.h
338
339 ## end   gnulib module dirent-safer-tests
340
341 ## begin gnulib module dirent-tests
342
343 TESTS += test-dirent
344 check_PROGRAMS += test-dirent
345 EXTRA_DIST += test-dirent.c
346
347 ## end   gnulib module dirent-tests
348
349 ## begin gnulib module dirname-tests
350
351 TESTS += test-dirname
352 check_PROGRAMS += test-dirname
353 test_dirname_LDADD = $(LDADD) @LIBINTL@
354 EXTRA_DIST += test-dirname.c
355
356 ## end   gnulib module dirname-tests
357
358 ## begin gnulib module dup-tests
359
360 TESTS += test-dup
361 check_PROGRAMS += test-dup
362 EXTRA_DIST += test-dup.c signature.h macros.h
363
364 ## end   gnulib module dup-tests
365
366 ## begin gnulib module dup2-tests
367
368 TESTS += test-dup2
369 check_PROGRAMS += test-dup2
370 EXTRA_DIST += test-dup2.c signature.h macros.h
371
372 ## end   gnulib module dup2-tests
373
374 ## begin gnulib module environ-tests
375
376 TESTS += test-environ
377 check_PROGRAMS += test-environ
378
379 EXTRA_DIST += test-environ.c
380
381 ## end   gnulib module environ-tests
382
383 ## begin gnulib module errno-tests
384
385 TESTS += test-errno
386 check_PROGRAMS += test-errno
387
388 EXTRA_DIST += test-errno.c
389
390 ## end   gnulib module errno-tests
391
392 ## begin gnulib module faccessat-tests
393
394 TESTS += test-faccessat
395 check_PROGRAMS += test-faccessat
396 test_faccessat_LDADD = $(LDADD) $(LIB_EACCESS) @LIBINTL@
397 EXTRA_DIST += test-faccessat.c signature.h macros.h
398
399 ## end   gnulib module faccessat-tests
400
401 ## begin gnulib module fchdir-tests
402
403 TESTS += test-fchdir
404 check_PROGRAMS += test-fchdir
405 test_fchdir_LDADD = $(LDADD) $(LIBINTL)
406 EXTRA_DIST += test-fchdir.c signature.h macros.h
407
408 ## end   gnulib module fchdir-tests
409
410 ## begin gnulib module fcntl-h-tests
411
412 TESTS += test-fcntl-h
413 check_PROGRAMS += test-fcntl-h
414 EXTRA_DIST += test-fcntl-h.c
415
416 ## end   gnulib module fcntl-h-tests
417
418 ## begin gnulib module fcntl-safer-tests
419
420 TESTS += test-fcntl-safer
421 check_PROGRAMS += test-fcntl-safer
422 EXTRA_DIST += test-open.h test-fcntl-safer.c macros.h
423
424 ## end   gnulib module fcntl-safer-tests
425
426 ## begin gnulib module fcntl-tests
427
428 TESTS += test-fcntl
429 check_PROGRAMS += test-fcntl
430 EXTRA_DIST += test-fcntl.c signature.h macros.h
431
432 ## end   gnulib module fcntl-tests
433
434 ## begin gnulib module fd-safer-flag
435
436 libtests_a_SOURCES += fd-safer-flag.c dup-safer-flag.c
437
438 ## end   gnulib module fd-safer-flag
439
440 ## begin gnulib module fdopen
441
442
443 EXTRA_DIST += fdopen.c
444
445 EXTRA_libtests_a_SOURCES += fdopen.c
446
447 ## end   gnulib module fdopen
448
449 ## begin gnulib module fdopen-tests
450
451 TESTS += test-fdopen
452 check_PROGRAMS += test-fdopen
453 EXTRA_DIST += test-fdopen.c signature.h macros.h
454
455 ## end   gnulib module fdopen-tests
456
457 ## begin gnulib module fdopendir-tests
458
459 TESTS += test-fdopendir
460 check_PROGRAMS += test-fdopendir
461 test_fdopendir_LDADD = $(LDADD) @LIBINTL@
462 EXTRA_DIST += test-fdopendir.c signature.h macros.h
463
464 ## end   gnulib module fdopendir-tests
465
466 ## begin gnulib module fflush-tests
467
468 TESTS += test-fflush test-fflush2.sh
469 check_PROGRAMS += test-fflush test-fflush2
470 MOSTLYCLEANFILES += test-fflush.txt
471 EXTRA_DIST += test-fflush.c test-fflush2.sh test-fflush2.c signature.h macros.h
472
473 ## end   gnulib module fflush-tests
474
475 ## begin gnulib module fgetc-tests
476
477 TESTS += test-fgetc
478 check_PROGRAMS += test-fgetc
479 EXTRA_DIST += test-fgetc.c signature.h macros.h
480
481 ## end   gnulib module fgetc-tests
482
483 ## begin gnulib module float-tests
484
485 TESTS += test-float
486 check_PROGRAMS += test-float
487 EXTRA_DIST += test-float.c macros.h
488
489 ## end   gnulib module float-tests
490
491 ## begin gnulib module fnmatch-tests
492
493 TESTS += test-fnmatch
494 check_PROGRAMS += test-fnmatch
495 EXTRA_DIST += test-fnmatch.c signature.h macros.h
496
497 ## end   gnulib module fnmatch-tests
498
499 ## begin gnulib module fopen-safer-tests
500
501 TESTS += test-fopen-safer
502 check_PROGRAMS += test-fopen-safer
503 EXTRA_DIST += test-fopen.h test-fopen-safer.c macros.h
504
505 ## end   gnulib module fopen-safer-tests
506
507 ## begin gnulib module fopen-tests
508
509 TESTS += test-fopen
510 check_PROGRAMS += test-fopen
511
512 EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h
513
514 ## end   gnulib module fopen-tests
515
516 ## begin gnulib module fpending-tests
517
518 TESTS += test-fpending.sh
519 check_PROGRAMS += test-fpending
520 MOSTLYCLEANFILES += test-fpending.t
521 EXTRA_DIST += test-fpending.c test-fpending.sh macros.h
522
523 ## end   gnulib module fpending-tests
524
525 ## begin gnulib module fpucw
526
527
528 EXTRA_DIST += fpucw.h
529
530 ## end   gnulib module fpucw
531
532 ## begin gnulib module fpurge-tests
533
534 TESTS += test-fpurge
535 check_PROGRAMS += test-fpurge
536 MOSTLYCLEANFILES += t-fpurge.tmp
537 EXTRA_DIST += test-fpurge.c macros.h
538
539 ## end   gnulib module fpurge-tests
540
541 ## begin gnulib module fputc-tests
542
543 TESTS += test-fputc
544 check_PROGRAMS += test-fputc
545 EXTRA_DIST += test-fputc.c signature.h macros.h
546
547 ## end   gnulib module fputc-tests
548
549 ## begin gnulib module fread-tests
550
551 TESTS += test-fread
552 check_PROGRAMS += test-fread
553 EXTRA_DIST += test-fread.c signature.h macros.h
554
555 ## end   gnulib module fread-tests
556
557 ## begin gnulib module freadahead-tests
558
559 TESTS += test-freadahead.sh
560 check_PROGRAMS += test-freadahead
561 EXTRA_DIST += test-freadahead.c test-freadahead.sh macros.h
562
563 ## end   gnulib module freadahead-tests
564
565 ## begin gnulib module freading-tests
566
567 TESTS += test-freading
568 check_PROGRAMS += test-freading
569 MOSTLYCLEANFILES += t-freading.tmp
570 EXTRA_DIST += test-freading.c macros.h
571
572 ## end   gnulib module freading-tests
573
574 ## begin gnulib module fseek-tests
575
576 TESTS += test-fseek.sh test-fseek2.sh
577 check_PROGRAMS += test-fseek
578 EXTRA_DIST += test-fseek.c test-fseek.sh test-fseek2.sh signature.h macros.h
579
580 ## end   gnulib module fseek-tests
581
582 ## begin gnulib module fseeko-tests
583
584 TESTS += test-fseeko.sh test-fseeko2.sh test-fseeko3.sh test-fseeko4.sh
585 check_PROGRAMS += test-fseeko test-fseeko3 test-fseeko4
586 EXTRA_DIST += test-fseeko.c test-fseeko.sh test-fseeko2.sh test-fseeko3.c test-fseeko3.sh test-fseeko4.c test-fseeko4.sh signature.h macros.h
587
588 ## end   gnulib module fseeko-tests
589
590 ## begin gnulib module fstat-tests
591
592 TESTS += test-fstat
593 check_PROGRAMS += test-fstat
594 EXTRA_DIST += test-fstat.c signature.h macros.h
595
596 ## end   gnulib module fstat-tests
597
598 ## begin gnulib module fstatat-tests
599
600 TESTS += test-fstatat
601 check_PROGRAMS += test-fstatat
602 test_fstatat_LDADD = $(LDADD) @LIBINTL@
603 EXTRA_DIST += test-fstatat.c test-lstat.h test-stat.h signature.h macros.h
604
605 ## end   gnulib module fstatat-tests
606
607 ## begin gnulib module ftell-tests
608
609 TESTS += test-ftell.sh test-ftell2.sh test-ftell3
610 check_PROGRAMS += test-ftell test-ftell3
611 MOSTLYCLEANFILES += t-ftell3.tmp
612 EXTRA_DIST += test-ftell.c test-ftell.sh test-ftell2.sh test-ftell3.c signature.h macros.h
613
614 ## end   gnulib module ftell-tests
615
616 ## begin gnulib module ftello-tests
617
618 TESTS += test-ftello.sh test-ftello2.sh test-ftello3 test-ftello4.sh
619 check_PROGRAMS += test-ftello test-ftello3 test-ftello4
620 MOSTLYCLEANFILES += t-ftello3.tmp
621 EXTRA_DIST += test-ftello.c test-ftello.sh test-ftello2.sh test-ftello3.c test-ftello4.c test-ftello4.sh signature.h macros.h
622
623 ## end   gnulib module ftello-tests
624
625 ## begin gnulib module ftruncate
626
627
628 EXTRA_DIST += ftruncate.c
629
630 EXTRA_libtests_a_SOURCES += ftruncate.c
631
632 ## end   gnulib module ftruncate
633
634 ## begin gnulib module ftruncate-tests
635
636 TESTS += test-ftruncate.sh
637 check_PROGRAMS += test-ftruncate
638 EXTRA_DIST += test-ftruncate.c test-ftruncate.sh signature.h macros.h
639
640 ## end   gnulib module ftruncate-tests
641
642 ## begin gnulib module fwrite-tests
643
644 TESTS += test-fwrite
645 check_PROGRAMS += test-fwrite
646 EXTRA_DIST += test-fwrite.c signature.h macros.h
647
648 ## end   gnulib module fwrite-tests
649
650 ## begin gnulib module getcwd-lgpl-tests
651
652 TESTS += test-getcwd-lgpl
653 check_PROGRAMS += test-getcwd-lgpl
654 test_getcwd_lgpl_LDADD = $(LDADD) $(LIBINTL)
655 EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
656
657 ## end   gnulib module getcwd-lgpl-tests
658
659 ## begin gnulib module getcwd-tests
660
661 TESTS += test-getcwd.sh
662 check_PROGRAMS += test-getcwd
663 test_getcwd_LDADD = $(LDADD) @LIBINTL@
664 EXTRA_DIST += test-getcwd.c test-getcwd.sh
665
666 ## end   gnulib module getcwd-tests
667
668 ## begin gnulib module getdelim-tests
669
670 TESTS += test-getdelim
671 check_PROGRAMS += test-getdelim
672 MOSTLYCLEANFILES += test-getdelim.txt
673 EXTRA_DIST += test-getdelim.c signature.h macros.h
674
675 ## end   gnulib module getdelim-tests
676
677 ## begin gnulib module getdtablesize-tests
678
679 TESTS += test-getdtablesize
680 check_PROGRAMS += test-getdtablesize
681 EXTRA_DIST += test-getdtablesize.c signature.h macros.h
682
683 ## end   gnulib module getdtablesize-tests
684
685 ## begin gnulib module getgroups-tests
686
687 TESTS += test-getgroups
688 check_PROGRAMS += test-getgroups
689 EXTRA_DIST += test-getgroups.c signature.h macros.h
690
691 ## end   gnulib module getgroups-tests
692
693 ## begin gnulib module gethostname-tests
694
695 TESTS += test-gethostname
696 check_PROGRAMS += test-gethostname
697 test_gethostname_LDADD = $(LDADD) @GETHOSTNAME_LIB@
698 EXTRA_DIST += signature.h test-gethostname.c
699
700 ## end   gnulib module gethostname-tests
701
702 ## begin gnulib module getline-tests
703
704 TESTS += test-getline
705 check_PROGRAMS += test-getline
706 MOSTLYCLEANFILES += test-getline.txt
707 EXTRA_DIST += test-getline.c signature.h macros.h
708
709 ## end   gnulib module getline-tests
710
711 ## begin gnulib module getopt-posix-tests
712
713 TESTS += test-getopt
714 check_PROGRAMS += test-getopt
715 test_getopt_LDADD = $(LDADD) $(LIBINTL)
716 EXTRA_DIST += macros.h signature.h test-getopt.c test-getopt.h test-getopt_long.h
717
718 ## end   gnulib module getopt-posix-tests
719
720 ## begin gnulib module getpagesize
721
722
723 EXTRA_DIST += getpagesize.c
724
725 EXTRA_libtests_a_SOURCES += getpagesize.c
726
727 ## end   gnulib module getpagesize
728
729 ## begin gnulib module gettimeofday-tests
730
731 TESTS += test-gettimeofday
732 check_PROGRAMS += test-gettimeofday
733
734 EXTRA_DIST += signature.h test-gettimeofday.c
735
736 ## end   gnulib module gettimeofday-tests
737
738 ## begin gnulib module hash-tests
739
740 TESTS += test-hash
741 check_PROGRAMS += test-hash
742 EXTRA_DIST += test-hash.c macros.h
743
744 ## end   gnulib module hash-tests
745
746 ## begin gnulib module i-ring-tests
747
748 TESTS += test-i-ring
749 check_PROGRAMS += test-i-ring
750 EXTRA_DIST += test-i-ring.c macros.h
751
752 ## end   gnulib module i-ring-tests
753
754 ## begin gnulib module ignore-value
755
756
757 EXTRA_DIST += ignore-value.h
758
759 ## end   gnulib module ignore-value
760
761 ## begin gnulib module ignore-value-tests
762
763 TESTS += test-ignore-value
764 check_PROGRAMS += test-ignore-value
765 EXTRA_DIST += test-ignore-value.c
766
767 ## end   gnulib module ignore-value-tests
768
769 ## begin gnulib module inet_pton
770
771
772 EXTRA_DIST += inet_pton.c
773
774 EXTRA_libtests_a_SOURCES += inet_pton.c
775
776 ## end   gnulib module inet_pton
777
778 ## begin gnulib module inet_pton-tests
779
780 TESTS += test-inet_pton
781 check_PROGRAMS += test-inet_pton
782 test_inet_pton_LDADD = $(LDADD) @INET_PTON_LIB@
783 EXTRA_DIST += test-inet_pton.c signature.h macros.h
784
785 ## end   gnulib module inet_pton-tests
786
787 ## begin gnulib module intprops-tests
788
789 TESTS += test-intprops
790 check_PROGRAMS += test-intprops
791 EXTRA_DIST += test-intprops.c macros.h
792
793 ## end   gnulib module intprops-tests
794
795 ## begin gnulib module inttostr
796
797 libtests_a_SOURCES += \
798   imaxtostr.c \
799   inttostr.c \
800   offtostr.c \
801   uinttostr.c \
802   umaxtostr.c
803
804 EXTRA_DIST += anytostr.c inttostr.h
805
806 EXTRA_libtests_a_SOURCES += anytostr.c
807
808 ## end   gnulib module inttostr
809
810 ## begin gnulib module inttostr-tests
811
812 TESTS += test-inttostr
813 check_PROGRAMS += test-inttostr
814 EXTRA_DIST += macros.h test-inttostr.c
815
816 ## end   gnulib module inttostr-tests
817
818 ## begin gnulib module inttypes-tests
819
820 TESTS += test-inttypes
821 check_PROGRAMS += test-inttypes
822 EXTRA_DIST += test-inttypes.c
823
824 ## end   gnulib module inttypes-tests
825
826 ## begin gnulib module ioctl
827
828
829 EXTRA_DIST += ioctl.c w32sock.h
830
831 EXTRA_libtests_a_SOURCES += ioctl.c
832
833 ## end   gnulib module ioctl
834
835 ## begin gnulib module ioctl-tests
836
837 TESTS += test-ioctl
838 check_PROGRAMS += test-ioctl
839 EXTRA_DIST += test-ioctl.c signature.h macros.h
840
841 ## end   gnulib module ioctl-tests
842
843 ## begin gnulib module isblank-tests
844
845 TESTS += test-isblank
846 check_PROGRAMS += test-isblank
847 EXTRA_DIST += test-isblank.c signature.h macros.h
848
849 ## end   gnulib module isblank-tests
850
851 ## begin gnulib module isfinite-tests
852
853 TESTS += test-isfinite
854 check_PROGRAMS += test-isfinite
855 test_isfinite_LDADD = $(LDADD) @ISFINITE_LIBM@
856 EXTRA_DIST += test-isfinite.c infinity.h macros.h
857
858 ## end   gnulib module isfinite-tests
859
860 ## begin gnulib module isinf-tests
861
862 TESTS += test-isinf
863 check_PROGRAMS += test-isinf
864 test_isinf_LDADD = $(LDADD) @ISINF_LIBM@
865 EXTRA_DIST += test-isinf.c infinity.h macros.h
866
867 ## end   gnulib module isinf-tests
868
869 ## begin gnulib module isnand-nolibm-tests
870
871 TESTS += test-isnand-nolibm
872 check_PROGRAMS += test-isnand-nolibm
873
874 EXTRA_DIST += test-isnand-nolibm.c test-isnand.h minus-zero.h infinity.h nan.h macros.h
875
876 ## end   gnulib module isnand-nolibm-tests
877
878 ## begin gnulib module isnanf-nolibm-tests
879
880 TESTS += test-isnanf-nolibm
881 check_PROGRAMS += test-isnanf-nolibm
882
883 EXTRA_DIST += test-isnanf-nolibm.c test-isnanf.h minus-zero.h infinity.h nan.h macros.h
884
885 ## end   gnulib module isnanf-nolibm-tests
886
887 ## begin gnulib module isnanl-nolibm-tests
888
889 TESTS += test-isnanl-nolibm
890 check_PROGRAMS += test-isnanl-nolibm
891
892 EXTRA_DIST += test-isnanl-nolibm.c test-isnanl.h minus-zero.h infinity.h nan.h macros.h
893
894 ## end   gnulib module isnanl-nolibm-tests
895
896 ## begin gnulib module iswblank-tests
897
898 TESTS += test-iswblank
899 check_PROGRAMS += test-iswblank
900 EXTRA_DIST += test-iswblank.c macros.h
901
902 ## end   gnulib module iswblank-tests
903
904 ## begin gnulib module langinfo-tests
905
906 TESTS += test-langinfo
907 check_PROGRAMS += test-langinfo
908 EXTRA_DIST += test-langinfo.c
909
910 ## end   gnulib module langinfo-tests
911
912 ## begin gnulib module listen
913
914
915 EXTRA_DIST += listen.c w32sock.h
916
917 EXTRA_libtests_a_SOURCES += listen.c
918
919 ## end   gnulib module listen
920
921 ## begin gnulib module listen-tests
922
923 TESTS += test-listen
924 check_PROGRAMS += test-listen
925 test_listen_LDADD = $(LDADD) @LIBSOCKET@
926 EXTRA_DIST += test-listen.c signature.h macros.h
927
928 ## end   gnulib module listen-tests
929
930 ## begin gnulib module locale-tests
931
932 TESTS += test-locale
933 check_PROGRAMS += test-locale
934 EXTRA_DIST += test-locale.c
935
936 ## end   gnulib module locale-tests
937
938 ## begin gnulib module localeconv-tests
939
940 TESTS += test-localeconv
941 check_PROGRAMS += test-localeconv
942 EXTRA_DIST += test-localeconv.c signature.h macros.h
943
944 ## end   gnulib module localeconv-tests
945
946 ## begin gnulib module localename
947
948 libtests_a_SOURCES += localename.c
949
950 EXTRA_DIST += localename.h
951
952 ## end   gnulib module localename
953
954 ## begin gnulib module localename-tests
955
956 TESTS += test-localename
957 check_PROGRAMS += test-localename
958 test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
959
960 EXTRA_DIST += test-localename.c macros.h
961
962 ## end   gnulib module localename-tests
963
964 ## begin gnulib module lock-tests
965
966 TESTS += test-lock
967 check_PROGRAMS += test-lock
968 test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
969 EXTRA_DIST += test-lock.c
970
971 ## end   gnulib module lock-tests
972
973 ## begin gnulib module lseek-tests
974
975 TESTS += test-lseek.sh
976 check_PROGRAMS += test-lseek
977 EXTRA_DIST += test-lseek.c test-lseek.sh signature.h macros.h
978
979 ## end   gnulib module lseek-tests
980
981 ## begin gnulib module lstat-tests
982
983 TESTS += test-lstat
984 check_PROGRAMS += test-lstat
985 EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
986
987 ## end   gnulib module lstat-tests
988
989 ## begin gnulib module malloc-gnu-tests
990
991 TESTS += test-malloc-gnu
992 check_PROGRAMS += test-malloc-gnu
993 EXTRA_DIST += test-malloc-gnu.c
994
995 ## end   gnulib module malloc-gnu-tests
996
997 ## begin gnulib module malloca-tests
998
999 TESTS += test-malloca
1000 check_PROGRAMS += test-malloca
1001
1002 EXTRA_DIST += test-malloca.c
1003
1004 ## end   gnulib module malloca-tests
1005
1006 ## begin gnulib module math-tests
1007
1008 TESTS += test-math
1009 check_PROGRAMS += test-math
1010 EXTRA_DIST += test-math.c macros.h
1011
1012 ## end   gnulib module math-tests
1013
1014 ## begin gnulib module mbrtowc-tests
1015
1016 TESTS += \
1017   test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
1018   test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
1019   test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh
1020 TESTS_ENVIRONMENT += \
1021   LOCALE_FR='@LOCALE_FR@' \
1022   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1023   LOCALE_JA='@LOCALE_JA@' \
1024   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1025 check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
1026
1027 EXTRA_DIST += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc.c test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32.c signature.h macros.h
1028
1029 ## end   gnulib module mbrtowc-tests
1030
1031 ## begin gnulib module mbscasestr-tests
1032
1033 TESTS += test-mbscasestr1 test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh
1034 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1035 check_PROGRAMS += test-mbscasestr1 test-mbscasestr2 test-mbscasestr3 test-mbscasestr4
1036
1037 EXTRA_DIST += test-mbscasestr1.c test-mbscasestr2.sh test-mbscasestr2.c test-mbscasestr3.sh test-mbscasestr3.c test-mbscasestr4.sh test-mbscasestr4.c macros.h
1038
1039 ## end   gnulib module mbscasestr-tests
1040
1041 ## begin gnulib module mbsinit-tests
1042
1043 TESTS += test-mbsinit.sh
1044 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
1045 check_PROGRAMS += test-mbsinit
1046
1047 EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h
1048
1049 ## end   gnulib module mbsinit-tests
1050
1051 ## begin gnulib module mbsrtowcs-tests
1052
1053 TESTS += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh
1054 TESTS_ENVIRONMENT += \
1055   LOCALE_FR='@LOCALE_FR@' \
1056   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1057   LOCALE_JA='@LOCALE_JA@' \
1058   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1059 check_PROGRAMS += test-mbsrtowcs
1060
1061 EXTRA_DIST += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh test-mbsrtowcs.c signature.h macros.h
1062
1063 ## end   gnulib module mbsrtowcs-tests
1064
1065 ## begin gnulib module mbsstr-tests
1066
1067 TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh
1068 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1069 check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3
1070
1071 EXTRA_DIST += test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh test-mbsstr3.c macros.h
1072
1073 ## end   gnulib module mbsstr-tests
1074
1075 ## begin gnulib module memchr-tests
1076
1077 TESTS += test-memchr
1078 check_PROGRAMS += test-memchr
1079 EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
1080
1081 ## end   gnulib module memchr-tests
1082
1083 ## begin gnulib module memrchr-tests
1084
1085 TESTS += test-memrchr
1086 check_PROGRAMS += test-memrchr
1087 EXTRA_DIST += test-memrchr.c zerosize-ptr.h signature.h macros.h
1088
1089 ## end   gnulib module memrchr-tests
1090
1091 ## begin gnulib module modf-tests
1092
1093 TESTS += test-modf
1094 check_PROGRAMS += test-modf
1095 test_modf_SOURCES = test-modf.c randomd.c
1096 test_modf_LDADD = $(LDADD) @MODF_LIBM@
1097 EXTRA_DIST += test-modf.c test-modf.h signature.h macros.h randomd.c
1098
1099 ## end   gnulib module modf-tests
1100
1101 ## begin gnulib module nanosleep
1102
1103
1104 EXTRA_DIST += nanosleep.c
1105
1106 EXTRA_libtests_a_SOURCES += nanosleep.c
1107
1108 ## end   gnulib module nanosleep
1109
1110 ## begin gnulib module nanosleep-tests
1111
1112 TESTS += test-nanosleep
1113 check_PROGRAMS += test-nanosleep
1114 test_nanosleep_LDADD = $(LDADD) $(LIB_NANOSLEEP)
1115 EXTRA_DIST += test-nanosleep.c signature.h macros.h
1116
1117 ## end   gnulib module nanosleep-tests
1118
1119 ## begin gnulib module netinet_in
1120
1121 BUILT_SOURCES += $(NETINET_IN_H)
1122
1123 # We need the following in order to create <netinet/in.h> when the system
1124 # doesn't have one.
1125 if GL_GENERATE_NETINET_IN_H
1126 netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
1127         $(AM_V_at)$(MKDIR_P) netinet
1128         $(AM_V_GEN)rm -f $@-t $@ && \
1129         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1130           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1131               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1132               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1133               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1134               -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
1135               -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
1136               < $(srcdir)/netinet_in.in.h; \
1137         } > $@-t && \
1138         mv $@-t $@
1139 else
1140 netinet/in.h: $(top_builddir)/config.status
1141         rm -f $@
1142 endif
1143 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
1144 MOSTLYCLEANDIRS += netinet
1145
1146 EXTRA_DIST += netinet_in.in.h
1147
1148 ## end   gnulib module netinet_in
1149
1150 ## begin gnulib module netinet_in-tests
1151
1152 TESTS += test-netinet_in
1153 check_PROGRAMS += test-netinet_in
1154 EXTRA_DIST += test-netinet_in.c
1155
1156 ## end   gnulib module netinet_in-tests
1157
1158 ## begin gnulib module nl_langinfo-tests
1159
1160 TESTS += test-nl_langinfo.sh
1161 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
1162 check_PROGRAMS += test-nl_langinfo
1163 EXTRA_DIST += test-nl_langinfo.sh test-nl_langinfo.c signature.h macros.h
1164
1165 ## end   gnulib module nl_langinfo-tests
1166
1167 ## begin gnulib module open-tests
1168
1169 TESTS += test-open
1170 check_PROGRAMS += test-open
1171 EXTRA_DIST += test-open.h test-open.c signature.h macros.h
1172
1173 ## end   gnulib module open-tests
1174
1175 ## begin gnulib module openat-safer-tests
1176
1177 TESTS += test-openat-safer
1178 check_PROGRAMS += test-openat-safer
1179 test_openat_safer_LDADD = $(LDADD) @LIBINTL@
1180 EXTRA_DIST += test-openat-safer.c macros.h
1181
1182 ## end   gnulib module openat-safer-tests
1183
1184 ## begin gnulib module openat-tests
1185
1186 TESTS += test-openat
1187 check_PROGRAMS += test-openat
1188 test_openat_LDADD = $(LDADD) @LIBINTL@
1189 EXTRA_DIST += test-openat.c test-open.h signature.h macros.h
1190
1191 ## end   gnulib module openat-tests
1192
1193 ## begin gnulib module parse-datetime-tests
1194
1195 TESTS += test-parse-datetime
1196 check_PROGRAMS += test-parse-datetime
1197 test_parse_datetime_LDADD = $(LDADD) @LIBINTL@ $(LIB_CLOCK_GETTIME)
1198 EXTRA_DIST += test-parse-datetime.c macros.h
1199
1200 ## end   gnulib module parse-datetime-tests
1201
1202 ## begin gnulib module pathmax-tests
1203
1204 TESTS += test-pathmax
1205 check_PROGRAMS += test-pathmax
1206 EXTRA_DIST += test-pathmax.c
1207
1208 ## end   gnulib module pathmax-tests
1209
1210 ## begin gnulib module perror-tests
1211
1212 TESTS += test-perror.sh test-perror2
1213 check_PROGRAMS += test-perror test-perror2
1214 EXTRA_DIST += macros.h signature.h test-perror.c test-perror2.c test-perror.sh
1215
1216 ## end   gnulib module perror-tests
1217
1218 ## begin gnulib module pipe-posix
1219
1220
1221 EXTRA_DIST += pipe.c
1222
1223 EXTRA_libtests_a_SOURCES += pipe.c
1224
1225 ## end   gnulib module pipe-posix
1226
1227 ## begin gnulib module pipe-posix-tests
1228
1229 TESTS += test-pipe
1230 check_PROGRAMS += test-pipe
1231 EXTRA_DIST += test-pipe.c signature.h macros.h
1232
1233 ## end   gnulib module pipe-posix-tests
1234
1235 ## begin gnulib module priv-set
1236
1237 libtests_a_SOURCES += priv-set.c
1238
1239 EXTRA_DIST += priv-set.h
1240
1241 ## end   gnulib module priv-set
1242
1243 ## begin gnulib module priv-set-tests
1244
1245 TESTS += test-priv-set
1246 check_PROGRAMS += test-priv-set
1247 EXTRA_DIST += test-priv-set.c macros.h
1248
1249 ## end   gnulib module priv-set-tests
1250
1251 ## begin gnulib module putenv
1252
1253
1254 EXTRA_DIST += putenv.c
1255
1256 EXTRA_libtests_a_SOURCES += putenv.c
1257
1258 ## end   gnulib module putenv
1259
1260 ## begin gnulib module quotearg-simple-tests
1261
1262 TESTS += test-quotearg-simple
1263 check_PROGRAMS += test-quotearg-simple
1264 test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@
1265 EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h zerosize-ptr.h
1266
1267 ## end   gnulib module quotearg-simple-tests
1268
1269 ## begin gnulib module raise
1270
1271
1272 EXTRA_DIST += raise.c
1273
1274 EXTRA_libtests_a_SOURCES += raise.c
1275
1276 ## end   gnulib module raise
1277
1278 ## begin gnulib module raise-tests
1279
1280 TESTS += test-raise
1281 check_PROGRAMS += test-raise
1282 EXTRA_DIST += test-raise.c signature.h macros.h
1283
1284 ## end   gnulib module raise-tests
1285
1286 ## begin gnulib module read-tests
1287
1288 TESTS += test-read
1289 check_PROGRAMS += test-read
1290 EXTRA_DIST += test-read.c signature.h macros.h
1291
1292 ## end   gnulib module read-tests
1293
1294 ## begin gnulib module readlink-tests
1295
1296 TESTS += test-readlink
1297 check_PROGRAMS += test-readlink
1298 EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h
1299
1300 ## end   gnulib module readlink-tests
1301
1302 ## begin gnulib module readlinkat-tests
1303
1304 TESTS += test-readlinkat
1305 check_PROGRAMS += test-readlinkat
1306 test_readlinkat_LDADD = $(LDADD) @LIBINTL@
1307 EXTRA_DIST += test-readlink.h test-readlinkat.c signature.h macros.h
1308
1309 ## end   gnulib module readlinkat-tests
1310
1311 ## begin gnulib module realloc-gnu-tests
1312
1313 TESTS += test-realloc-gnu
1314 check_PROGRAMS += test-realloc-gnu
1315 EXTRA_DIST += test-realloc-gnu.c
1316
1317 ## end   gnulib module realloc-gnu-tests
1318
1319 ## begin gnulib module regex-tests
1320
1321 TESTS += test-regex
1322 check_PROGRAMS += test-regex
1323 test_regex_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) $(LIB_PTHREAD)
1324 EXTRA_DIST += test-regex.c macros.h
1325
1326 ## end   gnulib module regex-tests
1327
1328 ## begin gnulib module rmdir-tests
1329
1330 TESTS += test-rmdir
1331 check_PROGRAMS += test-rmdir
1332 EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h
1333
1334 ## end   gnulib module rmdir-tests
1335
1336 ## begin gnulib module select
1337
1338
1339 EXTRA_DIST += select.c
1340
1341 EXTRA_libtests_a_SOURCES += select.c
1342
1343 ## end   gnulib module select
1344
1345 ## begin gnulib module select-tests
1346
1347 TESTS += test-select test-select-in.sh test-select-out.sh
1348 # test-select-stdin has to be run by hand.
1349 check_PROGRAMS += test-select test-select-fd test-select-stdin
1350 test_select_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ $(INET_PTON_LIB)
1351 test_select_fd_LDADD = $(LDADD) @LIB_SELECT@
1352 test_select_stdin_LDADD = $(LDADD) @LIB_SELECT@
1353 EXTRA_DIST += macros.h signature.h test-select.c test-select.h test-select-fd.c test-select-in.sh test-select-out.sh test-select-stdin.c
1354
1355 ## end   gnulib module select-tests
1356
1357 ## begin gnulib module setenv-tests
1358
1359 TESTS += test-setenv
1360 check_PROGRAMS += test-setenv
1361 EXTRA_DIST += test-setenv.c signature.h macros.h
1362
1363 ## end   gnulib module setenv-tests
1364
1365 ## begin gnulib module setlocale
1366
1367
1368 EXTRA_DIST += setlocale.c
1369
1370 EXTRA_libtests_a_SOURCES += setlocale.c
1371
1372 ## end   gnulib module setlocale
1373
1374 ## begin gnulib module setlocale-tests
1375
1376 TESTS += test-setlocale1.sh test-setlocale2.sh
1377 TESTS_ENVIRONMENT += \
1378   LOCALE_FR='@LOCALE_FR@' \
1379   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1380   LOCALE_JA='@LOCALE_JA@' \
1381   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1382 check_PROGRAMS += test-setlocale1 test-setlocale2
1383 EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
1384
1385 ## end   gnulib module setlocale-tests
1386
1387 ## begin gnulib module setsockopt
1388
1389
1390 EXTRA_DIST += setsockopt.c w32sock.h
1391
1392 EXTRA_libtests_a_SOURCES += setsockopt.c
1393
1394 ## end   gnulib module setsockopt
1395
1396 ## begin gnulib module setsockopt-tests
1397
1398 TESTS += test-setsockopt
1399 check_PROGRAMS += test-setsockopt
1400 test_setsockopt_LDADD = $(LDADD) @LIBSOCKET@
1401 EXTRA_DIST += test-setsockopt.c signature.h macros.h
1402
1403 ## end   gnulib module setsockopt-tests
1404
1405 ## begin gnulib module sigaction
1406
1407 libtests_a_SOURCES += sig-handler.c
1408
1409 EXTRA_DIST += sig-handler.h sigaction.c
1410
1411 EXTRA_libtests_a_SOURCES += sigaction.c
1412
1413 ## end   gnulib module sigaction
1414
1415 ## begin gnulib module sigaction-tests
1416
1417 TESTS += test-sigaction
1418 check_PROGRAMS += test-sigaction
1419 EXTRA_DIST += test-sigaction.c signature.h macros.h
1420
1421 ## end   gnulib module sigaction-tests
1422
1423 ## begin gnulib module signal-h
1424
1425 BUILT_SOURCES += signal.h
1426
1427 # We need the following in order to create <signal.h> when the system
1428 # doesn't have a complete one.
1429 signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1430         $(AM_V_GEN)rm -f $@-t $@ && \
1431         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1432           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1433               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1434               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1435               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1436               -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \
1437               -e 's|@''GNULIB_PTHREAD_SIGMASK''@|$(GNULIB_PTHREAD_SIGMASK)|g' \
1438               -e 's|@''GNULIB_RAISE''@|$(GNULIB_RAISE)|g' \
1439               -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \
1440               -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \
1441               -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \
1442               -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \
1443               -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \
1444               -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \
1445               -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \
1446               -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \
1447               -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
1448               -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
1449               -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
1450               -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \
1451               -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \
1452               -e 's|@''REPLACE_RAISE''@|$(REPLACE_RAISE)|g' \
1453               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1454               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1455               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1456               < $(srcdir)/signal.in.h; \
1457         } > $@-t && \
1458         mv $@-t $@
1459 MOSTLYCLEANFILES += signal.h signal.h-t
1460
1461 EXTRA_DIST += signal.in.h
1462
1463 ## end   gnulib module signal-h
1464
1465 ## begin gnulib module signal-h-tests
1466
1467 TESTS += test-signal-h
1468 check_PROGRAMS += test-signal-h
1469 EXTRA_DIST += test-signal-h.c
1470
1471 ## end   gnulib module signal-h-tests
1472
1473 ## begin gnulib module sigprocmask
1474
1475
1476 EXTRA_DIST += sigprocmask.c
1477
1478 EXTRA_libtests_a_SOURCES += sigprocmask.c
1479
1480 ## end   gnulib module sigprocmask
1481
1482 ## begin gnulib module sigprocmask-tests
1483
1484 TESTS += test-sigprocmask
1485 check_PROGRAMS += test-sigprocmask
1486 EXTRA_DIST += test-sigprocmask.c signature.h macros.h
1487
1488 ## end   gnulib module sigprocmask-tests
1489
1490 ## begin gnulib module sleep
1491
1492
1493 EXTRA_DIST += sleep.c
1494
1495 EXTRA_libtests_a_SOURCES += sleep.c
1496
1497 ## end   gnulib module sleep
1498
1499 ## begin gnulib module sleep-tests
1500
1501 TESTS += test-sleep
1502 check_PROGRAMS += test-sleep
1503 EXTRA_DIST += test-sleep.c signature.h macros.h
1504
1505 ## end   gnulib module sleep-tests
1506
1507 ## begin gnulib module snippet/_Noreturn
1508
1509 # Because this Makefile snippet defines a variable used by other
1510 # gnulib Makefile snippets, it must be present in all Makefile.am that
1511 # need it. This is ensured by the applicability 'all' defined above.
1512
1513 _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
1514
1515 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
1516
1517 ## end   gnulib module snippet/_Noreturn
1518
1519 ## begin gnulib module snippet/arg-nonnull
1520
1521 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1522 # statements but through direct file reference. Therefore this snippet must be
1523 # present in all Makefile.am that need it. This is ensured by the applicability
1524 # 'all' defined above.
1525
1526 BUILT_SOURCES += arg-nonnull.h
1527 # The arg-nonnull.h that gets inserted into generated .h files is the same as
1528 # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
1529 # off.
1530 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
1531         $(AM_V_GEN)rm -f $@-t $@ && \
1532         sed -n -e '/GL_ARG_NONNULL/,$$p' \
1533           < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
1534           > $@-t && \
1535         mv $@-t $@
1536 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
1537
1538 ARG_NONNULL_H=arg-nonnull.h
1539
1540 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
1541
1542 ## end   gnulib module snippet/arg-nonnull
1543
1544 ## begin gnulib module snippet/c++defs
1545
1546 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1547 # statements but through direct file reference. Therefore this snippet must be
1548 # present in all Makefile.am that need it. This is ensured by the applicability
1549 # 'all' defined above.
1550
1551 BUILT_SOURCES += c++defs.h
1552 # The c++defs.h that gets inserted into generated .h files is the same as
1553 # build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
1554 c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
1555         $(AM_V_GEN)rm -f $@-t $@ && \
1556         sed -n -e '/_GL_CXXDEFS/,$$p' \
1557           < $(top_srcdir)/build-aux/snippet/c++defs.h \
1558           > $@-t && \
1559         mv $@-t $@
1560 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
1561
1562 CXXDEFS_H=c++defs.h
1563
1564 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
1565
1566 ## end   gnulib module snippet/c++defs
1567
1568 ## begin gnulib module snippet/unused-parameter
1569
1570 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1571 # statements but through direct file reference. Therefore this snippet must be
1572 # present in all Makefile.am that need it. This is ensured by the applicability
1573 # 'all' defined above.
1574
1575 BUILT_SOURCES += unused-parameter.h
1576 # The unused-parameter.h that gets inserted into generated .h files is the same
1577 # as build-aux/snippet/unused-parameter.h, except that it has the copyright
1578 # header cut off.
1579 unused-parameter.h: $(top_srcdir)/build-aux/snippet/unused-parameter.h
1580         $(AM_V_GEN)rm -f $@-t $@ && \
1581         sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \
1582           < $(top_srcdir)/build-aux/snippet/unused-parameter.h \
1583           > $@-t && \
1584         mv $@-t $@
1585 MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t
1586
1587 UNUSED_PARAMETER_H=unused-parameter.h
1588
1589 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/unused-parameter.h
1590
1591 ## end   gnulib module snippet/unused-parameter
1592
1593 ## begin gnulib module snippet/warn-on-use
1594
1595 BUILT_SOURCES += warn-on-use.h
1596 # The warn-on-use.h that gets inserted into generated .h files is the same as
1597 # build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
1598 # off.
1599 warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
1600         $(AM_V_GEN)rm -f $@-t $@ && \
1601         sed -n -e '/^.ifndef/,$$p' \
1602           < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
1603           > $@-t && \
1604         mv $@-t $@
1605 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
1606
1607 WARN_ON_USE_H=warn-on-use.h
1608
1609 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
1610
1611 ## end   gnulib module snippet/warn-on-use
1612
1613 ## begin gnulib module snprintf-tests
1614
1615 TESTS += test-snprintf
1616 check_PROGRAMS += test-snprintf
1617
1618 EXTRA_DIST += test-snprintf.c signature.h macros.h
1619
1620 ## end   gnulib module snprintf-tests
1621
1622 ## begin gnulib module socket
1623
1624
1625 EXTRA_DIST += socket.c w32sock.h
1626
1627 EXTRA_libtests_a_SOURCES += socket.c
1628
1629 ## end   gnulib module socket
1630
1631 ## begin gnulib module sockets-tests
1632
1633 TESTS += test-sockets
1634 check_PROGRAMS += test-sockets
1635 test_sockets_LDADD = $(LDADD) @LIBSOCKET@
1636 EXTRA_DIST += test-sockets.c
1637
1638 ## end   gnulib module sockets-tests
1639
1640 ## begin gnulib module stat-tests
1641
1642 TESTS += test-stat
1643 check_PROGRAMS += test-stat
1644 test_stat_LDADD = $(LDADD) $(LIBINTL)
1645 EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
1646
1647 ## end   gnulib module stat-tests
1648
1649 ## begin gnulib module stat-time-tests
1650
1651 TESTS += test-stat-time
1652 check_PROGRAMS += test-stat-time
1653 test_stat_time_LDADD = $(LDADD) $(LIB_NANOSLEEP)
1654 EXTRA_DIST += test-stat-time.c macros.h nap.h
1655
1656 ## end   gnulib module stat-time-tests
1657
1658 ## begin gnulib module statat-tests
1659
1660 TESTS += test-statat
1661 check_PROGRAMS += test-statat
1662 test_statat_LDADD = $(LDADD) @LIBINTL@
1663 EXTRA_DIST += test-statat.c
1664
1665 ## end   gnulib module statat-tests
1666
1667 ## begin gnulib module stdalign-tests
1668
1669 TESTS += test-stdalign
1670 check_PROGRAMS += test-stdalign
1671 EXTRA_DIST += test-stdalign.c macros.h
1672
1673 ## end   gnulib module stdalign-tests
1674
1675 ## begin gnulib module stdbool-tests
1676
1677 TESTS += test-stdbool
1678 check_PROGRAMS += test-stdbool
1679 EXTRA_DIST += test-stdbool.c
1680
1681 ## end   gnulib module stdbool-tests
1682
1683 ## begin gnulib module stddef-tests
1684
1685 TESTS += test-stddef
1686 check_PROGRAMS += test-stddef
1687 EXTRA_DIST += test-stddef.c
1688
1689 ## end   gnulib module stddef-tests
1690
1691 ## begin gnulib module stdint-tests
1692
1693 TESTS += test-stdint
1694 check_PROGRAMS += test-stdint
1695 EXTRA_DIST += test-stdint.c
1696
1697 ## end   gnulib module stdint-tests
1698
1699 ## begin gnulib module stdio-tests
1700
1701 TESTS += test-stdio
1702 check_PROGRAMS += test-stdio
1703 EXTRA_DIST += test-stdio.c
1704
1705 ## end   gnulib module stdio-tests
1706
1707 ## begin gnulib module stdlib-tests
1708
1709 TESTS += test-stdlib
1710 check_PROGRAMS += test-stdlib
1711 EXTRA_DIST += test-stdlib.c test-sys_wait.h
1712
1713 ## end   gnulib module stdlib-tests
1714
1715 ## begin gnulib module strcasestr-tests
1716
1717 TESTS += test-strcasestr
1718 check_PROGRAMS += test-strcasestr
1719
1720 EXTRA_DIST += test-strcasestr.c signature.h macros.h
1721
1722 ## end   gnulib module strcasestr-tests
1723
1724 ## begin gnulib module strerror-tests
1725
1726 TESTS += test-strerror
1727 check_PROGRAMS += test-strerror
1728 EXTRA_DIST += test-strerror.c signature.h macros.h
1729
1730 ## end   gnulib module strerror-tests
1731
1732 ## begin gnulib module strerror_r-posix-tests
1733
1734 TESTS += test-strerror_r
1735 check_PROGRAMS += test-strerror_r
1736 EXTRA_DIST += test-strerror_r.c signature.h macros.h
1737
1738 ## end   gnulib module strerror_r-posix-tests
1739
1740 ## begin gnulib module strftime-tests
1741
1742 TESTS += test-strftime
1743 check_PROGRAMS += test-strftime
1744 EXTRA_DIST += test-strftime.c macros.h
1745
1746 ## end   gnulib module strftime-tests
1747
1748 ## begin gnulib module string-tests
1749
1750 TESTS += test-string
1751 check_PROGRAMS += test-string
1752 EXTRA_DIST += test-string.c
1753
1754 ## end   gnulib module string-tests
1755
1756 ## begin gnulib module strings-tests
1757
1758 TESTS += test-strings
1759 check_PROGRAMS += test-strings
1760 EXTRA_DIST += test-strings.c
1761
1762 ## end   gnulib module strings-tests
1763
1764 ## begin gnulib module strnlen-tests
1765
1766 TESTS += test-strnlen
1767 check_PROGRAMS += test-strnlen
1768 EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
1769
1770 ## end   gnulib module strnlen-tests
1771
1772 ## begin gnulib module strstr-tests
1773
1774 TESTS += test-strstr
1775 check_PROGRAMS += test-strstr
1776 EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h
1777
1778 ## end   gnulib module strstr-tests
1779
1780 ## begin gnulib module strtol-tests
1781
1782 TESTS += test-strtol
1783 check_PROGRAMS += test-strtol
1784 EXTRA_DIST += test-strtol.c signature.h macros.h
1785
1786 ## end   gnulib module strtol-tests
1787
1788 ## begin gnulib module strtoul-tests
1789
1790 TESTS += test-strtoul
1791 check_PROGRAMS += test-strtoul
1792 EXTRA_DIST += test-strtoul.c signature.h macros.h
1793
1794 ## end   gnulib module strtoul-tests
1795
1796 ## begin gnulib module strtoull-tests
1797
1798 TESTS += test-strtoull
1799 check_PROGRAMS += test-strtoull
1800 EXTRA_DIST += test-strtoull.c signature.h macros.h
1801
1802 ## end   gnulib module strtoull-tests
1803
1804 ## begin gnulib module strtoumax-tests
1805
1806 TESTS += test-strtoumax
1807 check_PROGRAMS += test-strtoumax
1808 EXTRA_DIST += test-strtoumax.c signature.h macros.h
1809
1810 ## end   gnulib module strtoumax-tests
1811
1812 ## begin gnulib module symlink
1813
1814
1815 EXTRA_DIST += symlink.c
1816
1817 EXTRA_libtests_a_SOURCES += symlink.c
1818
1819 ## end   gnulib module symlink
1820
1821 ## begin gnulib module symlink-tests
1822
1823 TESTS += test-symlink
1824 check_PROGRAMS += test-symlink
1825 EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
1826
1827 ## end   gnulib module symlink-tests
1828
1829 ## begin gnulib module symlinkat
1830
1831
1832 EXTRA_DIST += at-func.c symlinkat.c
1833
1834 EXTRA_libtests_a_SOURCES += at-func.c symlinkat.c
1835
1836 ## end   gnulib module symlinkat
1837
1838 ## begin gnulib module symlinkat-tests
1839
1840 TESTS += test-symlinkat
1841 check_PROGRAMS += test-symlinkat
1842 test_symlinkat_LDADD = $(LDADD) @LIBINTL@
1843 EXTRA_DIST += test-symlink.h test-symlinkat.c signature.h macros.h
1844
1845 ## end   gnulib module symlinkat-tests
1846
1847 ## begin gnulib module sys_ioctl
1848
1849 BUILT_SOURCES += sys/ioctl.h
1850
1851 # We need the following in order to create <sys/ioctl.h> when the system
1852 # does not have a complete one.
1853 sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
1854         $(AM_V_at)$(MKDIR_P) sys
1855         $(AM_V_GEN)rm -f $@-t $@ && \
1856         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1857           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1858               -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \
1859               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1860               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1861               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1862               -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \
1863               -e 's/@''GNULIB_IOCTL''@/$(GNULIB_IOCTL)/g' \
1864               -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
1865               -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
1866               -e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \
1867               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1868               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1869               < $(srcdir)/sys_ioctl.in.h; \
1870         } > $@-t && \
1871         mv $@-t $@
1872 MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
1873 MOSTLYCLEANDIRS += sys
1874
1875 EXTRA_DIST += sys_ioctl.in.h
1876
1877 ## end   gnulib module sys_ioctl
1878
1879 ## begin gnulib module sys_ioctl-tests
1880
1881 TESTS += test-sys_ioctl
1882 check_PROGRAMS += test-sys_ioctl
1883 EXTRA_DIST += test-sys_ioctl.c
1884
1885 ## end   gnulib module sys_ioctl-tests
1886
1887 ## begin gnulib module sys_select
1888
1889 BUILT_SOURCES += sys/select.h
1890
1891 # We need the following in order to create <sys/select.h> when the system
1892 # doesn't have one that works with the given compiler.
1893 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
1894         $(AM_V_at)$(MKDIR_P) sys
1895         $(AM_V_GEN)rm -f $@-t $@ && \
1896         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1897           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1898               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1899               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1900               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1901               -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
1902               -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
1903               -e 's/@''GNULIB_PSELECT''@/$(GNULIB_PSELECT)/g' \
1904               -e 's/@''GNULIB_SELECT''@/$(GNULIB_SELECT)/g' \
1905               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1906               -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
1907               -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
1908               -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
1909               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1910               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1911               < $(srcdir)/sys_select.in.h; \
1912         } > $@-t && \
1913         mv $@-t $@
1914 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
1915 MOSTLYCLEANDIRS += sys
1916
1917 EXTRA_DIST += sys_select.in.h
1918
1919 ## end   gnulib module sys_select
1920
1921 ## begin gnulib module sys_select-tests
1922
1923 TESTS += test-sys_select
1924 check_PROGRAMS += test-sys_select
1925 EXTRA_DIST += test-sys_select.c signature.h
1926
1927 ## end   gnulib module sys_select-tests
1928
1929 ## begin gnulib module sys_socket-tests
1930
1931 TESTS += test-sys_socket
1932 check_PROGRAMS += test-sys_socket
1933 EXTRA_DIST += test-sys_socket.c
1934
1935 ## end   gnulib module sys_socket-tests
1936
1937 ## begin gnulib module sys_stat-tests
1938
1939 TESTS += test-sys_stat
1940 check_PROGRAMS += test-sys_stat
1941 EXTRA_DIST += test-sys_stat.c
1942
1943 ## end   gnulib module sys_stat-tests
1944
1945 ## begin gnulib module sys_time-tests
1946
1947 TESTS += test-sys_time
1948 check_PROGRAMS += test-sys_time
1949 EXTRA_DIST += test-sys_time.c
1950
1951 ## end   gnulib module sys_time-tests
1952
1953 ## begin gnulib module sys_types-tests
1954
1955 TESTS += test-sys_types
1956 check_PROGRAMS += test-sys_types
1957 EXTRA_DIST += test-sys_types.c
1958
1959 ## end   gnulib module sys_types-tests
1960
1961 ## begin gnulib module sys_uio-tests
1962
1963 TESTS += test-sys_uio
1964 check_PROGRAMS += test-sys_uio
1965 EXTRA_DIST += test-sys_uio.c
1966
1967 ## end   gnulib module sys_uio-tests
1968
1969 ## begin gnulib module sys_utsname-tests
1970
1971 TESTS += test-sys_utsname
1972 check_PROGRAMS += test-sys_utsname
1973 EXTRA_DIST += test-sys_utsname.c
1974
1975 ## end   gnulib module sys_utsname-tests
1976
1977 ## begin gnulib module sys_wait-tests
1978
1979 TESTS += test-sys_wait
1980 check_PROGRAMS += test-sys_wait
1981 EXTRA_DIST += test-sys_wait.c test-sys_wait.h
1982
1983 ## end   gnulib module sys_wait-tests
1984
1985 ## begin gnulib module test-framework-sh-tests
1986
1987 TESTS += test-init.sh
1988 EXTRA_DIST += init.sh
1989 EXTRA_DIST += test-init.sh
1990
1991 ## end   gnulib module test-framework-sh-tests
1992
1993 ## begin gnulib module thread
1994
1995 libtests_a_SOURCES += glthread/thread.h glthread/thread.c
1996
1997 ## end   gnulib module thread
1998
1999 ## begin gnulib module thread-tests
2000
2001 TESTS += test-thread_self test-thread_create
2002 check_PROGRAMS += test-thread_self test-thread_create
2003 test_thread_self_LDADD = $(LDADD) @LIBTHREAD@
2004 test_thread_create_LDADD = $(LDADD) @LIBMULTITHREAD@
2005 EXTRA_DIST += test-thread_self.c test-thread_create.c macros.h
2006
2007 ## end   gnulib module thread-tests
2008
2009 ## begin gnulib module time-tests
2010
2011 TESTS += test-time
2012 check_PROGRAMS += test-time
2013 EXTRA_DIST += test-time.c
2014
2015 ## end   gnulib module time-tests
2016
2017 ## begin gnulib module trunc-tests
2018
2019 TESTS += test-trunc1 test-trunc2
2020 check_PROGRAMS += test-trunc1 test-trunc2
2021 test_trunc1_LDADD = $(LDADD) @TRUNC_LIBM@
2022 test_trunc2_LDADD = $(LDADD) @TRUNC_LIBM@
2023 EXTRA_DIST += test-trunc1.c test-trunc2.c minus-zero.h infinity.h nan.h signature.h macros.h
2024
2025 ## end   gnulib module trunc-tests
2026
2027 ## begin gnulib module uname-tests
2028
2029 TESTS += test-uname
2030 check_PROGRAMS += test-uname
2031 test_uname_LDADD = $(LDADD) @GETHOSTNAME_LIB@
2032 EXTRA_DIST += test-uname.c signature.h macros.h
2033
2034 ## end   gnulib module uname-tests
2035
2036 ## begin gnulib module unistd-safer-tests
2037
2038 TESTS += test-dup-safer
2039 check_PROGRAMS += test-dup-safer
2040 EXTRA_DIST += test-dup-safer.c macros.h
2041
2042 ## end   gnulib module unistd-safer-tests
2043
2044 ## begin gnulib module unistd-tests
2045
2046 TESTS += test-unistd
2047 check_PROGRAMS += test-unistd
2048 EXTRA_DIST += test-unistd.c
2049
2050 ## end   gnulib module unistd-tests
2051
2052 ## begin gnulib module uniwidth/width-tests
2053
2054 TESTS += test-uc_width uniwidth/test-uc_width2.sh
2055 check_PROGRAMS += test-uc_width test-uc_width2
2056 test_uc_width_SOURCES = uniwidth/test-uc_width.c
2057 test_uc_width_LDADD = $(LDADD) $(LIBUNISTRING)
2058 test_uc_width2_SOURCES = uniwidth/test-uc_width2.c
2059 test_uc_width2_LDADD = $(LDADD) $(LIBUNISTRING)
2060 EXTRA_DIST += uniwidth/test-uc_width.c uniwidth/test-uc_width2.c uniwidth/test-uc_width2.sh macros.h
2061
2062 ## end   gnulib module uniwidth/width-tests
2063
2064 ## begin gnulib module unlink-tests
2065
2066 TESTS += test-unlink
2067 check_PROGRAMS += test-unlink
2068 EXTRA_DIST += test-unlink.h test-unlink.c signature.h macros.h
2069
2070 ## end   gnulib module unlink-tests
2071
2072 ## begin gnulib module unlinkat-tests
2073
2074 TESTS += test-unlinkat
2075 check_PROGRAMS += test-unlinkat
2076 test_unlinkat_LDADD = $(LDADD) @LIBINTL@
2077 EXTRA_DIST += test-unlinkat.c test-rmdir.h test-unlink.h signature.h macros.h
2078
2079 ## end   gnulib module unlinkat-tests
2080
2081 ## begin gnulib module unlinkdir
2082
2083 libtests_a_SOURCES += unlinkdir.c
2084
2085 EXTRA_DIST += unlinkdir.h
2086
2087 ## end   gnulib module unlinkdir
2088
2089 ## begin gnulib module unsetenv-tests
2090
2091 TESTS += test-unsetenv
2092 check_PROGRAMS += test-unsetenv
2093 EXTRA_DIST += test-unsetenv.c signature.h macros.h
2094
2095 ## end   gnulib module unsetenv-tests
2096
2097 ## begin gnulib module update-copyright-tests
2098
2099 TESTS += test-update-copyright.sh
2100 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
2101 EXTRA_DIST += test-update-copyright.sh
2102
2103 ## end   gnulib module update-copyright-tests
2104
2105 ## begin gnulib module vasnprintf-tests
2106
2107 TESTS += test-vasnprintf
2108 check_PROGRAMS += test-vasnprintf
2109
2110 EXTRA_DIST += test-vasnprintf.c macros.h
2111
2112 ## end   gnulib module vasnprintf-tests
2113
2114 ## begin gnulib module vc-list-files-tests
2115
2116 TESTS += test-vc-list-files-git.sh
2117 TESTS += test-vc-list-files-cvs.sh
2118 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
2119 EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh
2120
2121 ## end   gnulib module vc-list-files-tests
2122
2123 ## begin gnulib module verify-tests
2124
2125 TESTS_ENVIRONMENT += MAKE='$(MAKE)'
2126 TESTS += test-verify test-verify.sh
2127 check_PROGRAMS += test-verify
2128 EXTRA_DIST += test-verify.c test-verify.sh
2129
2130 ## end   gnulib module verify-tests
2131
2132 ## begin gnulib module version-etc-tests
2133
2134 TESTS += test-version-etc.sh
2135 check_PROGRAMS += test-version-etc
2136 test_version_etc_LDADD = $(LDADD) @LIBINTL@
2137 EXTRA_DIST += test-version-etc.c test-version-etc.sh
2138
2139 ## end   gnulib module version-etc-tests
2140
2141 ## begin gnulib module wchar-tests
2142
2143 TESTS += test-wchar
2144 check_PROGRAMS += test-wchar
2145 EXTRA_DIST += test-wchar.c
2146
2147 ## end   gnulib module wchar-tests
2148
2149 ## begin gnulib module wcrtomb-tests
2150
2151 TESTS += \
2152   test-wcrtomb.sh \
2153   test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh \
2154   test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh
2155 TESTS_ENVIRONMENT += \
2156   LOCALE_FR='@LOCALE_FR@' \
2157   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
2158   LOCALE_JA='@LOCALE_JA@' \
2159   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
2160 check_PROGRAMS += test-wcrtomb test-wcrtomb-w32
2161
2162 EXTRA_DIST += test-wcrtomb.sh test-wcrtomb.c test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh test-wcrtomb-w32.c signature.h macros.h
2163
2164 ## end   gnulib module wcrtomb-tests
2165
2166 ## begin gnulib module wctob
2167
2168
2169 EXTRA_DIST += wctob.c
2170
2171 EXTRA_libtests_a_SOURCES += wctob.c
2172
2173 ## end   gnulib module wctob
2174
2175 ## begin gnulib module wctomb
2176
2177
2178 EXTRA_DIST += wctomb-impl.h wctomb.c
2179
2180 EXTRA_libtests_a_SOURCES += wctomb.c
2181
2182 ## end   gnulib module wctomb
2183
2184 ## begin gnulib module wctype-h-tests
2185
2186 TESTS += test-wctype-h
2187 check_PROGRAMS += test-wctype-h
2188 EXTRA_DIST += test-wctype-h.c macros.h
2189
2190 ## end   gnulib module wctype-h-tests
2191
2192 ## begin gnulib module wcwidth-tests
2193
2194 TESTS += test-wcwidth
2195 check_PROGRAMS += test-wcwidth
2196
2197 EXTRA_DIST += test-wcwidth.c signature.h macros.h
2198
2199 ## end   gnulib module wcwidth-tests
2200
2201 ## begin gnulib module xalloc-die-tests
2202
2203 TESTS += test-xalloc-die.sh
2204 check_PROGRAMS += test-xalloc-die
2205 test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
2206 EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh
2207
2208 ## end   gnulib module xalloc-die-tests
2209
2210 ## begin gnulib module xstrtol-tests
2211
2212 TESTS += test-xstrtol.sh
2213 check_PROGRAMS += test-xstrtol test-xstrtoul
2214 test_xstrtol_LDADD = $(LDADD) @LIBINTL@
2215 test_xstrtoul_LDADD = $(LDADD) @LIBINTL@
2216 EXTRA_DIST += test-xstrtol.c test-xstrtoul.c test-xstrtol.sh
2217
2218 ## end   gnulib module xstrtol-tests
2219
2220 ## begin gnulib module xstrtoumax-tests
2221
2222 TESTS += test-xstrtoumax.sh
2223 check_PROGRAMS += test-xstrtoumax
2224 test_xstrtoumax_LDADD = $(LDADD) @LIBINTL@
2225 EXTRA_DIST += test-xstrtoumax.c test-xstrtoumax.sh
2226
2227 ## end   gnulib module xstrtoumax-tests
2228
2229 ## begin gnulib module yesno-tests
2230
2231 TESTS += test-yesno.sh
2232 check_PROGRAMS += test-yesno
2233 test_yesno_LDADD = $(LDADD) @LIBINTL@
2234 EXTRA_DIST += test-yesno.c test-yesno.sh
2235
2236 ## end   gnulib module yesno-tests
2237
2238 ## begin gnulib module yield
2239
2240 libtests_a_SOURCES += glthread/yield.h
2241
2242 ## end   gnulib module yield
2243
2244 # Clean up after Solaris cc.
2245 clean-local:
2246         rm -rf SunWS_cache
2247
2248 mostlyclean-local: mostlyclean-generic
2249         @for dir in '' $(MOSTLYCLEANDIRS); do \
2250           if test -n "$$dir" && test -d $$dir; then \
2251             echo "rmdir $$dir"; rmdir $$dir; \
2252           fi; \
2253         done; \
2254         :