1
# Copyright (C) 2009 Free Software Foundation, Inc.
3
# Copying and distribution of this file, with or without modification,
4
# in any medium, are permitted without royalty provided the copyright
5
# notice and this notice are preserved.
7
# Don't recognize hunks before a filename has been specified/seen
15
# ==============================================================
22
check 'patch < n.diff || echo "Status: $?"' <<EOF
23
$PATCH: **** Only garbage was found in the patch input.
27
check 'patch -f -n < n.diff || echo "Status: $?"' <<EOF
28
can't find file to patch at input line 1
29
No file to patch. Skipping patch.
30
1 out of 1 hunk ignored
35
check 'patch f < n.diff' <<EOF
39
# ==============================================================
42
echo "The ed utility is not available; skipping ed related tests"
50
check 'patch < e.diff || echo "Status: $?"' <<EOF
51
$PATCH: **** Only garbage was found in the patch input.
55
check 'patch -f -e < e.diff || echo "Status: $?"' <<EOF
56
can't find file to patch at input line 1
57
No file to patch. Skipping patch.
63
ncheck 'patch f < e.diff'
70
# ==============================================================
82
check 'patch < h+c.diff' <<EOF
90
sed -e '1,2d' h+c.diff > c.diff
92
check 'patch < c.diff || echo "Status: $?"' <<EOF
93
$PATCH: **** Only garbage was found in the patch input.
98
check 'patch f < c.diff' <<EOF
106
# ==============================================================
116
check 'patch < h+u.diff' <<EOF
124
sed -e '1,2d' h+u.diff > u.diff
126
check 'patch < u.diff || echo "Status: $?"' <<EOF
127
$PATCH: **** Only garbage was found in the patch input.
132
check 'patch f < u.diff' <<EOF