Skip to content

Commit 423eb59

Browse files
committed
add descr
1 parent a9469fa commit 423eb59

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

buildfile.m

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,24 @@
3636
plan("test:nojavamex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnojavamex), Dependencies="clean");
3737

3838
else
39-
plan("test:exe") = matlab.buildtool.tasks.TestTask("test", Tag="exe", ...
39+
plan("test:exe") = matlab.buildtool.tasks.TestTask("test", Tag="exe", Description="test subprocess",...
40+
SourceFiles=["+stdlib/", "test/*.cpp", "test/*.c", "test/*.f90"], ...
41+
RunOnlyImpactedTests=true,...
4042
Dependencies="exe", TestResults="TestResults_exe.xml", Strict=false);
4143

42-
plan("test:nomex") = matlab.buildtool.tasks.TestTask("test", ...
44+
plan("test:nomex") = matlab.buildtool.tasks.TestTask("test", Description="Test non-MEX targets",...
4345
Selector=cnomex, SourceFiles="+stdlib/", RunOnlyImpactedTests=true,...
4446
dependencies="clean_mex", TestResults="TestResults_nomex.xml", Strict=false);
4547

46-
plan("test:mex") = matlab.buildtool.tasks.TestTask("test", ...
48+
plan("test:mex") = matlab.buildtool.tasks.TestTask("test", Description="Test mex targts",...
4749
Selector=cmex, SourceFiles=["+stdlib/", "src/"], RunOnlyImpactedTests=true,...
4850
Dependencies="mex", TestResults="TestResults_mex.xml", Strict=false);
4951

50-
plan("test:nojavamex") = matlab.buildtool.tasks.TestTask("test", ...
52+
plan("test:nojavamex") = matlab.buildtool.tasks.TestTask("test", Description="test non-Java targets", ...
5153
Selector=cnojavamex, SourceFiles="+stdlib/", RunOnlyImpactedTests=true,...
5254
Dependencies="clean_mex", TestResults="TestResults_nojavamex.xml", Strict=false);
5355

54-
plan("clean_mex") = matlab.buildtool.Task(Actions=@clean_mex);
56+
plan("clean_mex") = matlab.buildtool.Task(Actions=@clean_mex, Description="Clean only MEX files to enable incremental tests");
5557
end
5658

5759
td = plan.RootFolder + "/test";
@@ -61,7 +63,8 @@
6163
srcs = [srcs, td + "/stdout_stderr_fortran.f90", td + "/stdin_fortran.f90"];
6264
exes = [exes, td+"/stdout_stderr_fortran.exe", td+"/stdin_fortran.exe"];
6365
end
64-
plan("exe") = matlab.buildtool.Task(Inputs=srcs, Outputs=exes, Actions=@build_exe);
66+
plan("exe") = matlab.buildtool.Task(Inputs=srcs, Outputs=exes, Actions=@build_ex, ...
67+
Description="build test exe's for test subprocess");
6568

6669
if ~isMATLABReleaseOlderThan("R2024a")
6770
plan("check") = matlab.buildtool.tasks.CodeIssuesTask(pkg_name, IncludeSubfolders=true, ...
@@ -96,6 +99,7 @@
9699
mex_deps(end+1) = mex_name; %#ok<AGROW>
97100
else
98101
plan("mex:" + name) = matlab.buildtool.tasks.MexTask(src, bindir, ...
102+
Description="Build MEX target " + name, ...
99103
Options=[compiler_opt, linker_opt]);
100104
end
101105
end

0 commit comments

Comments
 (0)