2015-11-27 09:50:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
LEVEL=$1
|
|
|
|
|
|
|
|
if [ "$LEVEL" == '1' ]; then
|
|
|
|
echo "slicing level 1"
|
|
|
|
|
|
|
|
# no ticket action
|
|
|
|
rm test/browser/agent_user_profile_test.rb
|
|
|
|
rm test/browser/agent_organization_profile_test.rb
|
|
|
|
rm test/browser/agent_ticket_*.rb
|
2015-12-05 19:55:34 +00:00
|
|
|
rm test/browser/chat_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
rm test/browser/prefereces_test.rb
|
|
|
|
rm test/browser/setting_test.rb
|
|
|
|
|
|
|
|
elif [ "$LEVEL" == '2' ]; then
|
|
|
|
echo "slicing level 2"
|
|
|
|
|
|
|
|
# only ticket action
|
|
|
|
rm test/browser/aab_unit_test.rb
|
|
|
|
rm test/browser/aac_basic_richtext_test.rb
|
|
|
|
rm test/browser/agent_organization_profile_test.rb
|
|
|
|
rm test/browser/agent_user_*.rb
|
|
|
|
rm test/browser/auth_test.rb
|
|
|
|
rm test/browser/chat_test.rb
|
|
|
|
rm test/browser/customer_ticket_create_test.rb
|
|
|
|
rm test/browser/maintenance_message_test.rb
|
|
|
|
rm test/browser/manage_test.rb
|
|
|
|
rm test/browser/prefereces_test.rb
|
|
|
|
rm test/browser/setting_test.rb
|
|
|
|
rm test/browser/signup_password_change_and_reset_test.rb
|
|
|
|
rm test/browser/taskbar_session_test.rb
|
|
|
|
rm test/browser/taskbar_task_test.rb
|
|
|
|
rm test/browser/switch_to_user_test.rb
|
|
|
|
|
|
|
|
elif [ "$LEVEL" == '3' ]; then
|
|
|
|
echo "slicing level 3"
|
|
|
|
|
|
|
|
# only profile action
|
|
|
|
rm test/browser/aab_unit_test.rb
|
|
|
|
rm test/browser/aac_basic_richtext_test.rb
|
|
|
|
rm test/browser/agent_user_manage_test.rb
|
|
|
|
rm test/browser/agent_ticket_*.rb
|
|
|
|
rm test/browser/auth_test.rb
|
|
|
|
rm test/browser/customer_ticket_create_test.rb
|
|
|
|
rm test/browser/maintenance_message_test.rb
|
|
|
|
rm test/browser/manage_test.rb
|
|
|
|
rm test/browser/signup_password_change_and_reset_test.rb
|
|
|
|
rm test/browser/taskbar_session_test.rb
|
|
|
|
rm test/browser/taskbar_task_test.rb
|
|
|
|
rm test/browser/switch_to_user_test.rb
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "ERROR: Invalid level $LEVEL - 1, 2 or 3 is available"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|