patch/tests/Makefile.am
Andreas Gruenbacher 38d87ecb9e Fix indentation heuristic for context diffs
Diffs can be indented by a variable number of spaces, tabs, or X characters.
Make sure that intuit_diff_type() only accepts context diffs where the first
and second line are indented identically, or else another_hunk() will fail.
* src/pch.c (intuit_diff_type): Remember the indentation of the last line. Only
recognize context diff hunks with the same amount of indentation on the first
and second line.
* tests/garbage: New test case.
* tests/Makefile.am (TESTS): Add test case.
2015-01-31 22:14:01 +01:00

73 lines
1.7 KiB
Makefile

# Copyright (C) 1989-1993, 1997-1999, 2002-2003, 2006, 2009-2012 Free Software
# Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
## Process this file with automake to produce Makefile.in.
TESTS = \
asymmetric-hunks \
backup-prefix-suffix \
bad-filenames \
bad-usage \
concat-git-diff \
copy-rename \
corrupt-reject-files \
create-delete \
create-directory \
criss-cross \
crlf-handling \
dash-o-append \
empty-files \
fifo \
file-modes \
filename-choice \
git-binary-diff \
garbage \
global-reject-files \
inname \
line-numbers \
merge \
mangled-numbers-abort \
mixed-patch-types \
munged-context-format \
need-filename \
no-mode-change-git-diff \
no-newline-triggers-assert \
preserve-c-function-names \
preserve-mode-and-timestamp \
quoted-filenames \
read-only-files \
reject-format \
remember-backup-files \
remember-reject-files \
remove-directories \
symlinks \
unmodified-files \
deep-directories
XFAIL_TESTS = \
dash-o-append
EXTRA_DIST = \
$(TESTS) \
test-lib.sh
TESTS_ENVIRONMENT = \
abs_top_builddir=$(abs_top_builddir); \
export abs_top_builddir;
LOG_COMPILER = \
$(SHELL)