63
63
plan(" clean_mex" ) = matlab .buildtool .Task(Actions = @clean_mex , Description= " Clean only MEX files to enable incremental tests" );
64
64
end
65
65
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" ];
69
70
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" ];
72
73
end
74
+
75
+ srcs = fullfile(td , srcs );
76
+ exes = fullfile(td , exes );
77
+
73
78
plan(" exe" ) = matlab .buildtool .Task(Inputs = srcs , Outputs= exes , Actions= @build_exe , ...
74
79
Description= " build test exe's for test subprocess" );
75
80
@@ -132,7 +137,7 @@ function legacy_mex(context, compiler_opt, linker_opt)
132
137
function legacy_test(context , sel )
133
138
import matlab .unittest .TestSuite
134
139
135
- suite = TestSuite .fromFolder(context .Plan .RootFolder + " / test" );
140
+ suite = TestSuite .fromFolder(fullfile( context .Plan .RootFolder , ' test' ) );
136
141
suite = suite .selectIf(sel );
137
142
138
143
runner = testrunner();
@@ -146,7 +151,7 @@ function legacy_test(context, sel)
146
151
147
152
function publishTask(context )
148
153
% publish HTML inline documentation strings to individual HTML files
149
- outdir = context .Plan .RootFolder + " / docs" ;
154
+ outdir = fullfile( context .Plan .RootFolder , ' docs' ) ;
150
155
151
156
publish_gen_index_html(" stdlib" , ...
152
157
" A standard library of functions for Matlab." , ...
0 commit comments