Debian Codegraph @

tests/Makefile.am

raw
1 # tests for GNU diff
2
3 TESTS = \
4 basic \
5 bignum \
6 binary \
7 brief-vs-stat-zero-kernel-lies \
8 bug-64316 \
9 cmp \
10 colliding-file-names \
11 diff3 \
12 empty-file \
13 excess-slash \
14 expand-tabs \
15 help-version \
16 ifdef \
17 invalid-re \
18 function-line-vs-leading-space \
19 ignore-case \
20 ignore-matching-lines \
21 ignore-tab-expansion \
22 label-vs-func \
23 large-subopt \
24 new-file \
25 no-dereference \
26 no-newline-at-eof \
27 side-by-side \
28 side-by-side-seq \
29 starting-file \
30 stdin \
31 strcoll-0-names \
32 filename-quoting \
33 strip-trailing-cr \
34 timezone \
35 colors \
36 y2038-vs-32bit
37
38 XFAIL_TESTS = large-subopt
39
40 EXTRA_DIST = \
41 $(TESTS) init.cfg init.sh t-local.sh envvar-check \
42 large-subopt.in1 \
43 large-subopt.in2
44
45 # Note that the first lines are statements. They ensure that environment
46 # variables that can perturb tests are unset or set to expected values.
47 # The rest are envvar settings that propagate build-related Makefile
48 # variables to test scripts.
49 TESTS_ENVIRONMENT = \
50 tmp__=$${TMPDIR-/tmp}; \
51 test -d "$$tmp__" && test -w "$$tmp__" || tmp__=.; \
52 . $(srcdir)/envvar-check; \
53 TMPDIR=$$tmp__; export TMPDIR; \
54 \
55 if test -n "$$BASH_VERSION" || (eval "export v=x") 2>/dev/null; then \
56 export_with_values () { export "$$@"; }; \
57 else \
58 export_with_values () \
59 { \
60 sed_extract_var='s/=.*//'; \
61 sed_quote_value="s/'/'\\\\''/g;s/=\\(.*\\)/='\\1'/";\
62 for arg in "$$@"; do \
63 var=`echo "$$arg" | sed "$$sed_extract_var"`; \
64 arg=`echo "$$arg" | sed "$$sed_quote_value"`; \
65 eval "$$arg"; \
66 export "$$var"; \
67 done; \
68 }; \
69 fi; \
70 \
71 export_with_values \
72 VERSION='$(VERSION)' \
73 LOCALE_FR='$(LOCALE_FR)' \
74 LOCALE_FR_UTF8='$(LOCALE_FR_UTF8)' \
75 AWK=$(AWK) \
76 GREP_OPTIONS='' \
77 LC_ALL=C \
78 abs_top_builddir='$(abs_top_builddir)' \
79 abs_top_srcdir='$(abs_top_srcdir)' \
80 abs_srcdir='$(abs_srcdir)' \
81 built_programs="`$(built_programs)`" \
82 srcdir='$(srcdir)' \
83 top_srcdir='$(top_srcdir)' \
84 CC='$(CC)' \
85 DIFFUTILS_TEST_NAME=`echo $$tst|sed 's,^\./,,;s,/,-,g'` \
86 MAKE=$(MAKE) \
87 MALLOC_PERTURB_=$(MALLOC_PERTURB_) \
88 PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \
89 PACKAGE_VERSION=$(PACKAGE_VERSION) \
90 PERL='$(PERL)' \
91 SHELL='$(SHELL)' \
92 PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
93 REPLACE_GETCWD=$(REPLACE_GETCWD) \
94 PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
95 ; 9>&2
96
97 LOG_COMPILER= $(SHELL)
98
99 built_programs = \
100 echo 'spy:;@echo $$(PROGRAMS)' \
101 | { (cd ../src && MAKEFLAGS= $(MAKE) -s -f Makefile -f - spy) \
102 | tr ' ' '\n' \
103 | sed '/^$$/d; s,$(EXEEXT)$$,,' \
104 | sort -u \
105 | tr '\n' ' '; echo; } \
106 | sed 's/ $$//'
107
108 VERBOSE = yes