6363 plan(" clean_mex" ) = matlab .buildtool .Task(Actions = @clean_mex , Description= " Clean only MEX files to enable incremental tests" );
6464end
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" ];
6970if ~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" ];
7273end
74+
75+ srcs = fullfile(td , srcs );
76+ exes = fullfile(td , exes );
77+
7378plan(" 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)
132137function legacy_test(context , sel )
133138import matlab .unittest .TestSuite
134139
135- suite = TestSuite .fromFolder(context .Plan .RootFolder + " / test" );
140+ suite = TestSuite .fromFolder(fullfile( context .Plan .RootFolder , ' test' ) );
136141suite = suite .selectIf(sel );
137142
138143runner = testrunner();
@@ -146,7 +151,7 @@ function legacy_test(context, sel)
146151
147152function 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
151156publish_gen_index_html(" stdlib" , ...
152157 " A standard library of functions for Matlab." , ...
0 commit comments