commit - acf749fc600a43d8e276321e8a63cd97484f30bb
commit + ed2ff8b9f919f8d0e18e69b038e965924454da58
blob - 40309e5b82bddf39321e6da00a91b79dd7ec65b0
blob + 1dd93063dc31ca2b41015828ff3d9ee109d24fdf
--- regress/cmdline/patch.sh
+++ regress/cmdline/patch.sh
. ./common.sh
-test_patch_simple_add_file() {
- local testroot=`test_init patch_simple_add_file`
+test_patch_add_file() {
+ local testroot=`test_init patch_add_file`
got checkout $testroot/repo $testroot/wt > /dev/null
ret=$?
cat <<EOF > $testroot/wt/patch
--- /dev/null
+++ eta
-@@ -0,0 +1 @@
-+eta
+@@ -0,0 +5,5 @@
++1
++2
++3
++4
++5
EOF
(cd $testroot/wt && got patch patch) > $testroot/stdout
return 1
fi
- echo eta > $testroot/wt/eta.expected
+ jot 5 > $testroot/wt/eta.expected
cmp -s $testroot/wt/eta.expected $testroot/wt/eta
ret=$?
if [ $ret -ne 0 ]; then
}
test_parseargs "$@"
-run_test test_patch_simple_add_file
+run_test test_patch_add_file
run_test test_patch_simple_rm_file
run_test test_patch_simple_edit_file
run_test test_patch_prepend_line