Skip to content

Commit b1c979d

Browse files
singalsulgirdwood
authored andcommitted
Tools: Test: Audio: Add option to run tdfb_test.m with xt-run
The option for xt-run enables to run the xtensa build of sof-testbench4. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 99b1de1 commit b1c979d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tools/test/audio/tdfb_test.m

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
function tdfb_test()
1+
function tdfb_test(xtrun)
22

3-
% tdfb_test()
3+
% tdfb_test(xtrun)
44
% Inputs
5-
% None
5+
% xtrun - set to 'xt-run' or 'xt-run --turbo' to test with xt-testbench
66
%
77
% Outputs
88
% None, to be added later when automatic pass/fail is possible to
@@ -12,10 +12,15 @@ function tdfb_test()
1212
% Copyright(c) 2020-2025 Intel Corporation.
1313
% Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1414

15+
if nargin < 1
16+
xtrun = '';
17+
end
18+
1519
% General settings
1620
cfg.delete_files = 1;
1721
cfg.do_plots = 1;
1822
cfg.tunepath = '../../../src/audio/tdfb/tune/data';
23+
cfg.xtrun = xtrun;
1924

2025
% Arrays to test. Since the two beams configurations are merge of two designs (pm90deg)
2126
% need to specify a compatible data file identifier for a single beam design (az0el0deg)
@@ -119,6 +124,7 @@ function tdfb_test()
119124
test = test_defaults(bf, tdfb);
120125
test.fn_in = fullfile(cfg.tunepath, simcap_fn);
121126
test.fn_out = 'sinerot.raw';
127+
test.xtrun = cfg.xtrun;
122128

123129
% Run test
124130
test = test_run_comp(test);

0 commit comments

Comments
 (0)