tnef 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/ext/tnef/ChangeLog +18 -0
  3. data/ext/tnef/Makefile.in +185 -132
  4. data/ext/tnef/NEWS +4 -1
  5. data/ext/tnef/aclocal.m4 +440 -266
  6. data/ext/tnef/autom4te.cache/output.0 +7001 -0
  7. data/ext/tnef/autom4te.cache/output.1 +7001 -0
  8. data/ext/tnef/autom4te.cache/requests +159 -0
  9. data/ext/tnef/autom4te.cache/traces.0 +545 -0
  10. data/ext/tnef/autom4te.cache/traces.1 +1036 -0
  11. data/ext/tnef/compile +347 -0
  12. data/ext/tnef/config.log +971 -0
  13. data/ext/tnef/configure +380 -194
  14. data/ext/tnef/configure.in +1 -1
  15. data/ext/tnef/contrib/evolution.helper +43 -0
  16. data/ext/tnef/contrib/evolution.helper.README +11 -0
  17. data/ext/tnef/contrib/tnef-alpine.perl +91 -0
  18. data/ext/tnef/contrib/tnef-alpine.perl.README +10 -0
  19. data/ext/tnef/doc/Makefile +659 -0
  20. data/ext/tnef/doc/Makefile.in +171 -135
  21. data/ext/tnef/doc/tnef.1 +185 -0
  22. data/ext/tnef/doc/tnef.1.in +34 -32
  23. data/ext/tnef/doc/www/Makefile +585 -0
  24. data/ext/tnef/doc/www/Makefile.in +158 -115
  25. data/ext/tnef/doc/www/cgi-bin/Makefile +405 -0
  26. data/ext/tnef/doc/www/cgi-bin/Makefile.in +83 -18
  27. data/ext/tnef/doc/www/htdocs/Makefile +405 -0
  28. data/ext/tnef/doc/www/htdocs/Makefile.in +83 -18
  29. data/ext/tnef/doc/www/htdocs/index.html +51 -0
  30. data/ext/tnef/doc/www/htdocs/style.css +13 -0
  31. data/ext/tnef/src/Makefile.in +193 -135
  32. data/ext/tnef/src/replace/Makefile.in +148 -55
  33. data/ext/tnef/src/tnef.c +10 -8
  34. data/ext/tnef/test-driver +127 -0
  35. data/ext/tnef/tests/Makefile.in +158 -115
  36. data/ext/tnef/tests/cmdline/Attic/mime-types.baseline +3 -0
  37. data/ext/tnef/tests/cmdline/Attic/mime-types.test +11 -0
  38. data/ext/tnef/tests/cmdline/Makefile.in +441 -110
  39. data/ext/tnef/tests/cmdline/body-test.html.baseline +95 -95
  40. data/ext/tnef/tests/cmdline/body.baseline +2 -2
  41. data/ext/tnef/tests/cmdline/interactive.baseline +0 -0
  42. data/ext/tnef/tests/cmdline/message.html.baseline +95 -95
  43. data/ext/tnef/tests/cmdline/version.baseline +2 -2
  44. data/ext/tnef/tests/files/Makefile.in +515 -205
  45. data/ext/tnef/tests/files/baselines/Makefile.in +83 -18
  46. data/ext/tnef/tests/files/datafiles/Makefile.in +83 -18
  47. data/lib/tnef/version.rb +1 -1
  48. metadata +34 -18
@@ -1,9 +1,8 @@
1
- # Makefile.in generated by automake 1.11.3 from Makefile.am.
1
+ # Makefile.in generated by automake 1.14 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6
- # Foundation, Inc.
4
+ # Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
+
7
6
  # This Makefile.in is free software; the Free Software Foundation
8
7
  # gives unlimited permission to copy and/or distribute it,
9
8
  # with or without modifications, as long as this notice is preserved.
@@ -16,6 +15,51 @@
16
15
  @SET_MAKE@
17
16
 
18
17
  VPATH = @srcdir@
