diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-11-28 01:41:40 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-11-28 01:41:40 +0100 |
commit | fe9403ad17d6cac5984fcb9b9e18ed755898afff (patch) | |
tree | 7e40d96c01f30b0259dad306fafc34e7ba28d565 /testsuite/patch.tests | |
parent | fa5e295600b7810b5246daab8fca69de1f9b78b7 (diff) | |
download | busybox-w32-fe9403ad17d6cac5984fcb9b9e18ed755898afff.tar.gz busybox-w32-fe9403ad17d6cac5984fcb9b9e18ed755898afff.tar.bz2 busybox-w32-fe9403ad17d6cac5984fcb9b9e18ed755898afff.zip |
add a test for patch which we currently fail
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/patch.tests')
-rwxr-xr-x | testsuite/patch.tests | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/patch.tests b/testsuite/patch.tests index ba37e8218..c604b9c1d 100755 --- a/testsuite/patch.tests +++ b/testsuite/patch.tests | |||
@@ -175,6 +175,43 @@ abc | |||
175 | 123 | 175 | 123 |
176 | " \ | 176 | " \ |
177 | 177 | ||
178 | # testing "test name" "command(s)" "expected result" "file input" "stdin" | ||
179 | testing "patch at the beginning" \ | ||
180 | 'patch 2>&1; cat input' \ | ||
181 | "\ | ||
182 | patching file input | ||
183 | 111changed | ||
184 | 444 | ||
185 | 555 | ||
186 | 666 | ||
187 | 777 | ||
188 | 888 | ||
189 | 999 | ||
190 | " \ | ||
191 | "\ | ||
192 | 111 | ||
193 | 222 | ||
194 | 333 | ||
195 | 444 | ||
196 | 555 | ||
197 | 666 | ||
198 | 777 | ||
199 | 888 | ||
200 | 999 | ||
201 | " \ | ||
202 | "\ | ||
203 | --- input | ||
204 | +++ input | ||
205 | @@ -1,6 +1,4 @@ | ||
206 | -111 | ||
207 | -222 | ||
208 | -333 | ||
209 | +111changed | ||
210 | 444 | ||
211 | 555 | ||
212 | 666 | ||
213 | " \ | ||
214 | |||
178 | rm input.orig 2>/dev/null | 215 | rm input.orig 2>/dev/null |
179 | 216 | ||
180 | exit $FAILCOUNT | 217 | exit $FAILCOUNT |