|
16 | 16 | cnomex = cnomex & ~HasTag("windows"); |
17 | 17 | end |
18 | 18 |
|
19 | | -cmex = HasTag("mex"); |
| 19 | +% cmex = HasTag("mex"); |
20 | 20 |
|
21 | 21 | cjava = HasTag("java") & ~HasTag("exe"); |
22 | 22 |
|
|
32 | 32 | if isMATLABReleaseOlderThan("R2024b") |
33 | 33 |
|
34 | 34 | plan("test_java") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cjava)); |
35 | | - plan("test_nomex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnomex), Dependencies="clean"); |
| 35 | + plan("test_main") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnomex)); |
36 | 36 |
|
37 | 37 | elseif isMATLABReleaseOlderThan("R2025a") |
38 | 38 | % Matlab == R2024b |
39 | 39 | plan("test:java") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cjava)); |
40 | 40 | plan("test:exe") = matlab.buildtool.tasks.TestTask(test_root, Tag="exe", Dependencies="exe"); |
41 | | - plan("test:nomex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnomex), Dependencies="clean"); |
42 | | - plan("test:mex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cmex), Dependencies="mex"); |
| 41 | + plan("test:main") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnomex)); |
| 42 | + % plan("test:mex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cmex), Dependencies="mex"); |
43 | 43 |
|
44 | 44 | else |
45 | 45 | % Matlab >= R2025a |
|
48 | 48 | RunOnlyImpactedTests=true,... |
49 | 49 | Dependencies="exe", TestResults="TestResults_exe.xml", Strict=true); |
50 | 50 |
|
51 | | - plan("test:nomex") = matlab.buildtool.tasks.TestTask(test_root, Description="Test non-MEX targets",... |
| 51 | + plan("test:main") = matlab.buildtool.tasks.TestTask(test_root, Description="Test non-MEX targets",... |
52 | 52 | Selector=cnomex, ... |
53 | 53 | SourceFiles=pkg_root, RunOnlyImpactedTests=true,... |
54 | | - dependencies="clean_mex", TestResults="TestResults_nomex.xml", Strict=true); |
| 54 | + TestResults="TestResults_nomex.xml", Strict=true); |
55 | 55 |
|
56 | | - plan("test:mex") = matlab.buildtool.tasks.TestTask(test_root, Description="Test mex targts",... |
57 | | - Selector=cmex, ... |
58 | | - SourceFiles=[pkg_root, plan.RootFolder + "/src"], RunOnlyImpactedTests=true,... |
59 | | - Dependencies="mex", TestResults="TestResults_mex.xml", Strict=true); |
| 56 | + % plan("test:mex") = matlab.buildtool.tasks.TestTask(test_root, Description="Test mex targts",... |
| 57 | + % Selector=cmex, ... |
| 58 | + % SourceFiles=[pkg_root, plan.RootFolder + "/src"], RunOnlyImpactedTests=true,... |
| 59 | + % Dependencies="mex", TestResults="TestResults_mex.xml", Strict=true); |
60 | 60 |
|
61 | 61 | plan("test:java") = matlab.buildtool.tasks.TestTask(test_root, Description="test Java targets", ... |
62 | 62 | Selector=cjava, ... |
63 | 63 | SourceFiles=pkg_root, RunOnlyImpactedTests=true,... |
64 | 64 | TestResults="TestResults_java.xml", Strict=true); |
65 | 65 |
|
66 | | - plan("test:python") = matlab.buildtool.tasks.TestTask(test_root, Description="test Python targets", ... |
67 | | - Tag="python", ... |
68 | | - SourceFiles=pkg_root, RunOnlyImpactedTests=true,... |
69 | | - TestResults="TestResults_python.xml", Strict=true); |
70 | | - |
71 | 66 | addons = matlab.addons.installedAddons; |
72 | 67 | if contains(addons.Name, "Matlab Test") |
73 | 68 | plan("coverage") = matlab.buildtool.tasks.TestTask(test_root, ... |
74 | 69 | Description="code coverage", ... |
75 | | - Dependencies=["clean_mex", "exe"], ... |
| 70 | + Dependencies="exe", ... |
76 | 71 | SourceFiles=pkg_root, ... |
77 | 72 | Selector=cnomex | HasTag("java") | HasTag("exe") | HasTag("python"), ... |
78 | 73 | Strict=false).addCodeCoverage(matlabtest.plugins.codecoverage.StandaloneReport("coverage-report.html")); |
79 | 74 | end |
80 | 75 |
|
81 | | - plan("clean_mex") = matlab.buildtool.Task(Actions=@clean_mex, Description="Clean only MEX files to enable incremental tests"); |
| 76 | + % plan("clean_mex") = matlab.buildtool.Task(Actions=@clean_mex, Description="Clean only MEX files to enable incremental tests"); |
82 | 77 | end |
83 | 78 |
|
84 | 79 | if isMATLABReleaseOlderThan("R2023a"), return, end |
|
102 | 97 | WarningThreshold=0, Results="CodeIssues.sarif"); |
103 | 98 | end |
104 | 99 |
|
105 | | -if isMATLABReleaseOlderThan("R2024b"), return, end |
106 | 100 |
|
107 | 101 | %% MexTask |
108 | | - |
109 | | -for s = get_mex_sources() |
110 | | - src = s{1}; |
111 | | - [~, name] = fileparts(src(1)); |
112 | | - |
113 | | -% name of MEX target function is name of first source file |
114 | | - plan("mex:" + name) = matlab.buildtool.tasks.MexTask(src, pkg_root, ... |
115 | | - Description="Build MEX target " + name, ... |
116 | | - Options=get_compiler_options()); |
| 102 | +if ~isMATLABReleaseOlderThan("R2024b") |
| 103 | +% for s = get_mex_sources() |
| 104 | +% src = s{1}; |
| 105 | +% [~, name] = fileparts(src(1)); |
| 106 | +% |
| 107 | +% % name of MEX target function is name of first source file |
| 108 | +% plan("mex:" + name) = matlab.buildtool.tasks.MexTask(src, pkg_root, ... |
| 109 | +% Description="Build MEX target " + name, ... |
| 110 | +% Options=get_compiler_options()); |
| 111 | +% end |
117 | 112 | end |
118 | 113 |
|
119 | 114 | end |
120 | 115 |
|
121 | 116 |
|
122 | | -function clean_mex(context) |
123 | | -run(context.Plan, "clean", {"mex"}); |
124 | | -end |
| 117 | +% function clean_mex(context) |
| 118 | +% run(context.Plan, "clean", {"mex"}); |
| 119 | +% end |
125 | 120 |
|
126 | 121 |
|
127 | 122 | function legacy_test(context, sel) |
@@ -159,17 +154,16 @@ function publishTask(context) |
159 | 154 | end |
160 | 155 |
|
161 | 156 | srcs = { |
162 | | -"src/remove.cpp", ... |
163 | | -["src/normalize.cpp", "src/normalize_fs.cpp", "src/pure.cpp"], ... |
164 | | -"src/set_permissions.cpp" |
| 157 | +% "src/remove.cpp", ... |
| 158 | +%["src/normalize.cpp", "src/normalize_fs.cpp", "src/pure.cpp"], ... |
| 159 | +% "src/set_permissions.cpp" |
165 | 160 | }; |
166 | 161 |
|
167 | 162 | if ~stdlib.has_python() || build_all |
168 | 163 | srcs{end+1} = "src/is_char_device.cpp"; |
169 | 164 | srcs{end+1} = ["src/is_admin.cpp", "src/admin_fs.cpp"]; |
170 | | -srcs{end+1} = "src/disk_available.cpp"; |
171 | | -srcs{end+1} = "src/disk_capacity.cpp"; |
| 165 | +% srcs{end+1} = "src/disk_available.cpp"; |
| 166 | +% srcs{end+1} = "src/disk_capacity.cpp"; |
172 | 167 | end |
173 | 168 |
|
174 | 169 | end |
175 | | - |
0 commit comments