18
+ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19
+ am__make_running_with_option = \
20
+ case $${target_option-} in \
21
+ ?) ;; \
22
+ *) echo "am__make_running_with_option: internal error: invalid" \
23
+ "target option '$${target_option-}' specified" >&2; \
24
+ exit 1;; \
25
+ esac; \
26
+ has_opt=no; \
27
+ sane_makeflags=$$MAKEFLAGS; \
28
+ if $(am__is_gnu_make); then \
29
+ sane_makeflags=$$MFLAGS; \
30
+ else \
31
+ case $$MAKEFLAGS in \
32
+ *\\[\ \ ]*) \
33
+ bs=\\; \
34
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36
+ esac; \
37
+ fi; \
38
+ skip_next=no; \
39
+ strip_trailopt () \
40
+ { \
41
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42
+ }; \
43
+ for flg in $$sane_makeflags; do \
44
+ test $$skip_next = yes && { skip_next=no; continue; }; \
45
+ case $$flg in \
46
+ *=*|--*) continue;; \
47
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
48
+ -*I?*) strip_trailopt 'I';; \
49
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
50
+ -*O?*) strip_trailopt 'O';; \
51
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
52
+ -*l?*) strip_trailopt 'l';; \
53
+ -[dEDm]) skip_next=yes;; \
54
+ -[JT]) skip_next=yes;; \
55
+ esac; \
56
+ case $$flg in \
57
+ *$$target_option*) has_opt=yes; break;; \
58
+ esac; \
59
+ done; \
60
+ test $$has_opt = yes
61
+ am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62
+ am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
19
63
  pkgdatadir = $(datadir)/@PACKAGE@
20
64
  pkgincludedir = $(includedir)/@PACKAGE@
21
65
  pkglibdir = $(libdir)/@PACKAGE@
@@ -33,8 +77,9 @@ NORMAL_UNINSTALL = :
33
77
  PRE_UNINSTALL = :
34
78
  POST_UNINSTALL = :
35
79
  subdir = src/replace
36
- DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in basename.c \
37
- getopt_long.c malloc.c strdup.c
80
+ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
81
+ $(top_srcdir)/mkinstalldirs basename.c getopt_long.c strdup.c \
82
+ malloc.c $(top_srcdir)/depcomp
38
83
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39
84
  am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
40
85
  $(top_srcdir)/configure.in
@@ -47,25 +92,72 @@ CONFIG_CLEAN_VPATH_FILES =
47
92
  LIBRARIES = $(noinst_LIBRARIES)
48
93
  AR = ar
49
94
  ARFLAGS = cru
95
+ AM_V_AR = $(am__v_AR_@AM_V@)
96
+ am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
97
+ am__v_AR_0 = @echo " AR " $@;
98
+ am__v_AR_1 =
50
99
  libreplace_a_AR = $(AR) $(ARFLAGS)
51
100
  libreplace_a_DEPENDENCIES = @LIBOBJS@
52
101
  am_libreplace_a_OBJECTS = dummy.$(OBJEXT)
53
102
  libreplace_a_OBJECTS = $(am_libreplace_a_OBJECTS)
103
+ AM_V_P = $(am__v_P_@AM_V@)
104
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
105
+ am__v_P_0 = false
106
+ am__v_P_1 = :
107
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
108
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
109
+ am__v_GEN_0 = @echo " GEN " $@;
110
+ am__v_GEN_1 =
111
+ AM_V_at = $(am__v_at_@AM_V@)
112
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
113
+ am__v_at_0 = @
114
+ am__v_at_1 =
54
115
  DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
55
116
  depcomp = $(SHELL) $(top_srcdir)/depcomp
56
117
  am__depfiles_maybe = depfiles
57
118
  am__mv = mv -f
58
119
  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
59
120
  $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
121
+ AM_V_CC = $(am__v_CC_@AM_V@)
122
+ am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
123
+ am__v_CC_0 = @echo " CC " $@;
124
+ am__v_CC_1 =
60
125
  CCLD = $(CC)
61
126
  LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
127
+ AM_V_CCLD = $(am__v_CCLD_@AM_V@)
128
+ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
129
+ am__v_CCLD_0 = @echo " CCLD " $@;
130
+ am__v_CCLD_1 =
62
131
  SOURCES = $(libreplace_a_SOURCES)
63
132
  DIST_SOURCES = $(libreplace_a_SOURCES)
