3 e9ce266e 2022-03-07 op # Copyright (c) 2022 Omar Polo <op@openbsd.org>
5 e9ce266e 2022-03-07 op # Permission to use, copy, modify, and distribute this software for any
6 e9ce266e 2022-03-07 op # purpose with or without fee is hereby granted, provided that the above
7 e9ce266e 2022-03-07 op # copyright notice and this permission notice appear in all copies.
9 e9ce266e 2022-03-07 op # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 e9ce266e 2022-03-07 op # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 e9ce266e 2022-03-07 op # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 e9ce266e 2022-03-07 op # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 e9ce266e 2022-03-07 op # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 e9ce266e 2022-03-07 op # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 e9ce266e 2022-03-07 op # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 e9ce266e 2022-03-07 op test_patch_simple_add_file() {
20 e9ce266e 2022-03-07 op local testroot=`test_init patch_simple_add_file`
22 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
24 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
25 e9ce266e 2022-03-07 op test_done $testroot $ret
29 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
36 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
38 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
39 e9ce266e 2022-03-07 op test_done $testroot $ret
43 e9ce266e 2022-03-07 op echo "A eta" > $testroot/stdout.expected
44 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
46 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
47 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
48 e9ce266e 2022-03-07 op test_done $testroot $ret
52 e9ce266e 2022-03-07 op echo eta > $testroot/wt/eta.expected
53 e9ce266e 2022-03-07 op cmp -s $testroot/wt/eta.expected $testroot/wt/eta
55 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
56 e9ce266e 2022-03-07 op diff -u $testroot/wt/eta.expected $testroot/wt/eta
58 e9ce266e 2022-03-07 op test_done $testroot $ret
61 e9ce266e 2022-03-07 op test_patch_simple_rm_file() {
62 e9ce266e 2022-03-07 op local testroot=`test_init patch_simple_rm_file`
64 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
66 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
67 e9ce266e 2022-03-07 op test_done $testroot $ret
71 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
78 e9ce266e 2022-03-07 op echo "D alpha" > $testroot/stdout.expected
80 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
82 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
83 e9ce266e 2022-03-07 op test_done $testroot $ret
87 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
89 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
90 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
91 e9ce266e 2022-03-07 op test_done $testroot $ret
95 e9ce266e 2022-03-07 op if [ -f $testroot/wt/alpha ]; then
97 e9ce266e 2022-03-07 op echo "alpha still exists!"
99 e9ce266e 2022-03-07 op test_done $testroot $ret
102 e9ce266e 2022-03-07 op test_patch_simple_edit_file() {
103 e9ce266e 2022-03-07 op local testroot=`test_init patch_simple_edit_file`
105 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
107 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
108 e9ce266e 2022-03-07 op test_done $testroot $ret
112 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
117 e9ce266e 2022-03-07 op +alpha is my favourite character
120 e9ce266e 2022-03-07 op echo "M alpha" > $testroot/stdout.expected
122 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
124 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
125 e9ce266e 2022-03-07 op test_done $testroot $ret
129 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
131 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
132 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
133 e9ce266e 2022-03-07 op test_done $testroot $ret
137 e9ce266e 2022-03-07 op echo 'alpha is my favourite character' > $testroot/wt/alpha.expected
138 e9ce266e 2022-03-07 op cmp -s $testroot/wt/alpha.expected $testroot/wt/alpha
140 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
141 e9ce266e 2022-03-07 op diff -u $testroot/wt/alpha.expected $testroot/wt/alpha
143 e9ce266e 2022-03-07 op test_done $testroot $ret
146 e9ce266e 2022-03-07 op test_patch_prepend_line() {
147 e9ce266e 2022-03-07 op local testroot=`test_init patch_prepend_line`
149 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
151 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
152 e9ce266e 2022-03-07 op test_done $testroot $ret
156 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
159 e9ce266e 2022-03-07 op @@ -1 +1,2 @@
164 e9ce266e 2022-03-07 op echo "M alpha" > $testroot/stdout.expected
166 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
168 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
169 e9ce266e 2022-03-07 op test_done $testroot $ret
173 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
175 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
176 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
177 e9ce266e 2022-03-07 op test_done $testroot $ret
181 e9ce266e 2022-03-07 op echo hatsuseno > $testroot/wt/alpha.expected
182 e9ce266e 2022-03-07 op echo alpha >> $testroot/wt/alpha.expected
183 e9ce266e 2022-03-07 op cmp -s $testroot/wt/alpha.expected $testroot/wt/alpha
185 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
186 e9ce266e 2022-03-07 op diff -u $testroot/wt/alpha.expected $testroot/wt/alpha
188 e9ce266e 2022-03-07 op test_done $testroot $ret
191 e9ce266e 2022-03-07 op test_patch_replace_line() {
192 e9ce266e 2022-03-07 op local testroot=`test_init patch_replace_line`
194 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
196 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
197 e9ce266e 2022-03-07 op test_done $testroot $ret
201 e9ce266e 2022-03-07 op jot 10 > $testroot/wt/numbers
202 e9ce266e 2022-03-07 op (cd $testroot/wt/ && got add numbers && got ci -m 'add numbers') \
205 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
206 e9ce266e 2022-03-07 op test_done $testroot $ret
210 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
213 e9ce266e 2022-03-07 op @@ -3,7 +3,7 @@
224 e9ce266e 2022-03-07 op echo "M numbers" > $testroot/stdout.expected
226 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
228 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
229 e9ce266e 2022-03-07 op test_done $testroot $ret
233 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
235 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
236 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
237 e9ce266e 2022-03-07 op test_done $testroot $ret
241 e9ce266e 2022-03-07 op jot 10 | sed 's/6/foo/' > $testroot/wt/numbers.expected
242 e9ce266e 2022-03-07 op cmp -s $testroot/wt/numbers.expected $testroot/wt/numbers
244 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
245 e9ce266e 2022-03-07 op diff -u $testroot/wt/numbers.expected $testroot/wt/numbers
247 e9ce266e 2022-03-07 op test_done $testroot $ret
250 e9ce266e 2022-03-07 op test_patch_multiple_hunks() {
251 e9ce266e 2022-03-07 op local testroot=`test_init patch_replace_multiple_lines`
253 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
255 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
256 e9ce266e 2022-03-07 op test_done $testroot $ret
260 e9ce266e 2022-03-07 op jot 100 > $testroot/wt/numbers
261 e9ce266e 2022-03-07 op (cd $testroot/wt/ && got add numbers && got ci -m 'add numbers') \
264 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
265 e9ce266e 2022-03-07 op test_done $testroot $ret
269 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
272 e9ce266e 2022-03-07 op @@ -3,7 +3,7 @@
281 e9ce266e 2022-03-07 op @@ -57,7 +57,7 @@
290 e9ce266e 2022-03-07 op @@ -98,3 +98,6 @@
299 e9ce266e 2022-03-07 op echo "M numbers" > $testroot/stdout.expected
301 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
303 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
304 e9ce266e 2022-03-07 op test_done $testroot $ret
308 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
310 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
311 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
312 e9ce266e 2022-03-07 op test_done $testroot $ret
316 e9ce266e 2022-03-07 op jot 100 | sed -e 's/^6$/foo/' -e 's/^60$/foo foo/' \
317 e9ce266e 2022-03-07 op > $testroot/wt/numbers.expected
318 e9ce266e 2022-03-07 op echo "101" >> $testroot/wt/numbers.expected
319 e9ce266e 2022-03-07 op echo "102" >> $testroot/wt/numbers.expected
320 e9ce266e 2022-03-07 op echo "..." >> $testroot/wt/numbers.expected
322 e9ce266e 2022-03-07 op cmp -s $testroot/wt/numbers.expected $testroot/wt/numbers
324 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
325 e9ce266e 2022-03-07 op diff -u $testroot/wt/numbers.expected $testroot/wt/numbers
327 e9ce266e 2022-03-07 op test_done $testroot $ret
330 e9ce266e 2022-03-07 op test_patch_multiple_files() {
331 e9ce266e 2022-03-07 op local testroot=`test_init patch_multiple_files`
333 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
335 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
336 e9ce266e 2022-03-07 op test_done $testroot $ret
340 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
341 e9ce266e 2022-03-07 op --- alpha Mon Mar 7 19:02:07 2022
342 e9ce266e 2022-03-07 op +++ alpha Mon Mar 7 19:01:53 2022
343 e9ce266e 2022-03-07 op @@ -1 +1,3 @@
347 e9ce266e 2022-03-07 op --- beta Mon Mar 7 19:02:11 2022
348 e9ce266e 2022-03-07 op +++ beta Mon Mar 7 19:01:46 2022
349 e9ce266e 2022-03-07 op @@ -1 +1,3 @@
353 e9ce266e 2022-03-07 op --- gamma/delta Mon Mar 7 19:02:17 2022
354 e9ce266e 2022-03-07 op +++ gamma/delta Mon Mar 7 19:01:37 2022
360 e9ce266e 2022-03-07 op echo "M alpha" > $testroot/stdout.expected
361 e9ce266e 2022-03-07 op echo "M beta" >> $testroot/stdout.expected
362 e9ce266e 2022-03-07 op echo "M gamma/delta" >> $testroot/stdout.expected
364 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
366 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
367 e9ce266e 2022-03-07 op test_done $testrot $ret
371 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
373 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
374 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
375 e9ce266e 2022-03-07 op test_done $testroot $ret
379 e9ce266e 2022-03-07 op printf 'new\nalpha\navailable\n' > $testroot/wt/alpha.expected
380 e9ce266e 2022-03-07 op printf 'beta\nwas\nimproved\n' > $testroot/wt/beta.expected
381 e9ce266e 2022-03-07 op printf 'delta new\n' > $testroot/wt/gamma/delta.expected
383 e9ce266e 2022-03-07 op for f in alpha beta gamma/delta; do
384 e9ce266e 2022-03-07 op cmp -s $testroot/wt/$f.expected $testroot/wt/$f
386 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
387 e9ce266e 2022-03-07 op diff -u $testroot/wt/$f.expected $testroot/wt/$f
388 e9ce266e 2022-03-07 op test_done $testroot $ret
393 e9ce266e 2022-03-07 op test_done $testroot 0
396 e9ce266e 2022-03-07 op test_patch_dont_apply() {
397 e9ce266e 2022-03-07 op local testroot=`test_init patch_dont_apply`
399 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
401 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
402 e9ce266e 2022-03-07 op test_done $testroot $ret
406 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
409 e9ce266e 2022-03-07 op @@ -1 +1,2 @@
411 e9ce266e 2022-03-07 op alpha something
414 e9ce266e 2022-03-07 op echo -n > $testroot/stdout.expected
415 e9ce266e 2022-03-07 op echo "got: patch doesn't apply" > $testroot/stderr.expected
417 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) \
418 e9ce266e 2022-03-07 op > $testroot/stdout \
419 e9ce266e 2022-03-07 op 2> $testroot/stderr
421 e9ce266e 2022-03-07 op if [ $ret == 0 ]; then # should fail
422 e9ce266e 2022-03-07 op test_done $testroot 1
426 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
428 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
429 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
430 e9ce266e 2022-03-07 op test_done $testroot $ret
434 e9ce266e 2022-03-07 op cmp -s $testroot/stderr.expected $testroot/stderr
436 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
437 e9ce266e 2022-03-07 op diff -u $testroot/stderr.expected $testroot/stderr
438 e9ce266e 2022-03-07 op test_done $testroot $ret
442 e9ce266e 2022-03-07 op test_done $testroot $ret
445 e9ce266e 2022-03-07 op test_patch_malformed() {
446 e9ce266e 2022-03-07 op local testroot=`test_init patch_malformed`
448 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
450 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
451 e9ce266e 2022-03-07 op test_done $testroot $ret
455 e9ce266e 2022-03-07 op # missing "@@"
456 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
464 e9ce266e 2022-03-07 op echo -n > $testroot/stdout.expected
465 e9ce266e 2022-03-07 op echo "got: malformed patch" > $testroot/stderr.expected
467 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) \
468 e9ce266e 2022-03-07 op > $testroot/stdout \
469 e9ce266e 2022-03-07 op 2> $testroot/stderr
471 e9ce266e 2022-03-07 op if [ $ret == 0 ]; then
472 e9ce266e 2022-03-07 op echo "got managed to apply an invalid patch"
473 e9ce266e 2022-03-07 op test_done $testroot 1
477 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
479 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
480 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
481 e9ce266e 2022-03-07 op test_done $testroot $ret
485 e9ce266e 2022-03-07 op cmp -s $testroot/stderr.expected $testroot/stderr
487 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
488 e9ce266e 2022-03-07 op diff -u $testroot/stderr.expected $testroot/stderr
489 e9ce266e 2022-03-07 op test_done $testroot $ret
493 e9ce266e 2022-03-07 op # wrong first character
494 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
497 e9ce266e 2022-03-07 op @@ -1 +1,2 @@
502 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) \
503 e9ce266e 2022-03-07 op > $testroot/stdout \
504 e9ce266e 2022-03-07 op 2> $testroot/stderr
506 e9ce266e 2022-03-07 op if [ $ret == 0 ]; then
507 e9ce266e 2022-03-07 op echo "got managed to apply an invalid patch"
508 e9ce266e 2022-03-07 op test_done $testroot 1
512 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
514 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
515 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
516 e9ce266e 2022-03-07 op test_done $testroot $ret
520 e9ce266e 2022-03-07 op cmp -s $testroot/stderr.expected $testroot/stderr
522 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
523 e9ce266e 2022-03-07 op diff -u $testroot/stderr.expected $testroot/stderr
524 e9ce266e 2022-03-07 op test_done $testroot $ret
528 e9ce266e 2022-03-07 op test_done $testroot $ret
531 e9ce266e 2022-03-07 op test_patch_no_patch() {
532 e9ce266e 2022-03-07 op local testroot=`test_init patch_no_patch`
534 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
536 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
537 e9ce266e 2022-03-07 op test_done $testroot $ret
541 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
545 e9ce266e 2022-03-07 op some other nonsense
548 e9ce266e 2022-03-07 op there's no patch in here!
551 e9ce266e 2022-03-07 op echo -n > $testroot/stdout.expected
552 e9ce266e 2022-03-07 op echo "got: no patch found" > $testroot/stderr.expected
554 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) \
555 e9ce266e 2022-03-07 op > $testroot/stdout \
556 e9ce266e 2022-03-07 op 2> $testroot/stderr
558 e9ce266e 2022-03-07 op if [ $ret == 0 ]; then # should fail
559 e9ce266e 2022-03-07 op test_done $testroot 1
564 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
566 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
567 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
568 e9ce266e 2022-03-07 op test_done $testroot $ret
572 e9ce266e 2022-03-07 op cmp -s $testroot/stderr.expected $testroot/stderr
574 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
575 e9ce266e 2022-03-07 op diff -u $testroot/stderr.expected $testroot/stderr
576 e9ce266e 2022-03-07 op test_done $testroot $ret
580 e9ce266e 2022-03-07 op test_done $testroot $ret
583 e9ce266e 2022-03-07 op test_patch_equals_for_context() {
584 e9ce266e 2022-03-07 op local testroot=`test_init patch_prepend_line`
586 e9ce266e 2022-03-07 op got checkout $testroot/repo $testroot/wt > /dev/null
588 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
589 e9ce266e 2022-03-07 op test_done $testroot $ret
593 e9ce266e 2022-03-07 op cat <<EOF > $testroot/wt/patch
596 e9ce266e 2022-03-07 op @@ -1 +1,2 @@
601 e9ce266e 2022-03-07 op echo "M alpha" > $testroot/stdout.expected
603 e9ce266e 2022-03-07 op (cd $testroot/wt && got patch patch) > $testroot/stdout
605 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
606 e9ce266e 2022-03-07 op test_done $testroot $ret
610 e9ce266e 2022-03-07 op cmp -s $testroot/stdout.expected $testroot/stdout
612 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
613 e9ce266e 2022-03-07 op diff -u $testroot/stdout.expected $testroot/stdout
614 e9ce266e 2022-03-07 op test_done $testroot $ret
618 e9ce266e 2022-03-07 op echo hatsuseno > $testroot/wt/alpha.expected
619 e9ce266e 2022-03-07 op echo alpha >> $testroot/wt/alpha.expected
620 e9ce266e 2022-03-07 op cmp -s $testroot/wt/alpha.expected $testroot/wt/alpha
622 e9ce266e 2022-03-07 op if [ $ret != 0 ]; then
623 e9ce266e 2022-03-07 op diff -u $testroot/wt/alpha.expected $testroot/wt/alpha
625 e9ce266e 2022-03-07 op test_done $testroot $ret
628 e9ce266e 2022-03-07 op test_parseargs "$@"
629 e9ce266e 2022-03-07 op run_test test_patch_simple_add_file
630 e9ce266e 2022-03-07 op run_test test_patch_simple_rm_file
631 e9ce266e 2022-03-07 op run_test test_patch_simple_edit_file
632 e9ce266e 2022-03-07 op run_test test_patch_prepend_line
633 e9ce266e 2022-03-07 op run_test test_patch_replace_line
634 e9ce266e 2022-03-07 op run_test test_patch_multiple_hunks
635 e9ce266e 2022-03-07 op run_test test_patch_multiple_files
636 e9ce266e 2022-03-07 op run_test test_patch_dont_apply
637 e9ce266e 2022-03-07 op run_test test_patch_malformed
638 e9ce266e 2022-03-07 op run_test test_patch_no_patch
639 e9ce266e 2022-03-07 op run_test test_patch_equals_for_context