Skip to content

Commit

Permalink
test-case: enable four scripts for legacy HDA test
Browse files Browse the repository at this point in the history
Signed-off-by: Amery Song <chao.song@intel.com>
  • Loading branch information
Amery Song committed Oct 21, 2020
1 parent b8272cf commit d827257
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-case/check-capture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ do
type=$(func_pipeline_parse_value $idx type)
snd=$(func_pipeline_parse_value $idx snd)

# Filtering feature is not enabled for pipelines dumped from proc
# This workaround is need for this case to run on legacy HDA platform.
[[ "$type" != "capture" ]] && continue

if [ ${OPT_VALUE_lst['F']} = '1' ]; then
fmt=$(func_pipeline_parse_value $idx fmts)
fi
Expand Down
5 changes: 5 additions & 0 deletions test-case/check-pause-resume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ do
dev=$(func_pipeline_parse_value $idx dev)
snd=$(func_pipeline_parse_value $idx snd)

# Filtering feature is not enabled for pipelines dumped from proc
# This workaround is need for this case to run on legacy HDA platform.
type=$(func_pipeline_parse_value $idx type)
[[ "$type" != "$test_mode" ]] && continue

dlogi "Entering expect script with: $cmd -D $dev -r $rate -c $channel -f $fmt -vv -i $file_name -q"

# expect is tcl language script
Expand Down
4 changes: 4 additions & 0 deletions test-case/check-playback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ do
type=$(func_pipeline_parse_value "$idx" type)
snd=$(func_pipeline_parse_value "$idx" snd)

# Filtering feature is not enabled for pipelines dumped from proc
# This workaround is need for this case to run on legacy HDA platform.
[[ "$type" != "playback" ]] && continue

if [ ${OPT_VALUE_lst['F']} = '1' ]; then
fmts=$(func_pipeline_parse_value "$idx" fmts)
fi
Expand Down
5 changes: 5 additions & 0 deletions test-case/test-speaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ do
dev=$(func_pipeline_parse_value $idx dev)
snd=$(func_pipeline_parse_value $idx snd)

# Filtering feature is not enabled for pipelines dumped from proc
# This workaround is need for this case to run on legacy HDA platform.
type=$(func_pipeline_parse_value $idx type)
[[ "$type" != "playback" ]] && continue

dlogc "speaker-test -D $dev -r $rate -c $channel -f $fmt -l $tcnt -t wav -P 8"
speaker-test -D $dev -r $rate -c $channel -f $fmt -l $tcnt -t wav -P 8 2>&1 |tee $LOG_ROOT/result_$idx.txt
resultRet=$?
Expand Down

0 comments on commit d827257

Please sign in to comment.