• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:legacy

4 %  Use of this source code is governed by a BSD-style license
11 function apmtest(task, testname, filepath, casenumber, legacy)
14 % 'test' Processes the files to produce test output.
15 % 'list' Prints a list of cases in the test set, preceded by their
17 % 'show' Uses spclab to show the test case specified by the
20 % using a set of test files determined by TESTNAME:
22 % 'apm' The standard APM test set (default).
23 % 'apmm' The mobile APM test set.
24 % 'aec' The AEC test set.
25 % 'aecm' The AECM test set.
26 % 'agc' The AGC test set.
27 % 'ns' The NS test set.
28 % 'vad' The VAD test set.
30 % FILEPATH specifies the path to the test data files.
32 % CASENUMBER can be used to select a single test case. Omit CASENUMBER,
33 % or set to zero, to use all test cases.
36 if nargin < 5 || isempty(legacy)
38 legacy = false; variable
54 task = 'test';
57 if ~strcmp(task, 'test') && ~strcmp(task, 'list') && ~strcmp(task, 'show')
75 if legacy
76 progname = './test';
87 if legacy
110 if legacy
111 opt = ['-ec 1 -agc 2 -nc 2 -vad 3'];
113 opt = ['--no_progress -hpf' ...
114 ' -aec --drift_compensation -agc --fixed_digital' ...
115 ' -ns --ns_moderate -vad'];
118 elseif strcmp(tests{i}, 'apm-swb')
120 testdir = ['apm-swb/'];
122 if legacy
123 opt = ['-fs 32000 -ec 1 -agc 2 -nc 2'];
125 opt = ['--no_progress -fs 32000 -hpf' ...
126 ' -aec --drift_compensation -agc --adaptive_digital' ...
127 ' -ns --ns_moderate -vad'];
132 opt = ['-aec --drift_compensation -agc --fixed_digital -hpf -ns ' ...
133 '--ns_moderate'];
157 progname, opt, simulateMode, nErr, nCases, task, casenumber, legacy);
159 if strcmp(task, 'test') || strcmp(task, 'show')
172 fprintf(1, '\nAll files are bit-exact to reference\n', nErr);
174 fprintf(1, '\n%d files are NOT bit-exact to reference\n', nErr);
181 legacy)
208 % Check for VAD test
210 if ~isempty(findstr(opt, '-vad'))
212 if legacy
215 opt = [opt ' --vad_out_file ' outpath vadoutfile];
220 system(['ln -s -f ' inpath 'vqeFar.pcm ' farFile]);
222 system(['ln -s -f ' inpath 'apm_far.pcm ' farFile]);
226 system(['ln -s -f ' inpath 'vqeNear.pcm ' nearFile]);
228 system(['ln -s -f ' inpath 'apm_near.pcm ' nearFile]);
232 system(['ln -s -f ' inpath 'vqeEvent.dat ' eventFile]);
234 system(['ln -s -f ' inpath 'apm_event.dat ' eventFile]);
238 system(['ln -s -f ' inpath 'vqeBuf.dat ' delayFile]);
240 system(['ln -s -f ' inpath 'apm_delay.dat ' delayFile]);
244 system(['ln -s -f ' inpath 'vqeSkew.dat ' driftFile]);
246 system(['ln -s -f ' inpath 'vqeDrift.dat ' driftFile]);
248 system(['ln -s -f ' inpath 'apm_drift.dat ' driftFile]);
252 command = [progname ' -o ' outpath outfile ' ' opt];
254 if legacy
255 inputCmd = [' -in ' nearFile];
257 inputCmd = [' -i ' nearFile];
261 if legacy
262 inputCmd = [' -if ' farFile inputCmd];
264 inputCmd = [' -ir ' farFile inputCmd];
267 command = [progname inputCmd ' -o ' outpath outfile ' ' opt];
270 shellcmd = ['bash -c "unset LD_LIBRARY_PATH;'];
317 simulateMode, nErr, nCases, task, casenumber, legacy);
352 diffvector = new - ref;
355 fprintf([newfile ' is bit-exact to reference\n']);