1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 * Copyright (c) 2022 Huawei Device Co., Ltd. 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 --> 16<configuration ver="2.0"> 17 <target name="resschedfwk_test"> 18 <preparer> 19 <option name="shell" value="target mount"/> 20 <option name="shell" value="mount -o rw,remount /sys_prod"/> 21 <option name="push" value="parseconfig/invalid_format.xml -> /sys_prod/data/test/resource/resschedfwk/parseconfig" src="res"/> 22 <option name="push" value="parseconfig/not_exist_plugin.xml -> /sys_prod/data/test/resource/resschedfwk/parseconfig" src="res"/> 23 <option name="push" value="parseconfig/plugin_tag_wrong.xml -> /sys_prod/data/test/resource/resschedfwk/parseconfig" src="res"/> 24 <option name="push" value="parseconfig/sys_prod/res_sched_config.xml -> /sys_prod/data/test/resource/resschedfwk/parseconfig" src="res"/> 25 <option name="push" value="parseconfig/res_sched_config_comments.xml -> /sys_prod/data/test/resource/resschedfwk/parseconfig" src="res"/> 26 <option name="push" value="parseconfig/root_element_wrong.xml -> /sys_prod/data/test/resource/resschedfwk/parseconfig" src="res"/> 27 <option name="push" value="parseswitch/invalid_format.xml -> /sys_prod/data/test/resource/resschedfwk/parseswitch" src="res"/> 28 <option name="push" value="parseswitch/sys_prod/res_sched_plugin_switch.xml -> /sys_prod/data/test/resource/resschedfwk/parseswitch" src="res"/> 29 <option name="shell" value="mount -o rw,remount /"/> 30 <option name="push" value="parseconfig/invalid_format.xml -> /system/data/test/resource/resschedfwk/parseconfig" src="res"/> 31 <option name="push" value="parseconfig/not_exist_plugin.xml -> /system/data/test/resource/resschedfwk/parseconfig" src="res"/> 32 <option name="push" value="parseconfig/plugin_tag_wrong.xml -> /system/data/test/resource/resschedfwk/parseconfig" src="res"/> 33 <option name="push" value="parseconfig/system/res_sched_config.xml -> /system/data/test/resource/resschedfwk/parseconfig" src="res"/> 34 <option name="push" value="parseconfig/res_sched_config_comments.xml -> /system/data/test/resource/resschedfwk/parseconfig" src="res"/> 35 <option name="push" value="parseconfig/root_element_wrong.xml -> /system/data/test/resource/resschedfwk/parseconfig" src="res"/> 36 <option name="push" value="parseswitch/invalid_format.xml -> /system/data/test/resource/resschedfwk/parseswitch" src="res"/> 37 <option name="push" value="parseswitch/system/res_sched_plugin_switch.xml -> /system/data/test/resource/resschedfwk/parseswitch" src="res"/> 38 <option name="shell" value="mv /sys_prod/etc/ressched/res_sched_plugin_switch.xml /sys_prod/etc/ressched/res_sched_plugin_switch_copy.xml"/> 39 <option name="shell" value="mv /system/variant/phone/base/etc/ressched/res_sched_plugin_switch.xml /system/variant/phone/base/etc/ressched/res_sched_plugin_switch_copy.xml"/> 40 <option name="push" value="switchconfig/res_sched_plugin_switch.xml -> /sys_prod/etc/ressched/" src="res"/> 41 <option name="push" value="switchconfig/res_sched_plugin_switch.xml -> /system/variant/phone/base/etc/ressched/" src="res"/> 42 </preparer> 43 <cleaner> 44 <option name="shell" value="rm -rf /sys_prod/etc/ressched/res_sched_plugin_switch.xml"/> 45 <option name="shell" value="rm -rf /system/variant/phone/base/etc/ressched/res_sched_plugin_switch.xml"/> 46 <option name="shell" value="mv /sys_prod/etc/ressched/res_sched_plugin_switch_copy.xml /sys_prod/etc/ressched/res_sched_plugin_switch.xml"/> 47 <option name="shell" value="mv /system/variant/phone/base/etc/ressched/res_sched_plugin_switch_copy.xml /system/variant/phone/base/etc/ressched/res_sched_plugin_switch.xml"/> 48 </cleaner> 49 </target> 50 <target name="resschedservice_test"> 51 <preparer> 52 <option name="shell" value="mount -o rw,remount /sys_prod"/> 53 <option name="shell" value="target mount"/> 54 <option name="shell" value="mv /sys_prod/etc/ressched/res_sched_plugin_switch.xml /sys_prod/etc/ressched/res_sched_plugin_switch_copy.xml"/> 55 <option name="push" value="switchconfig/res_sched_plugin_switch.xml -> /sys_prod/etc/ressched/" src="res"/> 56 <option name="shell" value="mv /system/variant/phone/base/etc/ressched/res_sched_plugin_switch.xml /system/variant/phone/base/etc/ressched/res_sched_plugin_switch_copy.xml"/> 57 </preparer> 58 <cleaner> 59 <option name="shell" value="rm -rf /sys_prod/etc/ressched/res_sched_plugin_switch.xml"/> 60 <option name="shell" value="rm -rf /system/variant/phone/base/etc/ressched/res_sched_plugin_switch.xml"/> 61 <option name="shell" value="mv /sys_prod/etc/ressched/res_sched_plugin_switch_copy.xml /sys_prod/etc/ressched/res_sched_plugin_switch.xml"/> 62 <option name="shell" value="mv /system/variant/phone/base/etc/ressched/res_sched_plugin_switch_copy.xml /system/variant/phone/base/etc/ressched/res_sched_plugin_switch.xml"/> 63 </cleaner> 64 </target> 65</configuration>