-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from analogdevicesinc/R2023b_release
- Loading branch information
Showing
16 changed files
with
103 additions
and
32 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
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
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
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
% HDL Coder BSP: Analog Devices Inc | ||
% Version 22.2.2 (R2022b) 24-March-2023 | ||
% Version 23.2.1 (R2023b) 21-March-2024 |
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
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 |
---|---|---|
@@ -1,21 +1,12 @@ | ||
classdef NonHWTest < matlab.unittest.TestCase | ||
|
||
properties(TestParameter) | ||
rootClasses = {'AD9361','AD9363','AD9364'... | ||
'AD9371','ADRV9009','ADRV9002'} | ||
children = {'Rx','Tx'}; | ||
rootClasses = getClasses(); | ||
end | ||
|
||
|
||
methods (Test) | ||
|
||
function call_constructors(testCase,rootClasses,children) | ||
sdr = eval(['adi.',rootClasses,'.',children,'()']); | ||
testCase.assertEqual(class(sdr),['adi.',rootClasses,'.',children]); | ||
methods (Test) | ||
function call_constructors(testCase,rootClasses) | ||
sdr = eval(['adi.',rootClasses,'()']); | ||
testCase.assertEqual(class(sdr),['adi.',rootClasses]); | ||
end | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function sysobjs = getClasses() | ||
cpwd = pwd; | ||
[filepath,~,~] = fileparts(mfilename('fullpath')); | ||
cd(filepath) | ||
cd('..'); | ||
|
||
filelist = dir(fullfile('+adi', ['**',filesep,'/*.*'])); | ||
|
||
sysobjs = {}; | ||
|
||
for fi = 1:length(filelist) | ||
name = filelist(fi).name; | ||
if strcmp(name,'Rx.m') || strcmp(name,'Tx.m') | ||
ffile = [filelist(fi).folder, filesep, name]; | ||
parts = strsplit(ffile,filesep); | ||
name = parts{end-1}; name = name(2:end); | ||
if strcmp(name,'common') | ||
continue; | ||
end | ||
if strcmp(name,'AD916x') | ||
continue | ||
end | ||
rxtx = parts{end}; rxtx = rxtx(1:end-2); | ||
sysobjs = [sysobjs(:)', {[name,'.',rxtx]}]; | ||
end | ||
end | ||
cd(cpwd); | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
function suite = runNonHWTest() | ||
|
||
import matlab.unittest.TestRunner; | ||
import matlab.unittest.TestSuite; | ||
import matlab.unittest.plugins.TestReportPlugin; | ||
import matlab.unittest.plugins.XMLPlugin | ||
import matlab.unittest.plugins.DiagnosticsValidationPlugin | ||
|
||
suite = testsuite({'NonHWTest'}); | ||
xmlFile = 'BSPDemoTests.xml'; | ||
|
||
|
||
try | ||
runner = matlab.unittest.TestRunner.withTextOutput('OutputDetail',1); | ||
runner.addPlugin(DiagnosticsValidationPlugin) | ||
|
||
xmlFile = 'BSPDemoTests.xml'; | ||
plugin = XMLPlugin.producingJUnitFormat(xmlFile); | ||
runner.addPlugin(plugin); | ||
|
||
results = runner.run(suite); | ||
|
||
t = table(results); | ||
disp(t); | ||
disp(repmat('#',1,80)); | ||
for test = results | ||
if test.Failed | ||
disp(test.Name); | ||
end | ||
end | ||
catch e | ||
disp(getReport(e,'extended')); | ||
bdclose('all'); | ||
exit(1); | ||
end | ||
|
||
save(['BSPInstallerTest_',datestr(now,'dd_mm_yyyy-HH:MM:SS'),'.mat'],'t'); | ||
bdclose('all'); | ||
exit(any([results.Failed])); |