test_slice_tests.sh 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. #!/bin/bash
  2. LEVEL=$1
  3. set -ex
  4. if [ "$LEVEL" == '1' ]; then
  5. echo "slicing level 1"
  6. cp contrib/auto_wizard_test.json auto_wizard.json
  7. # test/browser/aaa_auto_wizard_base_setup_test.rb
  8. rm test/browser/abb_one_group_test.rb
  9. rm test/browser/admin_drag_drop_to_new_group_test.rb
  10. rm test/browser/admin_overview_test.rb
  11. rm test/browser/admin_role_test.rb
  12. # test/browser/agent_navigation_and_title_test.rb
  13. # test/browser/agent_organization_profile_test.rb
  14. rm test/browser/agent_ticket_attachment_test.rb
  15. rm test/browser/agent_ticket_create_available_types_test.rb
  16. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  17. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  18. rm test/browser/agent_ticket_create_default_type_test.rb
  19. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  20. rm test/browser/agent_ticket_email_signature_test.rb
  21. rm test/browser/agent_ticket_link_test.rb
  22. rm test/browser/agent_ticket_macro_test.rb
  23. rm test/browser/agent_ticket_merge_test.rb
  24. rm test/browser/agent_ticket_online_notification_test.rb
  25. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  26. rm test/browser/agent_ticket_overview_level0_test.rb
  27. rm test/browser/agent_ticket_overview_level1_test.rb
  28. rm test/browser/agent_ticket_overview_pending_til_test.rb
  29. rm test/browser/agent_ticket_overview_tab_test.rb
  30. rm test/browser/agent_ticket_tag_test.rb
  31. rm test/browser/agent_ticket_text_module_test.rb
  32. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  33. rm test/browser/agent_ticket_update_and_reload_test.rb
  34. rm test/browser/agent_ticket_zoom_hide_test.rb
  35. rm test/browser/agent_user_manage_test.rb
  36. rm test/browser/agent_user_profile_test.rb
  37. rm test/browser/customer_ticket_create_test.rb
  38. # test/browser/manage_test.rb
  39. # test/browser/swich_to_user_test.rb
  40. # test/browser/taskbar_session_test.rb
  41. # test/browser/taskbar_task_test.rb
  42. rm test/browser/user_access_permissions_test.rb
  43. rm test/browser/user_switch_cache_test.rb
  44. elif [ "$LEVEL" == '2' ]; then
  45. echo "slicing level 2"
  46. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  47. # test/browser/abb_one_group_test.rb
  48. rm test/browser/admin_drag_drop_to_new_group_test.rb
  49. rm test/browser/admin_overview_test.rb
  50. rm test/browser/admin_role_test.rb
  51. rm test/browser/agent_navigation_and_title_test.rb
  52. rm test/browser/agent_organization_profile_test.rb
  53. rm test/browser/agent_ticket_attachment_test.rb
  54. rm test/browser/agent_ticket_create_available_types_test.rb
  55. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  56. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  57. rm test/browser/agent_ticket_create_default_type_test.rb
  58. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  59. rm test/browser/agent_ticket_email_signature_test.rb
  60. rm test/browser/agent_ticket_link_test.rb
  61. rm test/browser/agent_ticket_macro_test.rb
  62. rm test/browser/agent_ticket_merge_test.rb
  63. rm test/browser/agent_ticket_online_notification_test.rb
  64. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  65. rm test/browser/agent_ticket_overview_level0_test.rb
  66. rm test/browser/agent_ticket_overview_level1_test.rb
  67. rm test/browser/agent_ticket_overview_pending_til_test.rb
  68. rm test/browser/agent_ticket_overview_tab_test.rb
  69. rm test/browser/agent_ticket_tag_test.rb
  70. rm test/browser/agent_ticket_text_module_test.rb
  71. # rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  72. # test/browser/agent_ticket_update_and_reload_test.rb
  73. # test/browser/agent_ticket_zoom_hide_test.rb
  74. rm test/browser/agent_user_manage_test.rb
  75. rm test/browser/agent_user_profile_test.rb
  76. rm test/browser/customer_ticket_create_test.rb
  77. rm test/browser/manage_test.rb
  78. rm test/browser/taskbar_session_test.rb
  79. rm test/browser/taskbar_task_test.rb
  80. # test/browser/user_access_permissions_test.rb
  81. # test/browser/user_switch_cache_test.rb
  82. elif [ "$LEVEL" == '3' ]; then
  83. echo "slicing level 3"
  84. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  85. # test/browser/abb_one_group_test.rb
  86. rm test/browser/admin_drag_drop_to_new_group_test.rb
  87. rm test/browser/admin_overview_test.rb
  88. rm test/browser/admin_role_test.rb
  89. rm test/browser/agent_navigation_and_title_test.rb
  90. rm test/browser/agent_organization_profile_test.rb
  91. # test/browser/agent_ticket_attachment_test.rb
  92. # rm test/browser/agent_ticket_create_available_types_test.rb
  93. # rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  94. #rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  95. # rm test/browser/agent_ticket_create_default_type_test.rb
  96. # test/browser/agent_ticket_create_reset_customer_selection_test.rb
  97. # rm test/browser/agent_ticket_email_signature_test.rb
  98. rm test/browser/agent_ticket_link_test.rb
  99. rm test/browser/agent_ticket_macro_test.rb
  100. rm test/browser/agent_ticket_merge_test.rb
  101. rm test/browser/agent_ticket_online_notification_test.rb
  102. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  103. rm test/browser/agent_ticket_overview_level0_test.rb
  104. rm test/browser/agent_ticket_overview_level1_test.rb
  105. rm test/browser/agent_ticket_overview_pending_til_test.rb
  106. rm test/browser/agent_ticket_overview_tab_test.rb
  107. rm test/browser/agent_ticket_tag_test.rb
  108. rm test/browser/agent_ticket_text_module_test.rb
  109. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  110. rm test/browser/agent_ticket_update_and_reload_test.rb
  111. rm test/browser/agent_ticket_zoom_hide_test.rb
  112. rm test/browser/agent_user_manage_test.rb
  113. rm test/browser/agent_user_profile_test.rb
  114. rm test/browser/customer_ticket_create_test.rb
  115. rm test/browser/manage_test.rb
  116. rm test/browser/taskbar_session_test.rb
  117. rm test/browser/taskbar_task_test.rb
  118. rm test/browser/user_access_permissions_test.rb
  119. rm test/browser/user_switch_cache_test.rb
  120. elif [ "$LEVEL" == '4' ]; then
  121. echo "slicing level 4"
  122. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  123. # test/browser/abb_one_group_test.rb
  124. rm test/browser/admin_drag_drop_to_new_group_test.rb
  125. rm test/browser/admin_overview_test.rb
  126. rm test/browser/admin_role_test.rb
  127. rm test/browser/agent_navigation_and_title_test.rb
  128. rm test/browser/agent_organization_profile_test.rb
  129. rm test/browser/agent_ticket_attachment_test.rb
  130. rm test/browser/agent_ticket_create_available_types_test.rb
  131. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  132. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  133. rm test/browser/agent_ticket_create_default_type_test.rb
  134. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  135. rm test/browser/agent_ticket_email_signature_test.rb
  136. rm test/browser/agent_ticket_link_test.rb
  137. rm test/browser/agent_ticket_macro_test.rb
  138. rm test/browser/agent_ticket_merge_test.rb
  139. rm test/browser/agent_ticket_online_notification_test.rb
  140. # test/browser/agent_ticket_overview_group_by_organization_test.rb
  141. # rm test/browser/agent_ticket_overview_level0_test.rb
  142. rm test/browser/agent_ticket_overview_level1_test.rb
  143. rm test/browser/agent_ticket_overview_pending_til_test.rb
  144. rm test/browser/agent_ticket_overview_tab_test.rb
  145. rm test/browser/agent_ticket_tag_test.rb
  146. rm test/browser/agent_ticket_text_module_test.rb
  147. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  148. rm test/browser/agent_ticket_update_and_reload_test.rb
  149. rm test/browser/agent_ticket_zoom_hide_test.rb
  150. rm test/browser/agent_user_manage_test.rb
  151. rm test/browser/agent_user_profile_test.rb
  152. rm test/browser/customer_ticket_create_test.rb
  153. rm test/browser/manage_test.rb
  154. rm test/browser/taskbar_session_test.rb
  155. rm test/browser/taskbar_task_test.rb
  156. rm test/browser/user_access_permissions_test.rb
  157. rm test/browser/user_switch_cache_test.rb
  158. elif [ "$LEVEL" == '5' ]; then
  159. echo "slicing level 5"
  160. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  161. # test/browser/abb_one_group_test.rb
  162. # rm test/browser/admin_drag_drop_to_new_group_test.rb
  163. # test/browser/admin_overview_test.rb
  164. rm test/browser/admin_role_test.rb
  165. rm test/browser/agent_navigation_and_title_test.rb
  166. rm test/browser/agent_organization_profile_test.rb
  167. rm test/browser/agent_ticket_attachment_test.rb
  168. rm test/browser/agent_ticket_create_available_types_test.rb
  169. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  170. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  171. rm test/browser/agent_ticket_create_default_type_test.rb
  172. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  173. rm test/browser/agent_ticket_email_signature_test.rb
  174. rm test/browser/agent_ticket_link_test.rb
  175. rm test/browser/agent_ticket_macro_test.rb
  176. rm test/browser/agent_ticket_merge_test.rb
  177. rm test/browser/agent_ticket_online_notification_test.rb
  178. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  179. rm test/browser/agent_ticket_overview_level0_test.rb
  180. rm test/browser/agent_ticket_overview_level1_test.rb
  181. rm test/browser/agent_ticket_overview_pending_til_test.rb
  182. rm test/browser/agent_ticket_overview_tab_test.rb
  183. rm test/browser/agent_ticket_tag_test.rb
  184. rm test/browser/agent_ticket_text_module_test.rb
  185. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  186. rm test/browser/agent_ticket_update_and_reload_test.rb
  187. rm test/browser/agent_ticket_zoom_hide_test.rb
  188. # test/browser/agent_user_manage_test.rb
  189. # test/browser/agent_user_profile_test.rb
  190. rm test/browser/customer_ticket_create_test.rb
  191. rm test/browser/manage_test.rb
  192. rm test/browser/taskbar_session_test.rb
  193. rm test/browser/taskbar_task_test.rb
  194. rm test/browser/user_access_permissions_test.rb
  195. rm test/browser/user_switch_cache_test.rb
  196. elif [ "$LEVEL" == '6' ]; then
  197. echo "slicing level 6"
  198. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  199. # test/browser/abb_one_group_test.rb
  200. rm test/browser/admin_drag_drop_to_new_group_test.rb
  201. rm test/browser/admin_overview_test.rb
  202. #rm test/browser/admin_role_test.rb
  203. rm test/browser/agent_navigation_and_title_test.rb
  204. rm test/browser/agent_organization_profile_test.rb
  205. rm test/browser/agent_ticket_attachment_test.rb
  206. rm test/browser/agent_ticket_create_available_types_test.rb
  207. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  208. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  209. rm test/browser/agent_ticket_create_default_type_test.rb
  210. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  211. # rm test/browser/agent_ticket_create_template_test.rb
  212. rm test/browser/agent_ticket_email_signature_test.rb
  213. rm test/browser/agent_ticket_link_test.rb
  214. rm test/browser/agent_ticket_macro_test.rb
  215. # test/browser/agent_ticket_merge_test.rb
  216. # rm test/browser/agent_ticket_online_notification_test.rb
  217. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  218. rm test/browser/agent_ticket_overview_level0_test.rb
  219. rm test/browser/agent_ticket_overview_level1_test.rb
  220. rm test/browser/agent_ticket_overview_pending_til_test.rb
  221. rm test/browser/agent_ticket_overview_tab_test.rb
  222. rm test/browser/agent_ticket_tag_test.rb
  223. # test/browser/agent_ticket_text_module_test.rb
  224. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  225. rm test/browser/agent_ticket_update_and_reload_test.rb
  226. rm test/browser/agent_ticket_zoom_hide_test.rb
  227. rm test/browser/agent_user_manage_test.rb
  228. rm test/browser/agent_user_profile_test.rb
  229. rm test/browser/customer_ticket_create_test.rb
  230. rm test/browser/manage_test.rb
  231. rm test/browser/taskbar_session_test.rb
  232. rm test/browser/taskbar_task_test.rb
  233. rm test/browser/user_access_permissions_test.rb
  234. rm test/browser/user_switch_cache_test.rb
  235. elif [ "$LEVEL" == '7' ]; then
  236. echo "slicing level 7"
  237. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  238. # test/browser/abb_one_group_test.rb
  239. rm test/browser/admin_drag_drop_to_new_group_test.rb
  240. rm test/browser/admin_overview_test.rb
  241. rm test/browser/admin_role_test.rb
  242. rm test/browser/agent_navigation_and_title_test.rb
  243. rm test/browser/agent_organization_profile_test.rb
  244. rm test/browser/agent_ticket_attachment_test.rb
  245. rm test/browser/agent_ticket_create_available_types_test.rb
  246. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  247. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  248. rm test/browser/agent_ticket_create_default_type_test.rb
  249. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  250. # rm test/browser/agent_ticket_create_template_test.rb
  251. rm test/browser/agent_ticket_email_signature_test.rb
  252. # test/browser/agent_ticket_link_test.rb
  253. # test/browser/agent_ticket_macro_test.rb
  254. rm test/browser/agent_ticket_merge_test.rb
  255. rm test/browser/agent_ticket_online_notification_test.rb
  256. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  257. rm test/browser/agent_ticket_overview_level0_test.rb
  258. rm test/browser/agent_ticket_overview_level1_test.rb
  259. rm test/browser/agent_ticket_overview_pending_til_test.rb
  260. rm test/browser/agent_ticket_overview_tab_test.rb
  261. # test/browser/agent_ticket_tag_test.rb
  262. rm test/browser/agent_ticket_text_module_test.rb
  263. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  264. rm test/browser/agent_ticket_update_and_reload_test.rb
  265. rm test/browser/agent_ticket_zoom_hide_test.rb
  266. rm test/browser/agent_user_manage_test.rb
  267. rm test/browser/agent_user_profile_test.rb
  268. rm test/browser/customer_ticket_create_test.rb
  269. rm test/browser/manage_test.rb
  270. rm test/browser/taskbar_session_test.rb
  271. rm test/browser/taskbar_task_test.rb
  272. rm test/browser/user_access_permissions_test.rb
  273. rm test/browser/user_switch_cache_test.rb
  274. elif [ "$LEVEL" == '8' ]; then
  275. echo "slicing level 8"
  276. rm test/browser/aaa_auto_wizard_base_setup_test.rb
  277. # test/browser/abb_one_group_test.rb
  278. rm test/browser/admin_drag_drop_to_new_group_test.rb
  279. rm test/browser/admin_overview_test.rb
  280. rm test/browser/admin_role_test.rb
  281. rm test/browser/agent_navigation_and_title_test.rb
  282. rm test/browser/agent_organization_profile_test.rb
  283. rm test/browser/agent_ticket_attachment_test.rb
  284. rm test/browser/agent_ticket_create_available_types_test.rb
  285. rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
  286. rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
  287. rm test/browser/agent_ticket_create_default_type_test.rb
  288. rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
  289. # rm test/browser/agent_ticket_create_template_test.rb
  290. rm test/browser/agent_ticket_email_signature_test.rb
  291. rm test/browser/agent_ticket_link_test.rb
  292. rm test/browser/agent_ticket_macro_test.rb
  293. rm test/browser/agent_ticket_merge_test.rb
  294. rm test/browser/agent_ticket_online_notification_test.rb
  295. rm test/browser/agent_ticket_overview_group_by_organization_test.rb
  296. rm test/browser/agent_ticket_overview_level0_test.rb
  297. # test/browser/agent_ticket_overview_level1_test.rb
  298. # test/browser/agent_ticket_overview_pending_til_test.rb
  299. # test/browser/agent_ticket_overview_tab_test.rb
  300. rm test/browser/agent_ticket_tag_test.rb
  301. rm test/browser/agent_ticket_text_module_test.rb
  302. rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
  303. rm test/browser/agent_ticket_update_and_reload_test.rb
  304. rm test/browser/agent_ticket_zoom_hide_test.rb
  305. rm test/browser/agent_user_manage_test.rb
  306. rm test/browser/agent_user_profile_test.rb
  307. # test/browser/customer_ticket_create_test.rb
  308. rm test/browser/manage_test.rb
  309. rm test/browser/taskbar_session_test.rb
  310. rm test/browser/taskbar_task_test.rb
  311. rm test/browser/user_access_permissions_test.rb
  312. rm test/browser/user_switch_cache_test.rb
  313. else
  314. echo "ERROR: Invalid level $LEVEL - 1..8 is available"
  315. exit 1
  316. fi