Skip to content

Commit 0e380a8

Browse files
committed
lint
1 parent ffb6f38 commit 0e380a8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

buildfile.m

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,18 @@
6363
plan("clean_mex") = matlab.buildtool.Task(Actions=@clean_mex, Description="Clean only MEX files to enable incremental tests");
6464
end
6565

66-
td = plan.RootFolder + "/test";
67-
srcs = [td+"/stdout_stderr_c.c", td+"/stdin_cpp.cpp", td+"/printenv.cpp", td+"/sleep.cpp"];
68-
exes = [td+"/stdout_stderr_c.exe", td+"/stdin_cpp.exe", td+"/printenv.exe", td+"/sleep.exe"];
66+
td = fullfile(plan.RootFolder, 'test');
67+
68+
srcs = ["stdout_stderr_c.c", "stdin_cpp.cpp", "printenv.cpp", "sleep.cpp"];
69+
exes = ["stdout_stderr_c.exe", "stdin_cpp.exe", "printenv.exe", "sleep.exe"];
6970
if ~isempty(get_compiler("fortran"))
70-
srcs = [srcs, td + "/stdout_stderr_fortran.f90", td + "/stdin_fortran.f90"];
71-
exes = [exes, td+"/stdout_stderr_fortran.exe", td+"/stdin_fortran.exe"];
71+
srcs = [srcs, "stdout_stderr_fortran.f90", "stdin_fortran.f90"];
72+
exes = [exes, "stdout_stderr_fortran.exe", "stdin_fortran.exe"];
7273
end
74+
75+
srcs = fullfile(td, srcs);
76+
exes = fullfile(td, exes);
77+
7378
plan("exe") = matlab.buildtool.Task(Inputs=srcs, Outputs=exes, Actions=@build_exe, ...
7479
Description="build test exe's for test subprocess");
7580

@@ -132,7 +137,7 @@ function legacy_mex(context, compiler_opt, linker_opt)
132137
function legacy_test(context, sel)
133138
import matlab.unittest.TestSuite
134139

135-
suite = TestSuite.fromFolder(context.Plan.RootFolder + "/test");
140+
suite = TestSuite.fromFolder(fullfile(context.Plan.RootFolder, 'test'));
136141
suite = suite.selectIf(sel);
137142

138143
runner = testrunner();
@@ -146,7 +151,7 @@ function legacy_test(context, sel)
146151

147152
function publishTask(context)
148153
% publish HTML inline documentation strings to individual HTML files
149-
outdir = context.Plan.RootFolder + "/docs";
154+
outdir = fullfile(context.Plan.RootFolder, 'docs');
150155

151156
publish_gen_index_html("stdlib", ...
152157
"A standard library of functions for Matlab.", ...

0 commit comments

Comments
 (0)