2 # Copyright 2008 by Denys Vlasenko
3 # Licensed under GPL v2, see file LICENSE for details.
7 # testing "test name" "options" "expected result" "file input" "stdin"
9 testing "patch with old_file == new_file" \
10 "patch; echo $?; cat input" \
20 --- input Jan 01 01:01:01 2000
21 +++ input Jan 01 01:01:01 2000
28 testing "patch with nonexistent old_file" \
29 "patch; echo $?; cat input" \
39 --- input.doesnt_exist Jan 01 01:01:01 2000
40 +++ input Jan 01 01:01:01 2000
47 testing "patch -R with nonexistent old_file" \
48 "patch -R; echo $?; cat input" \
57 --- input.doesnt_exist Jan 01 01:01:01 2000
58 +++ input Jan 01 01:01:01 2000