7 source generic_test_data
9 function expected_files
14 f .git/patches/master/series
15 f .git/patches/master/status
16 f .git/patches/master/modify
17 f .git/patches/master/add
18 f .git/patches/master/remove
19 f .git/patches/master/mode
23 function patch_name_dir
27 function expected_files_dir
31 f .git/patches/master/aaa
35 function patch_name_subdir
39 function expected_files_subdir
43 d .git/patches/master/abc
44 f .git/patches/master/abc/def
48 function patch_name_subsubdir
52 function expected_files_subsubdir
56 d .git/patches/master/foo
57 d .git/patches/master/foo/bar
58 f .git/patches/master/foo/bar/patch
62 function expected_files_append
64 expected_files_subsubdir
65 echo "f .git/patches/master/append"
68 function expected_files_prepend
71 echo "f .git/patches/master/prepend"
79 generic_prepare_for_tests
81 tests
="dir subdir subsubdir"
84 guilt-new
`patch_name_$t`
86 expected_files_
$t | verify_repo .git
/patches
91 guilt-push
--all > /dev
/null
94 expected_files_append | verify_repo .git
/patches
97 guilt-pop
-a > /dev
/null
100 expected_files_prepend | verify_repo .git
/patches
103 guilt-pop
-a > /dev
/null
105 guilt-new
"white space"
106 echo -n "[whitespace] "
108 shouldfail guilt-new prepend
111 shouldfail guilt-new
/abc
114 shouldfail guilt-new .
/blah
115 echo -n "[prefix-dot] "
117 shouldfail guilt-new ..
/blah
118 echo -n "[prefix-dotdot] "
120 shouldfail guilt-new abc
/.
/blah
121 echo -n "[infix-dot] "
123 shouldfail guilt-new abc
/..
/blah
124 echo -n "[infix-dotdot] "
126 shouldfail guilt-new abc
/.
127 echo -n "[postfix-dot] "
129 shouldfail guilt-new abc
/..
130 echo -n "[postfix-dotdot] "
132 shouldfail guilt-new abc
/
133 echo -n "[postfix-slash] "