diff --git a/test-case/check-capture.sh b/test-case/check-capture.sh index 2370cb3c8..7bb774784 100755 --- a/test-case/check-capture.sh +++ b/test-case/check-capture.sh @@ -61,7 +61,7 @@ file_prefix=${OPT_VALUE_lst['f']} func_lib_setup_kernel_last_line func_lib_check_sudo -func_pipeline_export $tplg "type:capture & ${OPT_VALUE_lst['S']}" +func_pipeline_export $tplg "type:any & ${OPT_VALUE_lst['S']}" for round in $(seq 1 $round_cnt) do @@ -75,6 +75,8 @@ do type=$(func_pipeline_parse_value $idx type) snd=$(func_pipeline_parse_value $idx snd) + [ "$type" = "capture" ] || continue + if [ ${OPT_VALUE_lst['F']} = '1' ]; then fmt=$(func_pipeline_parse_value $idx fmts) fi diff --git a/test-case/check-pause-resume.sh b/test-case/check-pause-resume.sh index 4daca33a4..68396ee30 100755 --- a/test-case/check-pause-resume.sh +++ b/test-case/check-pause-resume.sh @@ -74,7 +74,7 @@ esac [[ -z $file_name ]] && file_name=$dummy_file -func_pipeline_export $tplg "type:$test_mode & ${OPT_VALUE_lst['S']}" +func_pipeline_export $tplg "type:any & ${OPT_VALUE_lst['S']}" func_lib_setup_kernel_last_line for idx in $(seq 0 $(expr $PIPELINE_COUNT - 1)) do @@ -84,6 +84,9 @@ do dev=$(func_pipeline_parse_value $idx dev) snd=$(func_pipeline_parse_value $idx snd) + 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 diff --git a/test-case/check-playback.sh b/test-case/check-playback.sh index c05df2e83..623997aa8 100755 --- a/test-case/check-playback.sh +++ b/test-case/check-playback.sh @@ -69,7 +69,7 @@ fi func_lib_setup_kernel_last_line func_lib_check_sudo -func_pipeline_export $tplg "type:playback & ${OPT_VALUE_lst['S']}" +func_pipeline_export $tplg "type:any & ${OPT_VALUE_lst['S']}" for round in $(seq 1 $round_cnt) do @@ -83,6 +83,8 @@ do type=$(func_pipeline_parse_value "$idx" type) snd=$(func_pipeline_parse_value "$idx" snd) + [ "$type" = "playback" ] || continue + if [ ${OPT_VALUE_lst['F']} = '1' ]; then fmts=$(func_pipeline_parse_value "$idx" fmts) fi diff --git a/test-case/test-speaker.sh b/test-case/test-speaker.sh index 922a6149d..61416f77f 100755 --- a/test-case/test-speaker.sh +++ b/test-case/test-speaker.sh @@ -30,7 +30,7 @@ func_opt_parse_option "$@" tplg=${OPT_VALUE_lst['t']} [[ ${OPT_VALUE_lst['s']} -eq 1 ]] && func_lib_start_log_collect -func_pipeline_export $tplg "type:playback" +func_pipeline_export $tplg "type:any" tcnt=${OPT_VALUE_lst['l']} func_lib_setup_kernel_last_line for idx in $(seq 0 $(expr $PIPELINE_COUNT - 1)) @@ -41,6 +41,9 @@ do dev=$(func_pipeline_parse_value $idx dev) snd=$(func_pipeline_parse_value $idx snd) + 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=$?