|
13 | 13 |
|
14 | 14 | cnomex = ~HasTag("exe") & ~HasTag("mex"); |
15 | 15 | cmex = ~HasTag("exe") & HasTag("mex"); |
| 16 | +cnojavamex = ~HasTag("java") & cmex; |
16 | 17 |
|
17 | 18 | if isMATLABReleaseOlderThan("R2024b") |
18 | 19 |
|
19 | 20 | plan("test_exe") = matlab.buildtool.tasks.TestTask("test", Tag="exe", Dependencies="exe"); |
20 | 21 | plan("test_nomex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnomex), Dependencies="clean"); |
21 | 22 | plan("test_mex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cmex), Dependencies="mex"); |
| 23 | + plan("test_nojavamex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnojavamex), Dependencies="clean"); |
22 | 24 |
|
23 | 25 | elseif isMATLABReleaseOlderThan("R2025a") |
24 | 26 |
|
25 | 27 | plan("test:exe") = matlab.buildtool.tasks.TestTask("test", Tag="exe", Dependencies="exe"); |
26 | 28 | plan("test:nomex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnomex), Dependencies="clean"); |
27 | 29 | plan("test:mex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cmex), Dependencies="mex"); |
| 30 | + plan("test:nojavamex") = matlab.buildtool.Task(Actions=@(context) legacy_test(context, cnojavamex), Dependencies="clean"); |
28 | 31 |
|
29 | 32 | else |
30 | 33 | % can't use SourceFiles= if "mex" Task was run, even if plan("test").DisableIncremental = true; |
|
40 | 43 | Selector=cmex, ... |
41 | 44 | Dependencies="mex", TestResults="TestResults_mex.xml", Strict=false); |
42 | 45 |
|
| 46 | + plan("test:nojavamex") = matlab.buildtool.tasks.TestTask("test", ... |
| 47 | + Selector=cnojavamex, ... |
| 48 | + Dependencies="clean", TestResults="TestResults_nojavamex.xml", Strict=false); |
| 49 | + |
43 | 50 | end |
44 | 51 |
|
45 | 52 | td = plan.RootFolder + "/test"; |
|
0 commit comments