133
+ am__can_run_installinfo = \
134
+ case $$AM_UPDATE_INFO_DIR in \
135
+ n|no|NO) false;; \
136
+ *) (install-info --version) >/dev/null 2>&1;; \
137
+ esac
138
+ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
139
+ # Read a list of newline-separated strings from the standard input,
140
+ # and print each of them once, without duplicates. Input order is
141
+ # *not* preserved.
142
+ am__uniquify_input = $(AWK) '\
143
+ BEGIN { nonempty = 0; } \
144
+ { items[$$0] = 1; nonempty = 1; } \
145
+ END { if (nonempty) { for (i in items) print i; }; } \
146
+ '
147
+ # Make sure the list of sources is unique. This is necessary because,
148
+ # e.g., the same source file might be shared among _SOURCES variables
149
+ # for different programs/libraries.
150
+ am__define_uniq_tagged_files = \
151
+ list='$(am__tagged_files)'; \
152
+ unique=`for i in $$list; do \
153
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
154
+ done | $(am__uniquify_input)`
64
155
  ETAGS = etags
65
156
  CTAGS = ctags
66
157
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
67
158
  ACLOCAL = @ACLOCAL@
68
159
  AMTAR = @AMTAR@
160
+ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
69
161
  AUTOCONF = @AUTOCONF@
70
162
  AUTOHEADER = @AUTOHEADER@
71
163
  AUTOMAKE = @AUTOMAKE@
@@ -198,10 +290,11 @@ $(am__aclocal_m4_deps):
198
290
 
199
291
  clean-noinstLIBRARIES:
200
292
  -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
293
+
201
294
  libreplace.a: $(libreplace_a_OBJECTS) $(libreplace_a_DEPENDENCIES) $(EXTRA_libreplace_a_DEPENDENCIES)
202
- -rm -f libreplace.a
203
- $(libreplace_a_AR) libreplace.a $(libreplace_a_OBJECTS) $(libreplace_a_LIBADD)
204
- $(RANLIB) libreplace.a
295
+ $(AM_V_at)-rm -f libreplace.a
296
+ $(AM_V_AR)$(libreplace_a_AR) libreplace.a $(libreplace_a_OBJECTS) $(libreplace_a_LIBADD)
297
+ $(AM_V_at)$(RANLIB) libreplace.a
205
298
 
206
299
  mostlyclean-compile:
207
300
  -rm -f *.$(OBJEXT)
@@ -216,39 +309,28 @@ distclean-compile:
216
309
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@
217
310
 
218
311
  .c.o:
219
- @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
220
- @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
221
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313
+ @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
222
315
  @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
223
- @am__fastdepCC_FALSE@ $(COMPILE) -c $<
316
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
224
317
 
225
318
  .c.obj:
226
- @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
227
- @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
228
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320
+ @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
229
322
  @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
230
- @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
231
-
232
- ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
233
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
234
- unique=`for i in $$list; do \
235
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
236
- done | \
237
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
238
- END { if (nonempty) { for (i in files) print i; }; }'`; \
239
- mkid -fID $$unique
240
- tags: TAGS
241
-
242
- TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
243
- $(TAGS_FILES) $(LISP)
323
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
324
+
325
+ ID: $(am__tagged_files)
326
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
327
+ tags: tags-am
328
+ TAGS: tags
329
+
330
+ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
244
331
  set x; \
245
332
  here=`pwd`; \
246
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
247
- unique=`for i in $$list; do \
248
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
249
- done | \
250
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
251
- END { if (nonempty) { for (i in files) print i; }; }'`; \
333
+ $(am__define_uniq_tagged_files); \
252
334
  shift; \
253
335
  if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
254
336
  test -n "$$unique" || unique=$$empty_fix; \
@@ -260,15 +342,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
260
342
  $$unique; \
261
343
  fi; \
262
344
  fi
263
- ctags: CTAGS
264
- CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
265
- $(TAGS_FILES) $(LISP)
266
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
267
- unique=`for i in $$list; do \
268
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
269
- done | \
270
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
271
- END { if (nonempty) { for (i in files) print i; }; }'`; \
345
+ ctags: ctags-am
346
+
347
+ CTAGS: ctags
348
+ ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
349
+ $(am__define_uniq_tagged_files); \
272
350
  test -z "$(CTAGS_ARGS)$$unique" \
273
351
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
274
352
  $$unique
@@ -277,6 +355,21 @@ GTAGS:
277
355
  here=`$(am__cd) $(top_builddir) && pwd` \
278
356
  && $(am__cd) $(top_srcdir) \
279
357
  && gtags -i $(GTAGS_ARGS) "$$here"
