mirror of
https://github.com/openharmony/kernel_linux_build.git
synced 2026-07-16 05:30:26 -04:00
kernel_linux_build:Modify testcases to adapt to app AbilityName changes
Signed-off-by: liudanning <liudanning@h-partners.com>
This commit is contained in:
@@ -58,14 +58,19 @@ zram_enable()
|
||||
swapon /dev/block/zram0
|
||||
aa start -b com.ohos.settings -a com.ohos.settings.MainAbility
|
||||
aa start -b ohos.samples.airquality -a ohos.samples.airquality.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
aa start -b ohos.samples.flashlight -a ohos.samples.flashlight.default
|
||||
aa start -b ohos.samples.clock -a ohos.samples.clock.default
|
||||
aa start -b com.ohos.camera -a com.ohos.camera.MainAbility
|
||||
aa start -b com.ohos.permissionmanager -a com.ohos.permissionmanager.MainAbility
|
||||
aa start -b ohos.sample.shopping -a com.example.entry.MainAbility
|
||||
aa start -b ohos.samples.distributedcalc -a ohos.samples.distributedcalc.MainAbility
|
||||
|
||||
}
|
||||
|
||||
echo "***************************ESWAP INIT START***************************"
|
||||
free -m
|
||||
uninit_platform
|
||||
pre_condition
|
||||
hp_init
|
||||
hp_enable
|
||||
|
||||
@@ -56,7 +56,7 @@ do_test()
|
||||
sh ../../../mem_debug_t_init.sh
|
||||
aa start -b com.ohos.settings -a com.ohos.settings.MainAbility
|
||||
aa start -b ohos.samples.airquality -a ohos.samples.airquality.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
aa start -b ohos.samples.flashlight -a ohos.samples.flashlight.default
|
||||
aa start -b ohos.samples.clock -a ohos.samples.clock.default
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ zram_enable()
|
||||
swapon /dev/block/zram0
|
||||
aa start -b com.ohos.settings -a com.ohos.settings.MainAbility
|
||||
aa start -b ohos.samples.airquality -a ohos.samples.airquality.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
aa start -b ohos.samples.flashlight -a ohos.samples.flashlight.default
|
||||
aa start -b ohos.samples.clock -a ohos.samples.clock.default
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ source tst_oh.sh
|
||||
|
||||
do_setup()
|
||||
{
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
sleep 1
|
||||
PID=$(ps -ef | grep ohos.samples.ecg | grep -v grep | awk '{print $2}')
|
||||
}
|
||||
@@ -65,7 +65,7 @@ do_test()
|
||||
fi
|
||||
local rtgid3=$(cat $sched_group_id)
|
||||
if [ $rtgid3 -eq 3 ]; then
|
||||
tst_res TFAIL "process $PID switch rtgid 2 to 3 success unexpected!"
|
||||
tst_res TFAIL "process $PID switch rtgid 2 to 3 sucess unexpected!"
|
||||
res=$(($res + 1))
|
||||
fi
|
||||
|
||||
@@ -96,4 +96,4 @@ do_clean()
|
||||
do_setup
|
||||
do_test
|
||||
do_clean
|
||||
tst_exit
|
||||
tst_exit
|
||||
@@ -31,7 +31,7 @@ source tst_oh.sh
|
||||
|
||||
do_setup()
|
||||
{
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
sleep 1
|
||||
PID=$(ps -ef | grep ohos.samples.ecg | grep -v grep | awk '{print $2}')
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ source tst_oh.sh
|
||||
|
||||
do_setup()
|
||||
{
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
sleep 1
|
||||
PID=$(ps -ef | grep ohos.samples.ecg | grep -v grep | awk '{print $2}')
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ do_setup()
|
||||
{
|
||||
cpu_value=$(cat /sys/kernel/debug/tracing/events/rtg/find_rtg_cpu/enable)
|
||||
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
|
||||
sleep 1
|
||||
PID=$(ps -ef | grep ohos.samples.ecg | grep -v grep | awk '{print $2}')
|
||||
echo 1 > /sys/kernel/debug/tracing/events/rtg/find_rtg_cpu/enable
|
||||
|
||||
@@ -65,8 +65,8 @@ stability_test()
|
||||
tst_res TINFO "kill 40 task processes...."
|
||||
ps -ef | grep "create_process" | grep -v "grep" | grep -v ${PPID} | cut -c 9-18 | xargs kill -9
|
||||
sleep 5
|
||||
tst_res TINFO "kill process succeeded."
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.default &&
|
||||
tst_res TINFO "kill process successed."
|
||||
aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility &&
|
||||
sleep 1 &&
|
||||
PID=$(ps -ef | grep ohos.samples.ecg | grep -v grep | awk '{print $2}')
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -147,4 +147,4 @@ do_clean()
|
||||
do_setup
|
||||
do_test
|
||||
do_clean
|
||||
tst_exit
|
||||
tst_exit
|
||||
Reference in New Issue
Block a user