Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/testsuite/patch.tests
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/testsuite/patch.tests
r2725 r3232 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 215 # testing "test name" "command(s)" "expected result" "file input" "stdin" 216 testing "patch creates new file" \ 217 'patch 2>&1; echo $?; cat testfile; rm testfile' \ 218 "\ 219 creating testfile 220 0 221 qwerty 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" 230 testing "patch understands ...dir///dir..." \ 231 'patch -p1 2>&1; echo $?' \ 232 "\ 233 patching file dir2///file 234 patch: can't open 'dir2///file': No such file or directory 235 1 236 " "" "\ 237 --- bogus_dir///dir2///file 238 +++ bogus_dir///dir2///file 239 @@ -1,2 +1,3 @@ 240 qwe 241 +asd 242 zxc 243 " 244 178 245 rm input.orig 2>/dev/null 179 246
Note:
See TracChangeset
for help on using the changeset viewer.