358
+ cscopelist: cscopelist-am
359
+
360
+ cscopelist-am: $(am__tagged_files)
361
+ list='$(am__tagged_files)'; \
362
+ case "$(srcdir)" in \
363
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
364
+ *) sdir=$(subdir)/$(srcdir) ;; \
365
+ esac; \
366
+ for i in $$list; do \
367
+ if test -f "$$i"; then \
368
+ echo "$(subdir)/$$i"; \
369
+ else \
370
+ echo "$$sdir/$$i"; \
371
+ fi; \
372
+ done >> $(top_builddir)/cscope.files
280
373
 
281
374
  distclean-tags:
282
375
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -416,17 +509,17 @@ uninstall-am:
416
509
 
417
510
  .MAKE: install-am install-strip
418
511
 
419
- .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
420
- clean-noinstLIBRARIES ctags distclean distclean-compile \
421
- distclean-generic distclean-tags distdir dvi dvi-am html \
422
- html-am info info-am install install-am install-data \
423
- install-data-am install-dvi install-dvi-am install-exec \
424
- install-exec-am install-html install-html-am install-info \
425
- install-info-am install-man install-pdf install-pdf-am \
426
- install-ps install-ps-am install-strip installcheck \
427
- installcheck-am installdirs maintainer-clean \
512
+ .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
513
+ clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
514
+ distclean-compile distclean-generic distclean-tags distdir dvi \
515
+ dvi-am html html-am info info-am install install-am \
516
+ install-data install-data-am install-dvi install-dvi-am \
517
+ install-exec install-exec-am install-html install-html-am \
518
+ install-info install-info-am install-man install-pdf \
519
+ install-pdf-am install-ps install-ps-am install-strip \
520
+ installcheck installcheck-am installdirs maintainer-clean \
428
521
  maintainer-clean-generic mostlyclean mostlyclean-compile \
429
- mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
522
+ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
430
523
  uninstall-am
431
524
 
432
525
 
@@ -74,6 +74,16 @@ read_object (FILE *in)
74
74
  return attr;
75
75
  }
76
76
 
77
+ static void
78
+ free_bodies(VarLenData **bodies, int len)
79
+ {
80
+ while (len--)
81
+ {
82
+ XFREE(bodies[len]->data);
83
+ XFREE(bodies[len]);
84
+ }
85
+ }
86
+
77
87
  static File**
