c99e270e706add5f072128a6fee0fac360dd53cd
[platform/upstream/diffutils.git] / gnulib-tests / gnulib.mk
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
4 #
5 # This file is free software, distributed under the terms of the GNU
6 # General Public License.  As a special exception to the GNU General
7 # Public License, this file may be distributed as part of a program
8 # that contains a configuration script generated by Autoconf, under
9 # the same distribution terms as the rest of that program.
10 #
11 # Generated by gnulib-tool.
12
13 AUTOMAKE_OPTIONS = 1.5 foreign subdir-objects
14
15 SUBDIRS = .
16 TESTS =
17 XFAIL_TESTS =
18 TESTS_ENVIRONMENT =
19 noinst_PROGRAMS =
20 check_PROGRAMS =
21 noinst_HEADERS =
22 noinst_LIBRARIES =
23 check_LIBRARIES = libtests.a
24 EXTRA_DIST =
25 BUILT_SOURCES =
26 SUFFIXES =
27 MOSTLYCLEANFILES = core *.stackdump
28 MOSTLYCLEANDIRS =
29 CLEANFILES =
30 DISTCLEANFILES =
31 MAINTAINERCLEANFILES =
32
33 AM_CPPFLAGS = \
34   -D@gltests_WITNESS@=1 \
35   -I. -I$(srcdir) \
36   -I.. -I$(srcdir)/.. \
37   -I../lib -I$(srcdir)/../lib
38
39 LDADD = libtests.a ../lib/libdiffutils.a libtests.a $(LIBTESTS_LIBDEPS)
40
41 libtests_a_SOURCES =
42 libtests_a_LIBADD = $(gltests_LIBOBJS)
43 libtests_a_DEPENDENCIES = $(gltests_LIBOBJS)
44 EXTRA_libtests_a_SOURCES =
45 AM_LIBTOOLFLAGS = --preserve-dup-deps
46
47 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
48
49 ## begin gnulib module alloca-opt-tests
50
51 TESTS += test-alloca-opt
52 check_PROGRAMS += test-alloca-opt
53
54 EXTRA_DIST += test-alloca-opt.c
55
56 ## end   gnulib module alloca-opt-tests
57
58 ## begin gnulib module argmatch
59
60 libtests_a_SOURCES += argmatch.c
61
62 EXTRA_DIST += argmatch.h
63
64 ## end   gnulib module argmatch
65
66 ## begin gnulib module argmatch-tests
67
68 TESTS += test-argmatch
69 check_PROGRAMS += test-argmatch
70 test_argmatch_LDADD = $(LDADD) @LIBINTL@
71
72 EXTRA_DIST += test-argmatch.c macros.h
73
74 ## end   gnulib module argmatch-tests
75
76 ## begin gnulib module binary-io
77
78 libtests_a_SOURCES += binary-io.h
79
80 ## end   gnulib module binary-io
81
82 ## begin gnulib module binary-io-tests
83
84 TESTS += test-binary-io.sh
85 check_PROGRAMS += test-binary-io
86
87 EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
88
89 ## end   gnulib module binary-io-tests
90
91 ## begin gnulib module bitrotate-tests
92
93 TESTS += test-bitrotate
94 check_PROGRAMS += test-bitrotate
95 EXTRA_DIST += test-bitrotate.c macros.h
96
97 ## end   gnulib module bitrotate-tests
98
99 ## begin gnulib module btowc-tests
100
101 TESTS += test-btowc1.sh test-btowc2.sh
102 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
103 check_PROGRAMS += test-btowc
104
105 EXTRA_DIST += test-btowc1.sh test-btowc2.sh test-btowc.c signature.h macros.h
106
107 ## end   gnulib module btowc-tests
108
109 ## begin gnulib module c-ctype-tests
110
111 TESTS += test-c-ctype
112 check_PROGRAMS += test-c-ctype
113
114 EXTRA_DIST += test-c-ctype.c macros.h
115
116 ## end   gnulib module c-ctype-tests
117
118 ## begin gnulib module c-stack-tests
119
120 TESTS += test-c-stack.sh test-c-stack2.sh
121 TESTS_ENVIRONMENT += LIBSIGSEGV='@LIBSIGSEGV@'
122 check_PROGRAMS += test-c-stack
123 test_c_stack_LDADD = $(LDADD) $(LIBCSTACK) @LIBINTL@
124 MOSTLYCLEANFILES += t-c-stack.tmp t-c-stack2.tmp
125 EXTRA_DIST += test-c-stack.c test-c-stack.sh test-c-stack2.sh macros.h
126
127 ## end   gnulib module c-stack-tests
128
129 ## begin gnulib module c-strcase-tests
130
131 TESTS += test-c-strcase.sh
132 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
133 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
134 EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
135
136 ## end   gnulib module c-strcase-tests
137
138 ## begin gnulib module dirname-tests
139
140 TESTS += test-dirname
141 check_PROGRAMS += test-dirname
142 test_dirname_LDADD = $(LDADD) @LIBINTL@
143 EXTRA_DIST += test-dirname.c
144
145 ## end   gnulib module dirname-tests
146
147 ## begin gnulib module dup2-tests
148
149 TESTS += test-dup2
150 check_PROGRAMS += test-dup2
151 EXTRA_DIST += test-dup2.c signature.h macros.h
152
153 ## end   gnulib module dup2-tests
154
155 ## begin gnulib module environ-tests
156
157 TESTS += test-environ
158 check_PROGRAMS += test-environ
159
160 EXTRA_DIST += test-environ.c
161
162 ## end   gnulib module environ-tests
163
164 ## begin gnulib module errno-tests
165
166 TESTS += test-errno
167 check_PROGRAMS += test-errno
168
169 EXTRA_DIST += test-errno.c
170
171 ## end   gnulib module errno-tests
172
173 ## begin gnulib module exclude-tests
174
175 TESTS += \
176  test-exclude1.sh\
177  test-exclude2.sh\
178  test-exclude3.sh\
179  test-exclude4.sh\
180  test-exclude5.sh\
181  test-exclude6.sh\
182  test-exclude7.sh\
183  test-exclude8.sh
184
185 check_PROGRAMS += test-exclude
186 test_exclude_LDADD = $(LDADD) @LIBINTL@
187 EXTRA_DIST += test-exclude.c test-exclude1.sh test-exclude2.sh test-exclude3.sh test-exclude4.sh test-exclude5.sh test-exclude6.sh test-exclude7.sh test-exclude8.sh
188
189 ## end   gnulib module exclude-tests
190
191 ## begin gnulib module fcntl-h-tests
192
193 TESTS += test-fcntl-h
194 check_PROGRAMS += test-fcntl-h
195 EXTRA_DIST += test-fcntl-h.c
196
197 ## end   gnulib module fcntl-h-tests
198
199 ## begin gnulib module fcntl-tests
200
201 TESTS += test-fcntl
202 check_PROGRAMS += test-fcntl
203 EXTRA_DIST += test-fcntl.c signature.h macros.h
204
205 ## end   gnulib module fcntl-tests
206
207 ## begin gnulib module filenamecat-tests
208
209 TESTS += test-filenamecat
210 check_PROGRAMS += test-filenamecat
211 test_filenamecat_LDADD = $(LDADD) @LIBINTL@
212 EXTRA_DIST += test-filenamecat.c
213
214 ## end   gnulib module filenamecat-tests
215
216 ## begin gnulib module float
217
218 BUILT_SOURCES += $(FLOAT_H)
219
220 # We need the following in order to create <float.h> when the system
221 # doesn't have one that works with the given compiler.
222 if GL_GENERATE_FLOAT_H
223 float.h: float.in.h $(top_builddir)/config.status
224         $(AM_V_GEN)rm -f $@-t $@ && \
225         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
226           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
227               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
228               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
229               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
230               -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
231               < $(srcdir)/float.in.h; \
232         } > $@-t && \
233         mv $@-t $@
234 else
235 float.h: $(top_builddir)/config.status
236         rm -f $@
237 endif
238 MOSTLYCLEANFILES += float.h float.h-t
239
240 EXTRA_DIST += float.c float.in.h
241
242 EXTRA_libtests_a_SOURCES += float.c
243
244 ## end   gnulib module float
245
246 ## begin gnulib module float-tests
247
248 TESTS += test-float
249 check_PROGRAMS += test-float
250 EXTRA_DIST += test-float.c macros.h
251
252 ## end   gnulib module float-tests
253
254 ## begin gnulib module fnmatch-tests
255
256 TESTS += test-fnmatch
257 check_PROGRAMS += test-fnmatch
258 EXTRA_DIST += test-fnmatch.c signature.h macros.h
259
260 ## end   gnulib module fnmatch-tests
261
262 ## begin gnulib module fpucw
263
264
265 EXTRA_DIST += fpucw.h
266
267 ## end   gnulib module fpucw
268
269 ## begin gnulib module freopen-safer-tests
270
271 TESTS += test-freopen-safer
272 check_PROGRAMS += test-freopen-safer
273 EXTRA_DIST += test-freopen-safer.c macros.h
274
275 ## end   gnulib module freopen-safer-tests
276
277 ## begin gnulib module freopen-tests
278
279 TESTS += test-freopen
280 check_PROGRAMS += test-freopen
281
282 EXTRA_DIST += test-freopen.c signature.h macros.h
283
284 ## end   gnulib module freopen-tests
285
286 ## begin gnulib module getcwd-lgpl
287
288
289 EXTRA_DIST += getcwd-lgpl.c
290
291 EXTRA_libtests_a_SOURCES += getcwd-lgpl.c
292
293 ## end   gnulib module getcwd-lgpl
294
295 ## begin gnulib module getcwd-lgpl-tests
296
297 TESTS += test-getcwd-lgpl
298 check_PROGRAMS += test-getcwd-lgpl
299 EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
300
301 ## end   gnulib module getcwd-lgpl-tests
302
303 ## begin gnulib module getdtablesize-tests
304
305 TESTS += test-getdtablesize
306 check_PROGRAMS += test-getdtablesize
307 EXTRA_DIST += test-getdtablesize.c signature.h macros.h
308
309 ## end   gnulib module getdtablesize-tests
310
311 ## begin gnulib module getopt-posix-tests
312
313 TESTS += test-getopt
314 check_PROGRAMS += test-getopt
315 test_getopt_LDADD = $(LDADD) $(LIBINTL)
316 EXTRA_DIST += macros.h signature.h test-getopt.c test-getopt.h test-getopt_long.h
317
318 ## end   gnulib module getopt-posix-tests
319
320 ## begin gnulib module getpagesize
321
322
323 EXTRA_DIST += getpagesize.c
324
325 EXTRA_libtests_a_SOURCES += getpagesize.c
326
327 ## end   gnulib module getpagesize
328
329 ## begin gnulib module gettimeofday-tests
330
331 TESTS += test-gettimeofday
332 check_PROGRAMS += test-gettimeofday
333
334 EXTRA_DIST += signature.h test-gettimeofday.c
335
336 ## end   gnulib module gettimeofday-tests
337
338 ## begin gnulib module hash-pjw
339
340 libtests_a_SOURCES += hash-pjw.h hash-pjw.c
341
342 ## end   gnulib module hash-pjw
343
344 ## begin gnulib module hash-tests
345
346 TESTS += test-hash
347 check_PROGRAMS += test-hash
348 EXTRA_DIST += test-hash.c macros.h
349
350 ## end   gnulib module hash-tests
351
352 ## begin gnulib module iconv-h-tests
353
354 TESTS += test-iconv-h
355 check_PROGRAMS += test-iconv-h
356 EXTRA_DIST += test-iconv-h.c
357
358 ## end   gnulib module iconv-h-tests
359
360 ## begin gnulib module iconv-tests
361
362 TESTS += test-iconv
363 check_PROGRAMS += test-iconv
364 test_iconv_LDADD = $(LDADD) @LIBICONV@
365
366 EXTRA_DIST += test-iconv.c signature.h macros.h
367
368 ## end   gnulib module iconv-tests
369
370 ## begin gnulib module ignore-value-tests
371
372 TESTS += test-ignore-value
373 check_PROGRAMS += test-ignore-value
374 EXTRA_DIST += test-ignore-value.c
375
376 ## end   gnulib module ignore-value-tests
377
378 ## begin gnulib module intprops-tests
379
380 TESTS += test-intprops
381 check_PROGRAMS += test-intprops
382 EXTRA_DIST += test-intprops.c macros.h
383
384 ## end   gnulib module intprops-tests
385
386 ## begin gnulib module inttostr-tests
387
388 TESTS += test-inttostr
389 check_PROGRAMS += test-inttostr
390 EXTRA_DIST += macros.h test-inttostr.c
391
392 ## end   gnulib module inttostr-tests
393
394 ## begin gnulib module inttypes-tests
395
396 TESTS += test-inttypes
397 check_PROGRAMS += test-inttypes
398 EXTRA_DIST += test-inttypes.c
399
400 ## end   gnulib module inttypes-tests
401
402 ## begin gnulib module iswblank-tests
403
404 TESTS += test-iswblank
405 check_PROGRAMS += test-iswblank
406 EXTRA_DIST += test-iswblank.c macros.h
407
408 ## end   gnulib module iswblank-tests
409
410 ## begin gnulib module langinfo-tests
411
412 TESTS += test-langinfo
413 check_PROGRAMS += test-langinfo
414 EXTRA_DIST += test-langinfo.c
415
416 ## end   gnulib module langinfo-tests
417
418 ## begin gnulib module locale
419
420 BUILT_SOURCES += locale.h
421
422 # We need the following in order to create <locale.h> when the system
423 # doesn't have one that provides all definitions.
424 locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
425         $(AM_V_GEN)rm -f $@-t $@ && \
426         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
427           sed -e 's|@''GUARD_PREFIX''@|GL|g' \
428               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
429               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
430               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
431               -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
432               -e 's/@''GNULIB_SETLOCALE''@/$(GNULIB_SETLOCALE)/g' \
433               -e 's/@''GNULIB_DUPLOCALE''@/$(GNULIB_DUPLOCALE)/g' \
434               -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
435               -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
436               -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \
437               -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
438               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
439               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
440               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
441               < $(srcdir)/locale.in.h; \
442         } > $@-t && \
443         mv $@-t $@
444 MOSTLYCLEANFILES += locale.h locale.h-t
445
446 EXTRA_DIST += locale.in.h
447
448 ## end   gnulib module locale
449
450 ## begin gnulib module locale-tests
451
452 TESTS += test-locale
453 check_PROGRAMS += test-locale
454 EXTRA_DIST += test-locale.c
455
456 ## end   gnulib module locale-tests
457
458 ## begin gnulib module lstat-tests
459
460 TESTS += test-lstat
461 check_PROGRAMS += test-lstat
462 EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
463
464 ## end   gnulib module lstat-tests
465
466 ## begin gnulib module malloc-gnu-tests
467
468 TESTS += test-malloc-gnu
469 check_PROGRAMS += test-malloc-gnu
470 EXTRA_DIST += test-malloc-gnu.c
471
472 ## end   gnulib module malloc-gnu-tests
473
474 ## begin gnulib module malloca-tests
475
476 TESTS += test-malloca
477 check_PROGRAMS += test-malloca
478
479 EXTRA_DIST += test-malloca.c
480
481 ## end   gnulib module malloca-tests
482
483 ## begin gnulib module mbrtowc-tests
484
485 TESTS += \
486   test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
487   test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
488   test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh
489 TESTS_ENVIRONMENT += \
490   LOCALE_FR='@LOCALE_FR@' \
491   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
492   LOCALE_JA='@LOCALE_JA@' \
493   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
494 check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
495
496 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
497
498 ## end   gnulib module mbrtowc-tests
499
500 ## begin gnulib module mbscasecmp-tests
501
502 TESTS += test-mbscasecmp.sh
503 TESTS_ENVIRONMENT += LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
504 check_PROGRAMS += test-mbscasecmp
505
506 EXTRA_DIST += test-mbscasecmp.sh test-mbscasecmp.c macros.h
507
508 ## end   gnulib module mbscasecmp-tests
509
510 ## begin gnulib module mbsinit-tests
511
512 TESTS += test-mbsinit.sh
513 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
514 check_PROGRAMS += test-mbsinit
515
516 EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h
517
518 ## end   gnulib module mbsinit-tests
519
520 ## begin gnulib module mbsrtowcs-tests
521
522 TESTS += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh
523 TESTS_ENVIRONMENT += \
524   LOCALE_FR='@LOCALE_FR@' \
525   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
526   LOCALE_JA='@LOCALE_JA@' \
527   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
528 check_PROGRAMS += test-mbsrtowcs
529
530 EXTRA_DIST += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh test-mbsrtowcs.c signature.h macros.h
531
532 ## end   gnulib module mbsrtowcs-tests
533
534 ## begin gnulib module mbsstr-tests
535
536 TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh
537 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
538 check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3
539
540 EXTRA_DIST += test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh test-mbsstr3.c macros.h
541
542 ## end   gnulib module mbsstr-tests
543
544 ## begin gnulib module memchr-tests
545
546 TESTS += test-memchr
547 check_PROGRAMS += test-memchr
548 EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
549
550 ## end   gnulib module memchr-tests
551
552 ## begin gnulib module nl_langinfo-tests
553
554 TESTS += test-nl_langinfo.sh
555 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
556 check_PROGRAMS += test-nl_langinfo
557 EXTRA_DIST += test-nl_langinfo.sh test-nl_langinfo.c signature.h macros.h
558
559 ## end   gnulib module nl_langinfo-tests
560
561 ## begin gnulib module open-tests
562
563 TESTS += test-open
564 check_PROGRAMS += test-open
565 EXTRA_DIST += test-open.h test-open.c signature.h macros.h
566
567 ## end   gnulib module open-tests
568
569 ## begin gnulib module putenv
570
571
572 EXTRA_DIST += putenv.c
573
574 EXTRA_libtests_a_SOURCES += putenv.c
575
576 ## end   gnulib module putenv
577
578 ## begin gnulib module quotearg-simple-tests
579
580 TESTS += test-quotearg-simple
581 check_PROGRAMS += test-quotearg-simple
582 test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@
583 EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h
584
585 ## end   gnulib module quotearg-simple-tests
586
587 ## begin gnulib module same-inode
588
589
590 EXTRA_DIST += same-inode.h
591
592 ## end   gnulib module same-inode
593
594 ## begin gnulib module setenv
595
596
597 EXTRA_DIST += setenv.c
598
599 EXTRA_libtests_a_SOURCES += setenv.c
600
601 ## end   gnulib module setenv
602
603 ## begin gnulib module setenv-tests
604
605 TESTS += test-setenv
606 check_PROGRAMS += test-setenv
607 EXTRA_DIST += test-setenv.c signature.h macros.h
608
609 ## end   gnulib module setenv-tests
610
611 ## begin gnulib module setlocale
612
613
614 EXTRA_DIST += setlocale.c
615
616 EXTRA_libtests_a_SOURCES += setlocale.c
617
618 ## end   gnulib module setlocale
619
620 ## begin gnulib module setlocale-tests
621
622 TESTS += test-setlocale1.sh test-setlocale2.sh
623 TESTS_ENVIRONMENT += \
624   LOCALE_FR='@LOCALE_FR@' \
625   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
626   LOCALE_JA='@LOCALE_JA@' \
627   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
628 check_PROGRAMS += test-setlocale1 test-setlocale2
629 EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
630
631 ## end   gnulib module setlocale-tests
632
633 ## begin gnulib module sigaction-tests
634
635 TESTS += test-sigaction
636 check_PROGRAMS += test-sigaction
637 EXTRA_DIST += test-sigaction.c signature.h macros.h
638
639 ## end   gnulib module sigaction-tests
640
641 ## begin gnulib module signal-tests
642
643 TESTS += test-signal
644 check_PROGRAMS += test-signal
645 EXTRA_DIST += test-signal.c
646
647 ## end   gnulib module signal-tests
648
649 ## begin gnulib module sigprocmask-tests
650
651 TESTS += test-sigprocmask
652 check_PROGRAMS += test-sigprocmask
653 EXTRA_DIST += test-sigprocmask.c signature.h macros.h
654
655 ## end   gnulib module sigprocmask-tests
656
657 ## begin gnulib module size_max
658
659 libtests_a_SOURCES += size_max.h
660
661 ## end   gnulib module size_max
662
663 ## begin gnulib module sleep
664
665
666 EXTRA_DIST += sleep.c
667
668 EXTRA_libtests_a_SOURCES += sleep.c
669
670 ## end   gnulib module sleep
671
672 ## begin gnulib module sleep-tests
673
674 TESTS += test-sleep
675 check_PROGRAMS += test-sleep
676 EXTRA_DIST += test-sleep.c signature.h macros.h
677
678 ## end   gnulib module sleep-tests
679
680 ## begin gnulib module snippet/_Noreturn
681
682 # Because this Makefile snippet defines a variable used by other
683 # gnulib Makefile snippets, it must be present in all Makefile.am that
684 # need it. This is ensured by the applicability 'all' defined above.
685
686 _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
687
688 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
689
690 ## end   gnulib module snippet/_Noreturn
691
692 ## begin gnulib module snippet/arg-nonnull
693
694 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
695 # statements but through direct file reference. Therefore this snippet must be
696 # present in all Makefile.am that need it. This is ensured by the applicability
697 # 'all' defined above.
698
699 BUILT_SOURCES += arg-nonnull.h
700 # The arg-nonnull.h that gets inserted into generated .h files is the same as
701 # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
702 # off.
703 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
704         $(AM_V_GEN)rm -f $@-t $@ && \
705         sed -n -e '/GL_ARG_NONNULL/,$$p' \
706           < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
707           > $@-t && \
708         mv $@-t $@
709 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
710
711 ARG_NONNULL_H=arg-nonnull.h
712
713 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
714
715 ## end   gnulib module snippet/arg-nonnull
716
717 ## begin gnulib module snippet/c++defs
718
719 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
720 # statements but through direct file reference. Therefore this snippet must be
721 # present in all Makefile.am that need it. This is ensured by the applicability
722 # 'all' defined above.
723
724 BUILT_SOURCES += c++defs.h
725 # The c++defs.h that gets inserted into generated .h files is the same as
726 # build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
727 c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
728         $(AM_V_GEN)rm -f $@-t $@ && \
729         sed -n -e '/_GL_CXXDEFS/,$$p' \
730           < $(top_srcdir)/build-aux/snippet/c++defs.h \
731           > $@-t && \
732         mv $@-t $@
733 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
734
735 CXXDEFS_H=c++defs.h
736
737 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
738
739 ## end   gnulib module snippet/c++defs
740
741 ## begin gnulib module snippet/unused-parameter
742
743 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
744 # statements but through direct file reference. Therefore this snippet must be
745 # present in all Makefile.am that need it. This is ensured by the applicability
746 # 'all' defined above.
747
748 BUILT_SOURCES += unused-parameter.h
749 # The unused-parameter.h that gets inserted into generated .h files is the same
750 # as build-aux/snippet/unused-parameter.h, except that it has the copyright
751 # header cut off.
752 unused-parameter.h: $(top_srcdir)/build-aux/snippet/unused-parameter.h
753         $(AM_V_GEN)rm -f $@-t $@ && \
754         sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \
755           < $(top_srcdir)/build-aux/snippet/unused-parameter.h \
756           > $@-t && \
757         mv $@-t $@
758 MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t
759
760 UNUSED_PARAMETER_H=unused-parameter.h
761
762 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/unused-parameter.h
763
764 ## end   gnulib module snippet/unused-parameter
765
766 ## begin gnulib module snippet/warn-on-use
767
768 BUILT_SOURCES += warn-on-use.h
769 # The warn-on-use.h that gets inserted into generated .h files is the same as
770 # build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
771 # off.
772 warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
773         $(AM_V_GEN)rm -f $@-t $@ && \
774         sed -n -e '/^.ifndef/,$$p' \
775           < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
776           > $@-t && \
777         mv $@-t $@
778 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
779
780 WARN_ON_USE_H=warn-on-use.h
781
782 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
783
784 ## end   gnulib module snippet/warn-on-use
785
786 ## begin gnulib module snprintf
787
788
789 EXTRA_DIST += snprintf.c
790
791 EXTRA_libtests_a_SOURCES += snprintf.c
792
793 ## end   gnulib module snprintf
794
795 ## begin gnulib module snprintf-tests
796
797 TESTS += test-snprintf
798 check_PROGRAMS += test-snprintf
799
800 EXTRA_DIST += test-snprintf.c signature.h macros.h
801
802 ## end   gnulib module snprintf-tests
803
804 ## begin gnulib module stat-tests
805
806 TESTS += test-stat
807 check_PROGRAMS += test-stat
808 EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
809
810 ## end   gnulib module stat-tests
811
812 ## begin gnulib module stat-time-tests
813
814 TESTS += test-stat-time
815 check_PROGRAMS += test-stat-time
816 EXTRA_DIST += test-stat-time.c macros.h
817
818 ## end   gnulib module stat-time-tests
819
820 ## begin gnulib module stdbool-tests
821
822 TESTS += test-stdbool
823 check_PROGRAMS += test-stdbool
824 EXTRA_DIST += test-stdbool.c
825
826 ## end   gnulib module stdbool-tests
827
828 ## begin gnulib module stddef-tests
829
830 TESTS += test-stddef
831 check_PROGRAMS += test-stddef
832 EXTRA_DIST += test-stddef.c
833
834 ## end   gnulib module stddef-tests
835
836 ## begin gnulib module stdint-tests
837
838 TESTS += test-stdint
839 check_PROGRAMS += test-stdint
840 EXTRA_DIST += test-stdint.c
841
842 ## end   gnulib module stdint-tests
843
844 ## begin gnulib module stdio-tests
845
846 TESTS += test-stdio
847 check_PROGRAMS += test-stdio
848 EXTRA_DIST += test-stdio.c
849
850 ## end   gnulib module stdio-tests
851
852 ## begin gnulib module stdlib-tests
853
854 TESTS += test-stdlib
855 check_PROGRAMS += test-stdlib
856 EXTRA_DIST += test-stdlib.c test-sys_wait.h
857
858 ## end   gnulib module stdlib-tests
859
860 ## begin gnulib module strerror-tests
861
862 TESTS += test-strerror
863 check_PROGRAMS += test-strerror
864 EXTRA_DIST += test-strerror.c signature.h macros.h
865
866 ## end   gnulib module strerror-tests
867
868 ## begin gnulib module strftime-tests
869
870 TESTS += test-strftime
871 check_PROGRAMS += test-strftime
872 EXTRA_DIST += test-strftime.c macros.h
873
874 ## end   gnulib module strftime-tests
875
876 ## begin gnulib module striconv-tests
877
878 TESTS += test-striconv
879 check_PROGRAMS += test-striconv
880 test_striconv_LDADD = $(LDADD) @LIBICONV@
881
882 EXTRA_DIST += test-striconv.c macros.h
883
884 ## end   gnulib module striconv-tests
885
886 ## begin gnulib module string-tests
887
888 TESTS += test-string
889 check_PROGRAMS += test-string
890 EXTRA_DIST += test-string.c
891
892 ## end   gnulib module string-tests
893
894 ## begin gnulib module strings-tests
895
896 TESTS += test-strings
897 check_PROGRAMS += test-strings
898 EXTRA_DIST += test-strings.c
899
900 ## end   gnulib module strings-tests
901
902 ## begin gnulib module strnlen-tests
903
904 TESTS += test-strnlen
905 check_PROGRAMS += test-strnlen
906 EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
907
908 ## end   gnulib module strnlen-tests
909
910 ## begin gnulib module strtoumax-tests
911
912 TESTS += test-strtoumax
913 check_PROGRAMS += test-strtoumax
914 EXTRA_DIST += test-strtoumax.c signature.h macros.h
915
916 ## end   gnulib module strtoumax-tests
917
918 ## begin gnulib module symlink
919
920
921 EXTRA_DIST += symlink.c
922
923 EXTRA_libtests_a_SOURCES += symlink.c
924
925 ## end   gnulib module symlink
926
927 ## begin gnulib module symlink-tests
928
929 TESTS += test-symlink
930 check_PROGRAMS += test-symlink
931 EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
932
933 ## end   gnulib module symlink-tests
934
935 ## begin gnulib module sys_stat-tests
936
937 TESTS += test-sys_stat
938 check_PROGRAMS += test-sys_stat
939 EXTRA_DIST += test-sys_stat.c
940
941 ## end   gnulib module sys_stat-tests
942
943 ## begin gnulib module sys_time-tests
944
945 TESTS += test-sys_time
946 check_PROGRAMS += test-sys_time
947 EXTRA_DIST += test-sys_time.c
948
949 ## end   gnulib module sys_time-tests
950
951 ## begin gnulib module sys_wait-tests
952
953 TESTS += test-sys_wait
954 check_PROGRAMS += test-sys_wait
955 EXTRA_DIST += test-sys_wait.c test-sys_wait.h
956
957 ## end   gnulib module sys_wait-tests
958
959 ## begin gnulib module time-tests
960
961 TESTS += test-time
962 check_PROGRAMS += test-time
963 EXTRA_DIST += test-time.c
964
965 ## end   gnulib module time-tests
966
967 ## begin gnulib module unistd-tests
968
969 TESTS += test-unistd
970 check_PROGRAMS += test-unistd
971 EXTRA_DIST += test-unistd.c
972
973 ## end   gnulib module unistd-tests
974
975 ## begin gnulib module unistr/u8-mbtoucr-tests
976
977 TESTS += test-u8-mbtoucr
978 check_PROGRAMS += test-u8-mbtoucr
979 test_u8_mbtoucr_SOURCES = unistr/test-u8-mbtoucr.c
980 test_u8_mbtoucr_LDADD = $(LDADD) $(LIBUNISTRING)
981 EXTRA_DIST += unistr/test-u8-mbtoucr.c macros.h
982
983 ## end   gnulib module unistr/u8-mbtoucr-tests
984
985 ## begin gnulib module unistr/u8-uctomb-tests
986
987 TESTS += test-u8-uctomb
988 check_PROGRAMS += test-u8-uctomb
989 test_u8_uctomb_SOURCES = unistr/test-u8-uctomb.c
990 test_u8_uctomb_LDADD = $(LDADD) $(LIBUNISTRING)
991 EXTRA_DIST += unistr/test-u8-uctomb.c macros.h
992
993 ## end   gnulib module unistr/u8-uctomb-tests
994
995 ## begin gnulib module uniwidth/width-tests
996
997 TESTS += test-uc_width uniwidth/test-uc_width2.sh
998 check_PROGRAMS += test-uc_width test-uc_width2
999 test_uc_width_SOURCES = uniwidth/test-uc_width.c
1000 test_uc_width_LDADD = $(LDADD) $(LIBUNISTRING)
1001 test_uc_width2_SOURCES = uniwidth/test-uc_width2.c
1002 test_uc_width2_LDADD = $(LDADD) $(LIBUNISTRING)
1003 EXTRA_DIST += uniwidth/test-uc_width.c uniwidth/test-uc_width2.c uniwidth/test-uc_width2.sh macros.h
1004
1005 ## end   gnulib module uniwidth/width-tests
1006
1007 ## begin gnulib module unsetenv
1008
1009
1010 EXTRA_DIST += unsetenv.c
1011
1012 EXTRA_libtests_a_SOURCES += unsetenv.c
1013
1014 ## end   gnulib module unsetenv
1015
1016 ## begin gnulib module unsetenv-tests
1017
1018 TESTS += test-unsetenv
1019 check_PROGRAMS += test-unsetenv
1020 EXTRA_DIST += test-unsetenv.c signature.h macros.h
1021
1022 ## end   gnulib module unsetenv-tests
1023
1024 ## begin gnulib module update-copyright-tests
1025
1026 TESTS += test-update-copyright.sh
1027 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1028 EXTRA_DIST += test-update-copyright.sh
1029
1030 ## end   gnulib module update-copyright-tests
1031
1032 ## begin gnulib module usleep
1033
1034
1035 EXTRA_DIST += usleep.c
1036
1037 EXTRA_libtests_a_SOURCES += usleep.c
1038
1039 ## end   gnulib module usleep
1040
1041 ## begin gnulib module usleep-tests
1042
1043 TESTS += test-usleep
1044 check_PROGRAMS += test-usleep
1045 EXTRA_DIST += test-usleep.c signature.h macros.h
1046
1047 ## end   gnulib module usleep-tests
1048
1049 ## begin gnulib module vasnprintf
1050
1051
1052 EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h
1053
1054 EXTRA_libtests_a_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c
1055
1056 ## end   gnulib module vasnprintf
1057
1058 ## begin gnulib module vasnprintf-tests
1059
1060 TESTS += test-vasnprintf
1061 check_PROGRAMS += test-vasnprintf
1062
1063 EXTRA_DIST += test-vasnprintf.c macros.h
1064
1065 ## end   gnulib module vasnprintf-tests
1066
1067 ## begin gnulib module vc-list-files-tests
1068
1069 TESTS += test-vc-list-files-git.sh
1070 TESTS += test-vc-list-files-cvs.sh
1071 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1072 EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh init.sh
1073
1074 ## end   gnulib module vc-list-files-tests
1075
1076 ## begin gnulib module verify-tests
1077
1078 TESTS_ENVIRONMENT += MAKE='$(MAKE)'
1079 TESTS += test-verify test-verify.sh
1080 check_PROGRAMS += test-verify
1081 EXTRA_DIST += test-verify.c test-verify.sh init.sh
1082
1083 ## end   gnulib module verify-tests
1084
1085 ## begin gnulib module version-etc-tests
1086
1087 TESTS += test-version-etc.sh
1088 check_PROGRAMS += test-version-etc
1089 test_version_etc_LDADD = $(LDADD) @LIBINTL@
1090 EXTRA_DIST += test-version-etc.c test-version-etc.sh
1091
1092 ## end   gnulib module version-etc-tests
1093
1094 ## begin gnulib module wchar-tests
1095
1096 TESTS += test-wchar
1097 check_PROGRAMS += test-wchar
1098 EXTRA_DIST += test-wchar.c
1099
1100 ## end   gnulib module wchar-tests
1101
1102 ## begin gnulib module wcrtomb-tests
1103
1104 TESTS += \
1105   test-wcrtomb.sh \
1106   test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh \
1107   test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh
1108 TESTS_ENVIRONMENT += \
1109   LOCALE_FR='@LOCALE_FR@' \
1110   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1111   LOCALE_JA='@LOCALE_JA@' \
1112   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1113 check_PROGRAMS += test-wcrtomb test-wcrtomb-w32
1114
1115 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
1116
1117 ## end   gnulib module wcrtomb-tests
1118
1119 ## begin gnulib module wctob
1120
1121
1122 EXTRA_DIST += wctob.c
1123
1124 EXTRA_libtests_a_SOURCES += wctob.c
1125
1126 ## end   gnulib module wctob
1127
1128 ## begin gnulib module wctomb
1129
1130
1131 EXTRA_DIST += wctomb-impl.h wctomb.c
1132
1133 EXTRA_libtests_a_SOURCES += wctomb.c
1134
1135 ## end   gnulib module wctomb
1136
1137 ## begin gnulib module wctype-h-tests
1138
1139 TESTS += test-wctype-h
1140 check_PROGRAMS += test-wctype-h
1141 EXTRA_DIST += test-wctype-h.c macros.h
1142
1143 ## end   gnulib module wctype-h-tests
1144
1145 ## begin gnulib module wcwidth-tests
1146
1147 TESTS += test-wcwidth
1148 check_PROGRAMS += test-wcwidth
1149
1150 EXTRA_DIST += test-wcwidth.c signature.h macros.h
1151
1152 ## end   gnulib module wcwidth-tests
1153
1154 ## begin gnulib module xalloc-die-tests
1155
1156 TESTS += test-xalloc-die.sh
1157 check_PROGRAMS += test-xalloc-die
1158 test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
1159 EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh init.sh
1160
1161 ## end   gnulib module xalloc-die-tests
1162
1163 ## begin gnulib module xsize
1164
1165 libtests_a_SOURCES += xsize.h
1166
1167 ## end   gnulib module xsize
1168
1169 ## begin gnulib module xstrtol-tests
1170
1171 TESTS += test-xstrtol.sh
1172 check_PROGRAMS += test-xstrtol test-xstrtoul
1173 test_xstrtol_LDADD = $(LDADD) @LIBINTL@
1174 test_xstrtoul_LDADD = $(LDADD) @LIBINTL@
1175 EXTRA_DIST += init.sh test-xstrtol.c test-xstrtoul.c test-xstrtol.sh
1176
1177 ## end   gnulib module xstrtol-tests
1178
1179 ## begin gnulib module xstrtoumax-tests
1180
1181 TESTS += test-xstrtoumax.sh
1182 check_PROGRAMS += test-xstrtoumax
1183 test_xstrtoumax_LDADD = $(LDADD) @LIBINTL@
1184 EXTRA_DIST += init.sh test-xstrtoumax.c test-xstrtoumax.sh
1185
1186 ## end   gnulib module xstrtoumax-tests
1187
1188 # Clean up after Solaris cc.
1189 clean-local:
1190         rm -rf SunWS_cache
1191
1192 mostlyclean-local: mostlyclean-generic
1193         @for dir in '' $(MOSTLYCLEANDIRS); do \
1194           if test -n "$$dir" && test -d $$dir; then \
1195             echo "rmdir $$dir"; rmdir $$dir; \
1196           fi; \
1197         done; \
1198         :