3 # Test the series parsing code
7 source generic_test_data
14 generic_prepare_for_tests
16 # create a patch that contains a file in a subdirectory
23 function expected_files
28 function expected_files_label
33 function expected_files_verbose_label
38 function expected_files_all
47 function expected_files_label_all
49 echo "subdir blah/sub"
56 function expected_files_verbose_all
70 function expected_files_verbose_label_all
72 echo "[subdir] blah/sub"
80 # push em all for tesing
81 guilt-push
-a > /dev
/null
83 guilt-files
> /tmp
/reg.$$
84 expected_files |
diff -u - /tmp
/reg.$$
87 guilt-files
-l > /tmp
/reg.$$
88 expected_files_label |
diff -u - /tmp
/reg.$$
91 guilt-files
-v -l > /tmp
/reg.$$
92 expected_files_verbose_label |
diff -u - /tmp
/reg.$$
93 echo -n "[verbose label] "
95 guilt-files
-a > /tmp
/reg.$$
96 expected_files_all |
diff -u - /tmp
/reg.$$
99 guilt-files
-l -a > /tmp
/reg.$$
100 expected_files_label_all |
diff -u - /tmp
/reg.$$
101 echo -n "[label all] "
103 guilt-files
-v -a > /tmp
/reg.$$
104 expected_files_verbose_all |
diff -u - /tmp
/reg.$$
105 echo -n "[verbose all] "
107 guilt-files
-v -l -a > /tmp
/reg.$$
108 expected_files_verbose_label_all |
diff -u - /tmp
/reg.$$
109 echo -n "[verbose label all] "