Skip to content

Commit 8716800

Browse files
committed
test-case: rename pause-resume to pause-release
resume term leads to confusion with system resume. Nothing to do with system suspend/resume test. pause-release is more clear. Signed-off-by: Fred Oh <[email protected]>
1 parent 7a74c40 commit 8716800

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
set -e
44

55
##
6-
## Case Name: check-pause-resume
6+
## Case Name: check-pause-release
77
## Preconditions:
88
## N/A
99
## Description:
10-
## playback/capture on each pipeline and feak pause/resume with expect
10+
## playback/capture on each pipeline and feak pause/release with expect
1111
## expect sleep for sleep time then mocks spacebar keypresses ' ' to
12-
## cause resume action
12+
## cause release action
1313
## Case step:
1414
## 1. aplay/arecord on PCM
15-
## 2. use expect to fake pause/resume
15+
## 2. use expect to fake pause/release
1616
## Expect result:
1717
## no error happen for aplay/arecord
1818
##
@@ -26,7 +26,7 @@ OPT_HAS_ARG['t']=1 OPT_VAL['t']="$TPLG"
2626
OPT_NAME['m']='mode' OPT_DESC['m']='test mode'
2727
OPT_HAS_ARG['m']=1 OPT_VAL['m']='playback'
2828

29-
OPT_NAME['c']='count' OPT_DESC['c']='pause/resume repeat count'
29+
OPT_NAME['c']='count' OPT_DESC['c']='pause/release repeat count'
3030
OPT_HAS_ARG['c']=1 OPT_VAL['c']=10
3131

3232
OPT_NAME['f']='file' OPT_DESC['f']='file name'
@@ -109,7 +109,7 @@ expect {
109109
}
110110
"*PAUSE*" {
111111
set sleep_t [expr int([expr rand() * $rnd_range]) + $rnd_min ]
112-
puts "\r(\$i/$repeat_count) Wait for \$sleep_t ms before resume"
112+
puts "\r(\$i/$repeat_count) Wait for \$sleep_t ms before release"
113113
send " "
114114
after \$sleep_t
115115
incr i
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
set -e
44

55
##
6-
## Case Name: Run multiple pipeline for pause resume
6+
## Case Name: Run multiple pipeline for pause release
77
## Preconditions:
88
## N/A
99
## Description:
10-
## pickup multiple pipline to do pause resume
11-
## fake pause/resume with expect
10+
## pickup multiple pipline to do pause release
11+
## fake pause/release with expect
1212
## expect sleep for sleep time then mocks spacebar keypresses ' ' to
13-
## cause resume action
13+
## cause release action
1414
## Case step:
1515
## 1. run 1st pipeline
1616
## 2. pickup any other pipeline
17-
## 3. use expect to fake pause/resume in each pipeline
17+
## 3. use expect to fake pause/release in each pipeline
1818
## 4. go through with tplg file
1919
## Expect result:
2020
## no errors occur for either process
@@ -32,14 +32,14 @@ OPT_HAS_ARG['l']=1 OPT_VAL['l']=5
3232
OPT_NAME['c']='count' OPT_DESC['c']='combine test pipeline count'
3333
OPT_HAS_ARG['c']=1 OPT_VAL['c']=2
3434

35-
OPT_NAME['r']='repeat' OPT_DESC['r']='pause resume repeat count'
35+
OPT_NAME['r']='repeat' OPT_DESC['r']='pause release repeat count'
3636
OPT_HAS_ARG['r']=1 OPT_VAL['r']=5
3737

38-
# pause/resume interval will be a random value bounded by the min and max values below
39-
OPT_NAME['i']='min' OPT_DESC['i']='pause/resume transition min value, unit is ms'
38+
# pause/release interval will be a random value bounded by the min and max values below
39+
OPT_NAME['i']='min' OPT_DESC['i']='pause/release transition min value, unit is ms'
4040
OPT_HAS_ARG['i']=1 OPT_VAL['i']='20'
4141

42-
OPT_NAME['a']='max' OPT_DESC['a']='pause/resume transition max value, unit is ms'
42+
OPT_NAME['a']='max' OPT_DESC['a']='pause/release transition max value, unit is ms'
4343
OPT_HAS_ARG['a']=1 OPT_VAL['a']='50'
4444

4545
OPT_NAME['s']='sof-logger' OPT_DESC['s']="Open sof-logger trace the data will store at $LOG_ROOT"
@@ -101,7 +101,7 @@ do
101101
done
102102
[[ ${#pipeline_combine_lst[@]} -eq 0 ]] && dlogw "pipeline combine is empty" && exit 2
103103

104-
func_pause_resume_pipeline()
104+
func_pause_release_pipeline()
105105
{
106106
local idx=${pipeline_idx_lst[$1]} cmd=${cmd_idx_lst[$1]} file=${file_idx_lst[$1]}
107107
local channel; channel=$(func_pipeline_parse_value "$idx" channel)
@@ -128,7 +128,7 @@ expect {
128128
}
129129
"*PAUSE*" {
130130
set sleep_t [expr int([expr rand() * $rnd_range]) + $rnd_min ]
131-
puts "\r(\$i/$repeat_count) pcm'$pcm' cmd'$cmd' id'$idx': Wait for \$sleep_t ms before resume"
131+
puts "\r(\$i/$repeat_count) pcm'$pcm' cmd'$cmd' id'$idx': Wait for \$sleep_t ms before release"
132132
send " "
133133
after \$sleep_t
134134
incr i
@@ -154,7 +154,7 @@ do
154154
declare -a pid_lst
155155
for idx in $pipeline_combine_str
156156
do
157-
func_pause_resume_pipeline "$idx"
157+
func_pause_release_pipeline "$idx"
158158
pid_lst=("${pid_lst[@]}" $!)
159159
done
160160
# wait for expect script finished
@@ -176,7 +176,7 @@ do
176176
exit 1
177177
fi
178178
# now check for all expect quit status
179-
# dump the pipeline combine, because pause resume will have too many operation log
179+
# dump the pipeline combine, because pause release will have too many operation log
180180
for idx in $pipeline_combine_str
181181
do
182182
pipeline_index=${pipeline_idx_lst[$idx]}
@@ -188,7 +188,7 @@ do
188188
do
189189
wait "$pid" || {
190190
sof-kernel-log-check.sh "$KERNEL_CHECKPOINT" || true
191-
die "pause resume PID $pid had non-zero exit status"
191+
die "pause release PID $pid had non-zero exit status"
192192
}
193193
done
194194
done

0 commit comments

Comments
 (0)