78
88
  get_body_files (const char* filename,
79
89
  const char pref,
@@ -386,11 +396,3 @@ parse_file (FILE* input_file, char* directory,
386
396
  return 0;
387
397
  }
388
398
 
389
- void free_bodies(VarLenData **bodies, int len)
390
- {
391
- while (len--)
392
- {
393
- XFREE(bodies[len]->data);
394
- XFREE(bodies[len]);
395
- }
396
- }
@@ -0,0 +1,127 @@
1
+ #! /bin/sh
2
+ # test-driver - basic testsuite driver script.
3
+
4
+ scriptversion=2012-06-27.10; # UTC
5
+
6
+ # Copyright (C) 2011-2013 Free Software Foundation, Inc.
7
+ #
8
+ # This program is free software; you can redistribute it and/or modify
9
+ # it under the terms of the GNU General Public License as published by
10
+ # the Free Software Foundation; either version 2, or (at your option)
11
+ # any later version.
12
+ #
13
+ # This program is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ # GNU General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU General Public License
19
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+
21
+ # As a special exception to the GNU General Public License, if you
22
+ # distribute this file as part of a program that contains a
23
+ # configuration script generated by Autoconf, you may include it under
24
+ # the same distribution terms that you use for the rest of that program.
25
+
26
+ # This file is maintained in Automake, please report
27
+ # bugs to <bug-automake@gnu.org> or send patches to
28
+ # <automake-patches@gnu.org>.
29
+
30
+ # Make unconditional expansion of undefined variables an error. This
31
+ # helps a lot in preventing typo-related bugs.
32
+ set -u
33
+
34
+ usage_error ()
35
+ {
36
+ echo "$0: $*" >&2
37
+ print_usage >&2
38
+ exit 2
39
+ }
40
+
41
+ print_usage ()
42
+ {
43
+ cat <<END
44
+ Usage:
45
+ test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
46
+ [--expect-failure={yes|no}] [--color-tests={yes|no}]
47
+ [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
48
+ The '--test-name', '--log-file' and '--trs-file' options are mandatory.
49
+ END
50
+ }
51
+
52
+ # TODO: better error handling in option parsing (in particular, ensure
53
+ # TODO: $log_file, $trs_file and $test_name are defined).
54
+ test_name= # Used for reporting.
55
+ log_file= # Where to save the output of the test script.
56
+ trs_file= # Where to save the metadata of the test run.
57
+ expect_failure=no
58
+ color_tests=no
59
+ enable_hard_errors=yes
60
+ while test $# -gt 0; do
61
+ case $1 in
62
+ --help) print_usage; exit $?;;
63
+ --version) echo "test-driver $scriptversion"; exit $?;;
64
+ --test-name) test_name=$2; shift;;
65
+ --log-file) log_file=$2; shift;;
66
+ --trs-file) trs_file=$2; shift;;
67
+ --color-tests) color_tests=$2; shift;;
68
+ --expect-failure) expect_failure=$2; shift;;
69
+ --enable-hard-errors) enable_hard_errors=$2; shift;;
70
+ --) shift; break;;
71
+ -*) usage_error "invalid option: '$1'";;
72
+ esac
73
+ shift
74
+ done
75
+
76
+ if test $color_tests = yes; then
77
+ # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
78
+ red='' # Red.
79
+ grn='' # Green.
80
+ lgn='' # Light green.
81
+ blu='' # Blue.
82
+ mgn='' # Magenta.
83
+ std='' # No color.
84
+ else
85
+ red= grn= lgn= blu= mgn= std=
86
+ fi
87
+
88
+ do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
89
+ trap "st=129; $do_exit" 1
90
+ trap "st=130; $do_exit" 2
91
+ trap "st=141; $do_exit" 13
92
+ trap "st=143; $do_exit" 15
93
+
94
+ # Test script is run here.
95
+ "$@" >$log_file 2>&1
96
+ estatus=$?
97
+ if test $enable_hard_errors = no && test $estatus -eq 99; then
98
+ estatus=1
99
+ fi
100
+
101
+ case $estatus:$expect_failure in
102
+ 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
103
+ 0:*) col=$grn res=PASS recheck=no gcopy=no;;
104
+ 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
105
+ 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
106
+ *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
107
+ *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
108
+ esac
109
+
110
+ # Report outcome to console.
111
+ echo "${col}${res}${std}: $test_name"
112
+
113
+ # Register the test result, and other relevant metadata.
114
+ echo ":test-result: $res" > $trs_file
115
+ echo ":global-test-result: $res" >> $trs_file
116
+ echo ":recheck: $recheck" >> $trs_file
117
+ echo ":copy-in-global-log: $gcopy" >> $trs_file
118
+
119
+ # Local Variables:
120
+ # mode: shell-script
121
+ # sh-indentation: 2
122
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
123
+ # time-stamp-start: "scriptversion="
124
+ # time-stamp-format: "%:y-%02m-%02d.%02H"
125
+ # time-stamp-time-zone: "UTC"
126
+ # time-stamp-end: "; # UTC"
127
+ # End:
@@ -1,9 +1,8 @@
1
- # Makefile.in generated by automake 1.11.3 from Makefile.am.
1
+ # Makefile.in generated by automake 1.14 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6
- # Foundation, Inc.
4
+ # Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
+
7
6
  # This Makefile.in is free software; the Free Software Foundation
8
7
  # gives unlimited permission to copy and/or distribute it,
9
8
  # with or without modifications, as long as this notice is preserved.
@@ -15,6 +14,51 @@
15
14
 
16
15
  @SET_MAKE@
17
16
  VPATH = @srcdir@
17
+ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18
+ am__make_running_with_option = \
19
+ case $${target_option-} in \
20
+ ?) ;; \
21
+ *) echo "am__make_running_with_option: internal error: invalid" \
22
+ "target option '$${target_option-}' specified" >&2; \
23
+ exit 1;; \
24
+ esac; \
25
+ has_opt=no; \
26
+ sane_makeflags=$$MAKEFLAGS; \
27
+ if $(am__is_gnu_make); then \
28
+ sane_makeflags=$$MFLAGS; \
29
+ else \
30
+ case $$MAKEFLAGS in \
31
+ *\\[\ \ ]*) \
32
+ bs=\\; \
33
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35
+ esac; \
36
+ fi; \
37
+ skip_next=no; \
38
+ strip_trailopt () \
39
+ { \
40
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41
+ }; \
42
+ for flg in $$sane_makeflags; do \
43
+ test $$skip_next = yes && { skip_next=no; continue; }; \
44
+ case $$flg in \
45
+ *=*|--*) continue;; \
46
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
47
+ -*I?*) strip_trailopt 'I';; \
48
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
49
+ -*O?*) strip_trailopt 'O';; \
50
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
51
+ -*l?*) strip_trailopt 'l';; \
52
+ -[dEDm]) skip_next=yes;; \
53
+ -[JT]) skip_next=yes;; \
54
+ esac; \
55
+ case $$flg in \
56
+ *$$target_option*) has_opt=yes; break;; \
57
+ esac; \
58
+ done; \
59
+ test $$has_opt = yes
60
+ am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61
+ am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
18
62
  pkgdatadir = $(datadir)/@PACKAGE@
