SRC test: Fix testbench execute command line plus cleanup

This patch fixes the command line sample rate parameters passing
into host testbench (-r & -R).

In my computer at least the print command of non-visible plots stopped
working into error so I disabled the print commant that creates PNG
graphics files. It's OK since the purpose of this script is batch testing.
The visible plot files can be enabled from SRC test script to see plots
if need for deep dive.

The patch includes also fix for text output for "help src_test". The
input and output word lengths were missing from sample command.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2018-08-30 16:32:02 +03:00
parent eddca597ae
commit a47524a2b2
2 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,7 @@ fi
# Run command
CMD0=$HOST_EXE
CMD1="-d -x $FS1 -y $FS2 -i $FN_IN -o $FN_OUT -t $TPLG -a src=libsof_${COMP}.so $CMDFMT"
CMD1="-d -r $FS1 -R $FS2 -i $FN_IN -o $FN_OUT -t $TPLG -a src=libsof_${COMP}.so $CMDFMT"
CMD="$CMD0 $CMD1"
export LD_LIBRARY_PATH=$HOST_LIB

View File

@ -3,7 +3,7 @@ function [n_fail, n_pass, n_na] = src_test(bits_in, bits_out, fs_in_list, fs_out
%%
% src_test - test with SRC test bench objective audio quality parameters
%
% src_test(fs_in, fs_out)
% src_test(bits_in, bits_out, fs_in, fs_out)
%
% bits_in - input word length
% bits_out - output word length
@ -456,7 +456,9 @@ else
title(tstr);
end
pfn = sprintf('plots/%s_src_%d_%d.png', testacronym, t.fs1, t.fs2);
print(pfn, '-dpng');
% The print command caused a strange error with __osmesa_print__
% so disable it for now until solved.
%print(pfn, '-dpng');
if t.close_plot_windows
close all;
end