|
36 | 36 | plan("test:nojavamex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnojavamex), Dependencies="clean"); |
37 | 37 |
|
38 | 38 | 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,... |
40 | 42 | Dependencies="exe", TestResults="TestResults_exe.xml", Strict=false); |
41 | 43 |
|
42 | | - plan("test:nomex") = matlab.buildtool.tasks.TestTask("test", ... |
| 44 | + plan("test:nomex") = matlab.buildtool.tasks.TestTask("test", Description="Test non-MEX targets",... |
43 | 45 | Selector=cnomex, SourceFiles="+stdlib/", RunOnlyImpactedTests=true,... |
44 | 46 | dependencies="clean_mex", TestResults="TestResults_nomex.xml", Strict=false); |
45 | 47 |
|
46 | | - plan("test:mex") = matlab.buildtool.tasks.TestTask("test", ... |
| 48 | + plan("test:mex") = matlab.buildtool.tasks.TestTask("test", Description="Test mex targts",... |
47 | 49 | Selector=cmex, SourceFiles=["+stdlib/", "src/"], RunOnlyImpactedTests=true,... |
48 | 50 | Dependencies="mex", TestResults="TestResults_mex.xml", Strict=false); |
49 | 51 |
|
50 | | - plan("test:nojavamex") = matlab.buildtool.tasks.TestTask("test", ... |
| 52 | + plan("test:nojavamex") = matlab.buildtool.tasks.TestTask("test", Description="test non-Java targets", ... |
51 | 53 | Selector=cnojavamex, SourceFiles="+stdlib/", RunOnlyImpactedTests=true,... |
52 | 54 | Dependencies="clean_mex", TestResults="TestResults_nojavamex.xml", Strict=false); |
53 | 55 |
|
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"); |
55 | 57 | end |
56 | 58 |
|
57 | 59 | td = plan.RootFolder + "/test"; |
|
61 | 63 | srcs = [srcs, td + "/stdout_stderr_fortran.f90", td + "/stdin_fortran.f90"]; |
62 | 64 | exes = [exes, td+"/stdout_stderr_fortran.exe", td+"/stdin_fortran.exe"]; |
63 | 65 | 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"); |
65 | 68 |
|
66 | 69 | if ~isMATLABReleaseOlderThan("R2024a") |
67 | 70 | plan("check") = matlab.buildtool.tasks.CodeIssuesTask(pkg_name, IncludeSubfolders=true, ... |
|
96 | 99 | mex_deps(end+1) = mex_name; %#ok<AGROW> |
97 | 100 | else |
98 | 101 | plan("mex:" + name) = matlab.buildtool.tasks.MexTask(src, bindir, ... |
| 102 | + Description="Build MEX target " + name, ... |
99 | 103 | Options=[compiler_opt, linker_opt]); |
100 | 104 | end |
101 | 105 | end |
|
0 commit comments