19
63
  pkgincludedir = $(includedir)/@PACKAGE@
20
64
  pkglibdir = $(libdir)/@PACKAGE@
@@ -32,7 +76,8 @@ NORMAL_UNINSTALL = :
32
76
  PRE_UNINSTALL = :
33
77
  POST_UNINSTALL = :
34
78
  subdir = tests
35
- DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
79
+ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
80
+ $(top_srcdir)/mkinstalldirs
36
81
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37
82
  am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
38
83
  $(top_srcdir)/configure.in
@@ -42,20 +87,58 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
42
87
  CONFIG_HEADER = $(top_builddir)/src/config.h
43
88
  CONFIG_CLEAN_FILES =
44
89
  CONFIG_CLEAN_VPATH_FILES =
90
+ AM_V_P = $(am__v_P_@AM_V@)
91
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92
+ am__v_P_0 = false
93
+ am__v_P_1 = :
94
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
95
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96
+ am__v_GEN_0 = @echo " GEN " $@;
97
+ am__v_GEN_1 =
98
+ AM_V_at = $(am__v_at_@AM_V@)
99
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100
+ am__v_at_0 = @
101
+ am__v_at_1 =
45
102
  SOURCES =
46
103
  DIST_SOURCES =
47
- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
48
- html-recursive info-recursive install-data-recursive \
49
- install-dvi-recursive install-exec-recursive \
50
- install-html-recursive install-info-recursive \
51
- install-pdf-recursive install-ps-recursive install-recursive \
52
- installcheck-recursive installdirs-recursive pdf-recursive \
53
- ps-recursive uninstall-recursive
104
+ RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
105
+ ctags-recursive dvi-recursive html-recursive info-recursive \
106
+ install-data-recursive install-dvi-recursive \
107
+ install-exec-recursive install-html-recursive \
108
+ install-info-recursive install-pdf-recursive \
109
+ install-ps-recursive install-recursive installcheck-recursive \
110
+ installdirs-recursive pdf-recursive ps-recursive \
111
+ tags-recursive uninstall-recursive
112
+ am__can_run_installinfo = \
113
+ case $$AM_UPDATE_INFO_DIR in \
114
+ n|no|NO) false;; \
115
+ *) (install-info --version) >/dev/null 2>&1;; \
116
+ esac
54
117
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
55
118
  distclean-recursive maintainer-clean-recursive
56
- AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
57
- $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
119
+ am__recursive_targets = \
120
+ $(RECURSIVE_TARGETS) \
121
+ $(RECURSIVE_CLEAN_TARGETS) \
122
+ $(am__extra_recursive_targets)
123
+ AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
58
124
  distdir
125
+ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
126
+ # Read a list of newline-separated strings from the standard input,
127
+ # and print each of them once, without duplicates. Input order is
128
+ # *not* preserved.
129
+ am__uniquify_input = $(AWK) '\
130
+ BEGIN { nonempty = 0; } \
131
+ { items[$$0] = 1; nonempty = 1; } \
132
+ END { if (nonempty) { for (i in items) print i; }; } \
133
+ '
134
+ # Make sure the list of sources is unique. This is necessary because,
135
+ # e.g., the same source file might be shared among _SOURCES variables
136
+ # for different programs/libraries.
137
+ am__define_uniq_tagged_files = \
138
+ list='$(am__tagged_files)'; \
139
+ unique=`for i in $$list; do \
140
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
141
+ done | $(am__uniquify_input)`
59
142
  ETAGS = etags
60
143
  CTAGS = ctags
61
144
  DIST_SUBDIRS = $(SUBDIRS)
