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.
- checksums.yaml +7 -0
- data/ext/tnef/ChangeLog +18 -0
- data/ext/tnef/Makefile.in +185 -132
- data/ext/tnef/NEWS +4 -1
- data/ext/tnef/aclocal.m4 +440 -266
- data/ext/tnef/autom4te.cache/output.0 +7001 -0
- data/ext/tnef/autom4te.cache/output.1 +7001 -0
- data/ext/tnef/autom4te.cache/requests +159 -0
- data/ext/tnef/autom4te.cache/traces.0 +545 -0
- data/ext/tnef/autom4te.cache/traces.1 +1036 -0
- data/ext/tnef/compile +347 -0
- data/ext/tnef/config.log +971 -0
- data/ext/tnef/configure +380 -194
- data/ext/tnef/configure.in +1 -1
- data/ext/tnef/contrib/evolution.helper +43 -0
- data/ext/tnef/contrib/evolution.helper.README +11 -0
- data/ext/tnef/contrib/tnef-alpine.perl +91 -0
- data/ext/tnef/contrib/tnef-alpine.perl.README +10 -0
- data/ext/tnef/doc/Makefile +659 -0
- data/ext/tnef/doc/Makefile.in +171 -135
- data/ext/tnef/doc/tnef.1 +185 -0
- data/ext/tnef/doc/tnef.1.in +34 -32
- data/ext/tnef/doc/www/Makefile +585 -0
- data/ext/tnef/doc/www/Makefile.in +158 -115
- data/ext/tnef/doc/www/cgi-bin/Makefile +405 -0
- data/ext/tnef/doc/www/cgi-bin/Makefile.in +83 -18
- data/ext/tnef/doc/www/htdocs/Makefile +405 -0
- data/ext/tnef/doc/www/htdocs/Makefile.in +83 -18
- data/ext/tnef/doc/www/htdocs/index.html +51 -0
- data/ext/tnef/doc/www/htdocs/style.css +13 -0
- data/ext/tnef/src/Makefile.in +193 -135
- data/ext/tnef/src/replace/Makefile.in +148 -55
- data/ext/tnef/src/tnef.c +10 -8
- data/ext/tnef/test-driver +127 -0
- data/ext/tnef/tests/Makefile.in +158 -115
- data/ext/tnef/tests/cmdline/Attic/mime-types.baseline +3 -0
- data/ext/tnef/tests/cmdline/Attic/mime-types.test +11 -0
- data/ext/tnef/tests/cmdline/Makefile.in +441 -110
- data/ext/tnef/tests/cmdline/body-test.html.baseline +95 -95
- data/ext/tnef/tests/cmdline/body.baseline +2 -2
- data/ext/tnef/tests/cmdline/interactive.baseline +0 -0
- data/ext/tnef/tests/cmdline/message.html.baseline +95 -95
- data/ext/tnef/tests/cmdline/version.baseline +2 -2
- data/ext/tnef/tests/files/Makefile.in +515 -205
- data/ext/tnef/tests/files/baselines/Makefile.in +83 -18
- data/ext/tnef/tests/files/datafiles/Makefile.in +83 -18
- data/lib/tnef/version.rb +1 -1
- metadata +34 -18
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
|
5
|
+
bin=$srcdir/../../src/tnef
|
6
|
+
tnef_file=$srcdir/test.tnef
|
7
|
+
|
8
|
+
echo > $srcdir/mime-types.output
|
9
|
+
echo $bin --list-with-mime-types $tnef_file >> $srcdir/mime-types.output 2>&1
|
10
|
+
$bin --list-with-mime-types $tnef_file >> $srcdir/mime-types.output 2>&1
|
11
|
+
check_test mime-types
|
@@ -1,9 +1,8 @@
|
|
1
|
-
# Makefile.in generated by automake 1.
|
1
|
+
# Makefile.in generated by automake 1.14 from Makefile.am.
|
2
2
|
# @configure_input@
|
3
3
|
|
4
|
-
# Copyright (C) 1994
|
5
|
-
|
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/cmdline
|
35
|
-
DIST_COMMON = $(srcdir)/Makefile.
|
79
|
+
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
80
|
+
$(top_srcdir)/mkinstalldirs $(top_srcdir)/test-driver AUTHORS
|
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,13 +87,232 @@ 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
|
-
|
48
|
-
|
104
|
+
am__can_run_installinfo = \
|
105
|
+
case $$AM_UPDATE_INFO_DIR in \
|
106
|
+
n|no|NO) false;; \
|
107
|
+
*) (install-info --version) >/dev/null 2>&1;; \
|
108
|
+
esac
|
109
|
+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
110
|
+
am__tty_colors_dummy = \
|
111
|
+
mgn= red= grn= lgn= blu= brg= std=; \
|
112
|
+
am__color_tests=no
|
113
|
+
am__tty_colors = { \
|
114
|
+
$(am__tty_colors_dummy); \
|
115
|
+
if test "X$(AM_COLOR_TESTS)" = Xno; then \
|
116
|
+
am__color_tests=no; \
|
117
|
+
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
|
118
|
+
am__color_tests=yes; \
|
119
|
+
elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
|
120
|
+
am__color_tests=yes; \
|
121
|
+
fi; \
|
122
|
+
if test $$am__color_tests = yes; then \
|
123
|
+
red='[0;31m'; \
|
124
|
+
grn='[0;32m'; \
|
125
|
+
lgn='[1;32m'; \
|
126
|
+
blu='[1;34m'; \
|
127
|
+
mgn='[0;35m'; \
|
128
|
+
brg='[1m'; \
|
129
|
+
std='[m'; \
|
130
|
+
fi; \
|
131
|
+
}
|
132
|
+
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
133
|
+
am__vpath_adj = case $$p in \
|
134
|
+
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
135
|
+
*) f=$$p;; \
|
136
|
+
esac;
|
137
|
+
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
138
|
+
am__install_max = 40
|
139
|
+
am__nobase_strip_setup = \
|
140
|
+
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
141
|
+
am__nobase_strip = \
|
142
|
+
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
143
|
+
am__nobase_list = $(am__nobase_strip_setup); \
|
144
|
+
for p in $$list; do echo "$$p $$p"; done | \
|
145
|
+
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
146
|
+
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
147
|
+
if (++n[$$2] == $(am__install_max)) \
|
148
|
+
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
149
|
+
END { for (dir in files) print dir, files[dir] }'
|
150
|
+
am__base_list = \
|
151
|
+
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
152
|
+
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
153
|
+
am__uninstall_files_from_dir = { \
|
154
|
+
test -z "$$files" \
|
155
|
+
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
156
|
+
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
157
|
+
$(am__cd) "$$dir" && rm -f $$files; }; \
|
158
|
+
}
|
159
|
+
am__recheck_rx = ^[ ]*:recheck:[ ]*
|
160
|
+
am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
|
161
|
+
am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
|
162
|
+
# A command that, given a newline-separated list of test names on the
|
163
|
+
# standard input, print the name of the tests that are to be re-run
|
164
|
+
# upon "make recheck".
|
165
|
+
am__list_recheck_tests = $(AWK) '{ \
|
166
|
+
recheck = 1; \
|
167
|
+
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
|
168
|
+
{ \
|
169
|
+
if (rc < 0) \
|
170
|
+
{ \
|
171
|
+
if ((getline line2 < ($$0 ".log")) < 0) \
|
172
|
+
recheck = 0; \
|
173
|
+
break; \
|
174
|
+
} \
|
175
|
+
else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
|
176
|
+
{ \
|
177
|
+
recheck = 0; \
|
178
|
+
break; \
|
179
|
+
} \
|
180
|
+
else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
|
181
|
+
{ \
|
182
|
+
break; \
|
183
|
+
} \
|
184
|
+
}; \
|
185
|
+
if (recheck) \
|
186
|
+
print $$0; \
|
187
|
+
close ($$0 ".trs"); \
|
188
|
+
close ($$0 ".log"); \
|
189
|
+
}'
|
190
|
+
# A command that, given a newline-separated list of test names on the
|
191
|
+
# standard input, create the global log from their .trs and .log files.
|
192
|
+
am__create_global_log = $(AWK) ' \
|
193
|
+
function fatal(msg) \
|
194
|
+
{ \
|
195
|
+
print "fatal: making $@: " msg | "cat >&2"; \
|
196
|
+
exit 1; \
|
197
|
+
} \
|
198
|
+
function rst_section(header) \
|
199
|
+
{ \
|
200
|
+
print header; \
|
201
|
+
len = length(header); \
|
202
|
+
for (i = 1; i <= len; i = i + 1) \
|
203
|
+
printf "="; \
|
204
|
+
printf "\n\n"; \
|
205
|
+
} \
|
206
|
+
{ \
|
207
|
+
copy_in_global_log = 1; \
|
208
|
+
global_test_result = "RUN"; \
|
209
|
+
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
|
210
|
+
{ \
|
211
|
+
if (rc < 0) \
|
212
|
+
fatal("failed to read from " $$0 ".trs"); \
|
213
|
+
if (line ~ /$(am__global_test_result_rx)/) \
|
214
|
+
{ \
|
215
|
+
sub("$(am__global_test_result_rx)", "", line); \
|
216
|
+
sub("[ ]*$$", "", line); \
|
217
|
+
global_test_result = line; \
|
218
|
+
} \
|
219
|
+
else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
|
220
|
+
copy_in_global_log = 0; \
|
221
|
+
}; \
|
222
|
+
if (copy_in_global_log) \
|
223
|
+
{ \
|
224
|
+
rst_section(global_test_result ": " $$0); \
|
225
|
+
while ((rc = (getline line < ($$0 ".log"))) != 0) \
|
226
|
+
{ \
|
227
|
+
if (rc < 0) \
|
228
|
+
fatal("failed to read from " $$0 ".log"); \
|
229
|
+
print line; \
|
230
|
+
}; \
|
231
|
+
printf "\n"; \
|
232
|
+
}; \
|
233
|
+
close ($$0 ".trs"); \
|
234
|
+
close ($$0 ".log"); \
|
235
|
+
}'
|
236
|
+
# Restructured Text title.
|
237
|
+
am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
|
238
|
+
# Solaris 10 'make', and several other traditional 'make' implementations,
|
239
|
+
# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
|
240
|
+
# by disabling -e (using the XSI extension "set +e") if it's set.
|
241
|
+
am__sh_e_setup = case $$- in *e*) set +e;; esac
|
242
|
+
# Default flags passed to test drivers.
|
243
|
+
am__common_driver_flags = \
|
244
|
+
--color-tests "$$am__color_tests" \
|
245
|
+
--enable-hard-errors "$$am__enable_hard_errors" \
|
246
|
+
--expect-failure "$$am__expect_failure"
|
247
|
+
# To be inserted before the command running the test. Creates the
|
248
|
+
# directory for the log if needed. Stores in $dir the directory
|
249
|
+
# containing $f, in $tst the test, in $log the log. Executes the
|
250
|
+
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
|
251
|
+
# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
|
252
|
+
# will run the test scripts (or their associated LOG_COMPILER, if
|
253
|
+
# thy have one).
|
254
|
+
am__check_pre = \
|
255
|
+
$(am__sh_e_setup); \
|
256
|
+
$(am__vpath_adj_setup) $(am__vpath_adj) \
|
257
|
+
$(am__tty_colors); \
|
258
|
+
srcdir=$(srcdir); export srcdir; \
|
259
|
+
case "$@" in \
|
260
|
+
*/*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
|
261
|
+
*) am__odir=.;; \
|
262
|
+
esac; \
|
263
|
+
test "x$$am__odir" = x"." || test -d "$$am__odir" \
|
264
|
+
|| $(MKDIR_P) "$$am__odir" || exit $$?; \
|
265
|
+
if test -f "./$$f"; then dir=./; \
|
266
|
+
elif test -f "$$f"; then dir=; \
|
267
|
+
else dir="$(srcdir)/"; fi; \
|
268
|
+
tst=$$dir$$f; log='$@'; \
|
269
|
+
if test -n '$(DISABLE_HARD_ERRORS)'; then \
|
270
|
+
am__enable_hard_errors=no; \
|
271
|
+
else \
|
272
|
+
am__enable_hard_errors=yes; \
|
273
|
+
fi; \
|
274
|
+
case " $(XFAIL_TESTS) " in \
|
275
|
+
*[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
|
276
|
+
am__expect_failure=yes;; \
|
277
|
+
*) \
|
278
|
+
am__expect_failure=no;; \
|
279
|
+
esac; \
|
280
|
+
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
|
281
|
+
# A shell command to get the names of the tests scripts with any registered
|
282
|
+
# extension removed (i.e., equivalently, the names of the test logs, with
|
283
|
+
# the '.log' extension removed). The result is saved in the shell variable
|
284
|
+
# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
|
285
|
+
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
|
286
|
+
# since that might cause problem with VPATH rewrites for suffix-less tests.
|
287
|
+
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
|
288
|
+
am__set_TESTS_bases = \
|
289
|
+
bases='$(TEST_LOGS)'; \
|
290
|
+
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
|
291
|
+
bases=`echo $$bases`
|
292
|
+
RECHECK_LOGS = $(TEST_LOGS)
|
293
|
+
AM_RECURSIVE_TARGETS = check recheck
|
294
|
+
TEST_SUITE_LOG = test-suite.log
|
295
|
+
TEST_EXTENSIONS = @EXEEXT@ .test
|
296
|
+
am__test_logs1 = $(TESTS:=.log)
|
297
|
+
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
|
298
|
+
TEST_LOGS = $(am__test_logs2:.test.log=.log)
|
299
|
+
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
|
300
|
+
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
|
301
|
+
$(TEST_LOG_FLAGS)
|
302
|
+
am__set_b = \
|
303
|
+
case '$@' in \
|
304
|
+
*/*) \
|
305
|
+
case '$*' in \
|
306
|
+
*/*) b='$*';; \
|
307
|
+
*) b=`echo '$@' | sed 's/\.log$$//'`; \
|
308
|
+
esac;; \
|
309
|
+
*) \
|
310
|
+
b='$*';; \
|
311
|
+
esac
|
49
312
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
50
313
|
ACLOCAL = @ACLOCAL@
|
51
314
|
AMTAR = @AMTAR@
|
315
|
+
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
52
316
|
AUTOCONF = @AUTOCONF@
|
53
317
|
AUTOHEADER = @AUTOHEADER@
|
54
318
|
AUTOMAKE = @AUTOMAKE@
|
@@ -174,6 +438,7 @@ CLEANFILES = *.output *.diff
|
|
174
438
|
all: all-am
|
175
439
|
|
176
440
|
.SUFFIXES:
|
441
|
+
.SUFFIXES: .log .test .test$(EXEEXT) .trs
|
177
442
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
178
443
|
@for dep in $?; do \
|
179
444
|
case '$(am__configure_deps)' in \
|
@@ -204,105 +469,168 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
|
204
469
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
205
470
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
206
471
|
$(am__aclocal_m4_deps):
|
207
|
-
tags
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
*[\ \ ]$$tst[\ \ ]*) \
|
240
|
-
xfail=`expr $$xfail + 1`; \
|
241
|
-
col=$$lgn; res=XFAIL; \
|
242
|
-
;; \
|
243
|
-
*) \
|
244
|
-
failed=`expr $$failed + 1`; \
|
245
|
-
col=$$red; res=FAIL; \
|
246
|
-
;; \
|
247
|
-
esac; \
|
248
|
-
else \
|
249
|
-
skip=`expr $$skip + 1`; \
|
250
|
-
col=$$blu; res=SKIP; \
|
251
|
-
fi; \
|
252
|
-
echo "$${col}$$res$${std}: $$tst"; \
|
253
|
-
done; \
|
254
|
-
if test "$$all" -eq 1; then \
|
255
|
-
tests="test"; \
|
256
|
-
All=""; \
|
257
|
-
else \
|
258
|
-
tests="tests"; \
|
259
|
-
All="All "; \
|
472
|
+
tags TAGS:
|
473
|
+
|
474
|
+
ctags CTAGS:
|
475
|
+
|
476
|
+
cscope cscopelist:
|
477
|
+
|
478
|
+
|
479
|
+
# Recover from deleted '.trs' file; this should ensure that
|
480
|
+
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
|
481
|
+
# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
|
482
|
+
# to avoid problems with "make -n".
|
483
|
+
.log.trs:
|
484
|
+
rm -f $< $@
|
485
|
+
$(MAKE) $(AM_MAKEFLAGS) $<
|
486
|
+
|
487
|
+
# Leading 'am--fnord' is there to ensure the list of targets does not
|
488
|
+
# expand to empty, as could happen e.g. with make check TESTS=''.
|
489
|
+
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
|
490
|
+
am--force-recheck:
|
491
|
+
@:
|
492
|
+
|
493
|
+
$(TEST_SUITE_LOG): $(TEST_LOGS)
|
494
|
+
@$(am__set_TESTS_bases); \
|
495
|
+
am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
|
496
|
+
redo_bases=`for i in $$bases; do \
|
497
|
+
am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
|
498
|
+
done`; \
|
499
|
+
if test -n "$$redo_bases"; then \
|
500
|
+
redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
|
501
|
+
redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
|
502
|
+
if $(am__make_dryrun); then :; else \
|
503
|
+
rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
|
260
504
|
fi; \
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
505
|
+
fi; \
|
506
|
+
if test -n "$$am__remaking_logs"; then \
|
507
|
+
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
|
508
|
+
"recursion detected" >&2; \
|
509
|
+
else \
|
510
|
+
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
|
511
|
+
fi; \
|
512
|
+
if $(am__make_dryrun); then :; else \
|
513
|
+
st=0; \
|
514
|
+
errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
|
515
|
+
for i in $$redo_bases; do \
|
516
|
+
test -f $$i.trs && test -r $$i.trs \
|
517
|
+
|| { echo "$$errmsg $$i.trs" >&2; st=1; }; \
|
518
|
+
test -f $$i.log && test -r $$i.log \
|
519
|
+
|| { echo "$$errmsg $$i.log" >&2; st=1; }; \
|
520
|
+
done; \
|
521
|
+
test $$st -eq 0 || exit 1; \
|
522
|
+
fi
|
523
|
+
@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
|
524
|
+
ws='[ ]'; \
|
525
|
+
results=`for b in $$bases; do echo $$b.trs; done`; \
|
526
|
+
test -n "$$results" || results=/dev/null; \
|
527
|
+
all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
|
528
|
+
pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
|
529
|
+
fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
|
530
|
+
skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
|
531
|
+
xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
|
532
|
+
xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
|
533
|
+
error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
|
534
|
+
if test `expr $$fail + $$xpass + $$error` -eq 0; then \
|
535
|
+
success=true; \
|
536
|
+
else \
|
537
|
+
success=false; \
|
538
|
+
fi; \
|
539
|
+
br='==================='; br=$$br$$br$$br$$br; \
|
540
|
+
result_count () \
|
541
|
+
{ \
|
542
|
+
if test x"$$1" = x"--maybe-color"; then \
|
543
|
+
maybe_colorize=yes; \
|
544
|
+
elif test x"$$1" = x"--no-color"; then \
|
545
|
+
maybe_colorize=no; \
|
271
546
|
else \
|
272
|
-
|
273
|
-
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
|
547
|
+
echo "$@: invalid 'result_count' usage" >&2; exit 4; \
|
274
548
|
fi; \
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
if test "$$skip" -eq 1; then \
|
280
|
-
skipped="($$skip test was not run)"; \
|
549
|
+
shift; \
|
550
|
+
desc=$$1 count=$$2; \
|
551
|
+
if test $$maybe_colorize = yes && test $$count -gt 0; then \
|
552
|
+
color_start=$$3 color_end=$$std; \
|
281
553
|
else \
|
282
|
-
|
554
|
+
color_start= color_end=; \
|
283
555
|
fi; \
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
echo
|
301
|
-
|
302
|
-
|
303
|
-
echo
|
304
|
-
|
305
|
-
|
556
|
+
echo "$${color_start}# $$desc $$count$${color_end}"; \
|
557
|
+
}; \
|
558
|
+
create_testsuite_report () \
|
559
|
+
{ \
|
560
|
+
result_count $$1 "TOTAL:" $$all "$$brg"; \
|
561
|
+
result_count $$1 "PASS: " $$pass "$$grn"; \
|
562
|
+
result_count $$1 "SKIP: " $$skip "$$blu"; \
|
563
|
+
result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
|
564
|
+
result_count $$1 "FAIL: " $$fail "$$red"; \
|
565
|
+
result_count $$1 "XPASS:" $$xpass "$$red"; \
|
566
|
+
result_count $$1 "ERROR:" $$error "$$mgn"; \
|
567
|
+
}; \
|
568
|
+
{ \
|
569
|
+
echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
|
570
|
+
$(am__rst_title); \
|
571
|
+
create_testsuite_report --no-color; \
|
572
|
+
echo; \
|
573
|
+
echo ".. contents:: :depth: 2"; \
|
574
|
+
echo; \
|
575
|
+
for b in $$bases; do echo $$b; done \
|
576
|
+
| $(am__create_global_log); \
|
577
|
+
} >$(TEST_SUITE_LOG).tmp || exit 1; \
|
578
|
+
mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
|
579
|
+
if $$success; then \
|
580
|
+
col="$$grn"; \
|
581
|
+
else \
|
582
|
+
col="$$red"; \
|
583
|
+
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
|
584
|
+
fi; \
|
585
|
+
echo "$${col}$$br$${std}"; \
|
586
|
+
echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
|
587
|
+
echo "$${col}$$br$${std}"; \
|
588
|
+
create_testsuite_report --maybe-color; \
|
589
|
+
echo "$$col$$br$$std"; \
|
590
|
+
if $$success; then :; else \
|
591
|
+
echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
|
592
|
+
if test -n "$(PACKAGE_BUGREPORT)"; then \
|
593
|
+
echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
|
594
|
+
fi; \
|
595
|
+
echo "$$col$$br$$std"; \
|
596
|
+
fi; \
|
597
|
+
$$success || exit 1
|
598
|
+
|
599
|
+
check-TESTS:
|
600
|
+
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
|
601
|
+
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
|
602
|
+
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
|
603
|
+
@set +e; $(am__set_TESTS_bases); \
|
604
|
+
log_list=`for i in $$bases; do echo $$i.log; done`; \
|
605
|
+
trs_list=`for i in $$bases; do echo $$i.trs; done`; \
|
606
|
+
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
|
607
|
+
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
|
608
|
+
exit $$?;
|
609
|
+
recheck: all
|
610
|
+
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
|
611
|
+
@set +e; $(am__set_TESTS_bases); \
|
612
|
+
bases=`for i in $$bases; do echo $$i; done \
|
613
|
+
| $(am__list_recheck_tests)` || exit 1; \
|
614
|
+
log_list=`for i in $$bases; do echo $$i.log; done`; \
|
615
|
+
log_list=`echo $$log_list`; \
|
616
|
+
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
|
617
|
+
am__force_recheck=am--force-recheck \
|
618
|
+
TEST_LOGS="$$log_list"; \
|
619
|
+
exit $$?
|
620
|
+
.test.log:
|
621
|
+
@p='$<'; \
|
622
|
+
$(am__set_b); \
|
623
|
+
$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
|
624
|
+
--log-file $$b.log --trs-file $$b.trs \
|
625
|
+
$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
|
626
|
+
"$$tst" $(AM_TESTS_FD_REDIRECT)
|
627
|
+
@am__EXEEXT_TRUE@.test$(EXEEXT).log:
|
628
|
+
@am__EXEEXT_TRUE@ @p='$<'; \
|
629
|
+
@am__EXEEXT_TRUE@ $(am__set_b); \
|
630
|
+
@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
|
631
|
+
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
|
632
|
+
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
|
633
|
+
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
|
306
634
|
|
307
635
|
distdir: $(DISTFILES)
|
308
636
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
@@ -359,6 +687,9 @@ install-strip:
|
|
359
687
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
360
688
|
fi
|
361
689
|
mostlyclean-generic:
|
690
|
+
-test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
|
691
|
+
-test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
|
692
|
+
-test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
|
362
693
|
|
363
694
|
clean-generic:
|
364
695
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
@@ -439,15 +770,15 @@ uninstall-am:
|
|
439
770
|
.MAKE: check-am install-am install-strip
|
440
771
|
|
441
772
|
.PHONY: all all-am check check-TESTS check-am clean clean-generic \
|
442
|
-
distclean distclean-generic distdir dvi
|
443
|
-
|
444
|
-
install-
|
445
|
-
install-
|
446
|
-
install-
|
447
|
-
install-
|
448
|
-
|
449
|
-
mostlyclean mostlyclean-generic pdf
|
450
|
-
uninstall-am
|
773
|
+
cscopelist-am ctags-am distclean distclean-generic distdir dvi \
|
774
|
+
dvi-am html html-am info info-am install install-am \
|
775
|
+
install-data install-data-am install-dvi install-dvi-am \
|
776
|
+
install-exec install-exec-am install-html install-html-am \
|
777
|
+
install-info install-info-am install-man install-pdf \
|
778
|
+
install-pdf-am install-ps install-ps-am install-strip \
|
779
|
+
installcheck installcheck-am installdirs maintainer-clean \
|
780
|
+
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
781
|
+
pdf-am ps ps-am recheck tags-am uninstall uninstall-am
|
451
782
|
|
452
783
|
|
453
784
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|