# Copyright (C) 2009, 2011-2012 Free Software Foundation, Inc. # # Copying and distribution of this file, with or without modification, # in any medium, are permitted without royalty provided the copyright # notice and this notice are preserved. . $srcdir/test-lib.sh require cat use_local_patch use_tmpdir # ============================================================== cat > ab.diff < f check 'patch -b -p1 < ab.diff' < f check 'patch -b -B prefix. -p1 < ab.diff' < f check 'patch -b -z .suffix -p1 < ab.diff' < f check 'patch -b -B prefix. -z .suffix -p1 < ab.diff' < f check 'patch -b -p1 < ab.diff' < f check 'patch -b -p1 < ab.diff' < f check 'patch -b -p1 < ab.diff' < ab.diff < d/f check 'patch -b -p1 < ab.diff' < d/f check 'patch -b -B orig/ -p1 < ab.diff' < d/f check 'patch -b -B orig/ -z .orig -p1 < ab.diff' < d/f check 'patch -b -Y .orig/ -p1 < ab.diff' < d/f check 'patch -b -Y .orig/ -z .orig -p1 < ab.diff' <