Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/testsuite/patch.tests

    r2725 r3232  
    176176" \
    177177
     178# testing "test name" "command(s)" "expected result" "file input" "stdin"
     179testing "patch at the beginning" \
     180    'patch 2>&1; cat input' \
     181"\
     182patching file input
     183111changed
     184444
     185555
     186666
     187777
     188888
     189999
     190" \
     191"\
     192111
     193222
     194333
     195444
     196555
     197666
     198777
     199888
     200999
     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
     215# testing "test name" "command(s)" "expected result" "file input" "stdin"
     216testing "patch creates new file" \
     217    'patch 2>&1; echo $?; cat testfile; rm testfile' \
     218"\
     219creating testfile
     2200
     221qwerty
     222" "" "\
     223--- /dev/null
     224+++ testfile
     225@@ -0,0 +1 @@
     226+qwerty
     227"
     228
     229# testing "test name" "command(s)" "expected result" "file input" "stdin"
     230testing "patch understands ...dir///dir..." \
     231    'patch -p1 2>&1; echo $?' \
     232"\
     233patching file dir2///file
     234patch: can't open 'dir2///file': No such file or directory
     2351
     236" "" "\
     237--- bogus_dir///dir2///file
     238+++ bogus_dir///dir2///file
     239@@ -1,2 +1,3 @@
     240 qwe
     241+asd
     242 zxc
     243"
     244
    178245rm input.orig 2>/dev/null
    179246
Note: See TracChangeset for help on using the changeset viewer.