aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-16 01:33:57 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-16 01:33:57 +0200
commita4160e15ec866005f3ad30c967bc4829fbb1c8e3 (patch)
tree327595a838d2f707149c03fdaea2377c595f779f /testsuite
parent6373bb7740c6256154f6b1728321fd636e4f5a2a (diff)
downloadbusybox-w32-a4160e15ec866005f3ad30c967bc4829fbb1c8e3.tar.gz
busybox-w32-a4160e15ec866005f3ad30c967bc4829fbb1c8e3.tar.bz2
busybox-w32-a4160e15ec866005f3ad30c967bc4829fbb1c8e3.zip
patch: add -N and a test for it (fails for now)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/patch.tests27
1 files changed, 26 insertions, 1 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests
index 6ee795dba..e663b32a3 100755
--- a/testsuite/patch.tests
+++ b/testsuite/patch.tests
@@ -4,7 +4,7 @@
4 4
5. ./testing.sh 5. ./testing.sh
6 6
7# testing "test name" "options" "expected result" "file input" "stdin" 7# testing "test name" "command(s)" "expected result" "file input" "stdin"
8 8
9testing "patch with old_file == new_file" \ 9testing "patch with old_file == new_file" \
10 'patch 2>&1; echo $?; cat input' \ 10 'patch 2>&1; echo $?; cat input' \
@@ -126,6 +126,31 @@ abc
126+456 126+456
127" \ 127" \
128 128
129# testing "test name" "command(s)" "expected result" "file input" "stdin"
130
131testing "patch -N ignores already applied hunk" \
132 'patch -N 2>&1; echo $?; cat input' \
133"\
134patching file input
1350
136abc
137def
138123
139" \
140"\
141abc
142def
143123
144" \
145"\
146--- input
147+++ input
148@@ -1,2 +1,3 @@
149 abc
150+def
151 123
152" \
153
129rm input.orig 2>/dev/null 154rm input.orig 2>/dev/null
130 155
131exit $FAILCOUNT 156exit $FAILCOUNT