Skip to content

Commit 69685cf

Browse files
committed
250720.121442.PDT update locate_matcutest to do deeper search
1 parent 8333091 commit 69685cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/rescue_idz/matlab/tests/private/locate_matcutest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
function cmpaths = locate_matcutest(directory)
22
%This function finds where MatCUTEst (https://github.com/matcutest/matcutest) is installed, adds the
33
% paths needed for using MatCUTEst, and returns these paths in a cell array.
4-
% We search at most 3 levels below the given directory, whose default value is the home directory.
4+
% We search at most 10 levels below the given directory, whose default value is the home directory.
55
% N.B.: As of 202301, MatCUTEst supports only Linux.
66

77
if nargin < 1
88
directory = homedir();
99
end
1010

1111
% In the following line, the "*/" before "matcutest" cannot be removed.
12-
[~, cmtools] = system(['find ', directory, ' -maxdepth 6 -wholename "*/matcutest/mtools/src" -type d -print -quit']);
12+
[~, cmtools] = system(['find ', directory, ' -maxdepth 13 -wholename "*/matcutest/mtools/src" -type d -print -quit']);
1313

1414
if isempty(cmtools)
1515
error('locate_matcutest:MatCUTEstNotFound', 'MatCUTEst is not found under %s.', directory);

0 commit comments

Comments
 (0)