Skip to content

Commit bdc9ec7

Browse files
Update building on mathworks/matlab alternate tests to support non default matlab-beps os variants
1 parent 435b6d8 commit bdc9ec7

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

tests/alternates/building-on-matlab-docker-image/productsTest.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Copyright 2023 The MathWorks, Inc.
1+
% Copyright 2023-2025 The MathWorks, Inc.
22

33
classdef productsTest < matlab.unittest.TestCase
44

@@ -12,6 +12,13 @@ function testInstalledToolboxesMatchExpected( testCase )
1212
"Deep Learning Toolbox",...
1313
"Symbolic Math Toolbox"...
1414
];
15+
16+
if ~ isMATLABReleaseOlderThan("R2025a")
17+
expectedTbxNames = [expectedTbxNames, ...
18+
"Deep Learning Toolbox Model for ResNet-50 Network", ...
19+
];
20+
end
21+
1522
installedTbxNames = matlab.addons.installedAddons().Name;
1623
testCase.verifyThat(installedTbxNames, IsSameSetAs(expectedTbxNames));
1724
end

tests/alternates/building-on-matlab-docker-image/test_container.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The MathWorks, Inc.
1+
# Copyright 2023-2025 The MathWorks, Inc.
22

33
"""
44
Test class to validate the "building-on-matlab-docker-image" Dockerfile.
@@ -62,6 +62,13 @@ def test_packages_present(self):
6262
f"Package {pkg} is not installed",
6363
)
6464

65+
@unittest.skip(
66+
"Skipping test as mathworks/matlab images are not always built with the mathworks matlab-deps default os"
67+
)
68+
def test_matlab_deps_packages_installed(self):
69+
"""Override the test of the same name defined in the inherited test class."""
70+
pass
71+
6572

6673
################################################################################
6774

0 commit comments

Comments
 (0)