@@ -87,6 +170,7 @@ am__relativize = \
87
170
  reldir="$$dir2"
88
171
  ACLOCAL = @ACLOCAL@
89
172
  AMTAR = @AMTAR@
173
+ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
90
174
  AUTOCONF = @AUTOCONF@
91
175
  AUTOHEADER = @AUTOHEADER@
92
176
  AUTOMAKE = @AUTOMAKE@
@@ -215,22 +299,25 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
215
299
  $(am__aclocal_m4_deps):
216
300
 
217
301
  # This directory's subdirectories are mostly independent; you can cd
218
- # into them and run `make' without going through this Makefile.
219
- # To change the values of `make' variables: instead of editing Makefiles,
220
- # (1) if the variable is set in `config.status', edit `config.status'
221
- # (which will cause the Makefiles to be regenerated when you run `make');
222
- # (2) otherwise, pass the desired values on the `make' command line.
223
- $(RECURSIVE_TARGETS):
224
- @fail= failcom='exit 1'; \
225
- for f in x $$MAKEFLAGS; do \
226
- case $$f in \
227
- *=* | --[!k]*);; \
228
- *k*) failcom='fail=yes';; \
229
- esac; \
230
- done; \
302
+ # into them and run 'make' without going through this Makefile.
303
+ # To change the values of 'make' variables: instead of editing Makefiles,
304
+ # (1) if the variable is set in 'config.status', edit 'config.status'
305
+ # (which will cause the Makefiles to be regenerated when you run 'make');
306
+ # (2) otherwise, pass the desired values on the 'make' command line.
307
+ $(am__recursive_targets):
308
+ @fail=; \
309
+ if $(am__make_keepgoing); then \
310
+ failcom='fail=yes'; \
311
+ else \
312
+ failcom='exit 1'; \
313
+ fi; \
231
314
  dot_seen=no; \
232
315
  target=`echo $@ | sed s/-recursive//`; \
233
- list='$(SUBDIRS)'; for subdir in $$list; do \
316
+ case "$@" in \
317
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
318
+ *) list='$(SUBDIRS)' ;; \
319
+ esac; \
320
+ for subdir in $$list; do \
234
321
  echo "Making $$target in $$subdir"; \
235
322
  if test "$$subdir" = "."; then \
236
323
  dot_seen=yes; \
@@ -245,57 +332,12 @@ $(RECURSIVE_TARGETS):
245
332
  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
246
333
  fi; test -z "$$fail"
247
334
 
248
- $(RECURSIVE_CLEAN_TARGETS):
249
- @fail= failcom='exit 1'; \
250
- for f in x $$MAKEFLAGS; do \
251
- case $$f in \
252
- *=* | --[!k]*);; \
253
- *k*) failcom='fail=yes';; \
254
- esac; \
255
- done; \
256
- dot_seen=no; \
257
- case "$@" in \
258
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
259
- *) list='$(SUBDIRS)' ;; \
260
- esac; \
261
- rev=''; for subdir in $$list; do \
262
- if test "$$subdir" = "."; then :; else \
263
- rev="$$subdir $$rev"; \
264
- fi; \
265
- done; \
266
- rev="$$rev ."; \
267
- target=`echo $@ | sed s/-recursive//`; \
268
- for subdir in $$rev; do \
269
- echo "Making $$target in $$subdir"; \
270
- if test "$$subdir" = "."; then \
271
- local_target="$$target-am"; \
272
- else \
273
- local_target="$$target"; \
274
- fi; \
275
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
276
- || eval $$failcom; \
277
- done && test -z "$$fail"
278
- tags-recursive:
279
- list='$(SUBDIRS)'; for subdir in $$list; do \
280
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
281
- done
282
- ctags-recursive:
283
- list='$(SUBDIRS)'; for subdir in $$list; do \
284
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
285
- done
335
+ ID: $(am__tagged_files)
336
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
337
+ tags: tags-recursive
338
+ TAGS: tags
286
339
 
287
- ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
288
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
289
- unique=`for i in $$list; do \
290
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
291
- done | \
292
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
293
- END { if (nonempty) { for (i in files) print i; }; }'`; \
294
- mkid -fID $$unique
295
- tags: TAGS
296
-
297
- TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
298
- $(TAGS_FILES) $(LISP)
340
+ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
299
341
  set x; \
300
342
  here=`pwd`; \
