-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds SupportPackage installation to alternates/building-on-matlab-doc…
…ker-image
- Loading branch information
1 parent
7eb81ed
commit 45e71d1
Showing
5 changed files
with
63 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/alternates/building-on-matlab-docker-image/productsTest.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
% Copyright 2023 The MathWorks, Inc. | ||
|
||
classdef productsTest < matlab.unittest.TestCase | ||
|
||
|
||
methods(Test) | ||
function testInstalledToolboxesMatchExpected( testCase ) | ||
import matlab.unittest.constraints.IsSameSetAs | ||
|
||
% names of the expected toolboxes | ||
expectedTbxNames = [... | ||
"Deep Learning Toolbox",... | ||
"Symbolic Math Toolbox"... | ||
]; | ||
installedTbxNames = matlab.addons.installedAddons().Name; | ||
testCase.verifyThat(installedTbxNames, IsSameSetAs(expectedTbxNames)); | ||
end | ||
function testInstalledSupportPackagesMatchExpected( testCase ) | ||
import matlab.unittest.constraints.IsSameSetAs | ||
|
||
% names of the expected support packages | ||
expectedSpkgNames = [... | ||
"Deep Learning Toolbox Model for ResNet-50 Network"... | ||
]; | ||
installedSpkgNames = matlabshared.supportpkg.getInstalled().Name; | ||
testCase.verifyThat(installedSpkgNames, IsSameSetAs(expectedSpkgNames)); | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
tests/alternates/building-on-matlab-docker-image/toolboxesTest.m
This file was deleted.
Oops, something went wrong.