301
343
  if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
@@ -311,12 +353,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
311
353
  set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
312
354
  fi; \
313
355
  done; \
314
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
315
- unique=`for i in $$list; do \
316
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
317
- done | \
318
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
319
- END { if (nonempty) { for (i in files) print i; }; }'`; \
356
+ $(am__define_uniq_tagged_files); \
320
357
  shift; \
321
358
  if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
322
359
  test -n "$$unique" || unique=$$empty_fix; \
@@ -328,15 +365,11 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328
365
  $$unique; \
329
366
  fi; \
330
367
  fi
331
- ctags: CTAGS
332
- CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
333
- $(TAGS_FILES) $(LISP)
334
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335
- unique=`for i in $$list; do \
336
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337
- done | \
338
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
339
- END { if (nonempty) { for (i in files) print i; }; }'`; \
368
+ ctags: ctags-recursive
369
+
370
+ CTAGS: ctags
371
+ ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
372
+ $(am__define_uniq_tagged_files); \
340
373
  test -z "$(CTAGS_ARGS)$$unique" \
341
374
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
342
375
  $$unique
@@ -345,6 +378,21 @@ GTAGS:
345
378
  here=`$(am__cd) $(top_builddir) && pwd` \
346
379
  && $(am__cd) $(top_srcdir) \
347
380
  && gtags -i $(GTAGS_ARGS) "$$here"
381
+ cscopelist: cscopelist-recursive
382
+
383
+ cscopelist-am: $(am__tagged_files)
384
+ list='$(am__tagged_files)'; \
385
+ case "$(srcdir)" in \
386
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
387
+ *) sdir=$(subdir)/$(srcdir) ;; \
388
+ esac; \
389
+ for i in $$list; do \
390
+ if test -f "$$i"; then \
391
+ echo "$(subdir)/$$i"; \
392
+ else \
393
+ echo "$$sdir/$$i"; \
394
+ fi; \
395
+ done >> $(top_builddir)/cscope.files
348
396
 
349
397
  distclean-tags:
350
398
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -381,13 +429,10 @@ distdir: $(DISTFILES)
381
429
  done
382
430
  @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
383
431
  if test "$$subdir" = .; then :; else \
384
- test -d "$(distdir)/$$subdir" \
385
- || $(MKDIR_P) "$(distdir)/$$subdir" \
386
- || exit 1; \
387
- fi; \
388
- done
389
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
390
- if test "$$subdir" = .; then :; else \
432
+ $(am__make_dryrun) \
433
+ || test -d "$(distdir)/$$subdir" \
434
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
435
+ || exit 1; \
391
436
  dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
392
437
  $(am__relativize); \
393
438
  new_distdir=$$reldir; \
@@ -508,21 +553,19 @@ ps-am:
508
553
 
509
554
  uninstall-am:
510
555
 
511
- .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
512
- install-am install-strip tags-recursive
513
-
514
- .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
515
- all all-am check check-am clean clean-generic ctags \
516
- ctags-recursive distclean distclean-generic distclean-tags \
517
- distdir dvi dvi-am html html-am info info-am install \
518
- install-am install-data install-data-am install-dvi \
519
- install-dvi-am install-exec install-exec-am install-html \
520
- install-html-am install-info install-info-am install-man \
521
- install-pdf install-pdf-am install-ps install-ps-am \
522
- install-strip installcheck installcheck-am installdirs \
523
- installdirs-am maintainer-clean maintainer-clean-generic \
524
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
525
- tags-recursive uninstall uninstall-am
556
+ .MAKE: $(am__recursive_targets) install-am install-strip
557
+
558
+ .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
559
+ check-am clean clean-generic cscopelist-am ctags ctags-am \
560
+ distclean distclean-generic distclean-tags distdir dvi dvi-am \
561
+ html html-am info info-am install install-am install-data \
562
+ install-data-am install-dvi install-dvi-am install-exec \
563
+ install-exec-am install-html install-html-am install-info \
564
+ install-info-am install-man install-pdf install-pdf-am \
565
+ install-ps install-ps-am install-strip installcheck \
566
+ installcheck-am installdirs installdirs-am maintainer-clean \
567
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
568
+ pdf-am ps ps-am tags tags-am uninstall uninstall-am
526
569
 
527
570
 
528
571
  # Tell versions [3.59,3.63) of GNU make to not export all variables.