-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: tests checking demo snippets work now in a separate worker, the snippet with s_install is excluded from checking by tests
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
function varargout=auxdfeval(processorFunc,varargin) | ||
varargout=cell(1,nargout); | ||
if nargout>0 | ||
[varargout{:}]=modgen.pcalc.auxdfeval(@processorfuncwithinstall,... | ||
varargin{:}); | ||
else | ||
modgen.pcalc.auxdfeval(@processorfuncwithinstall,varargin{:}); | ||
end | ||
|
||
function varargout=processorfuncwithinstall(varargin) | ||
welcomeString=sprintf('Installing Ellipsoidal Toolbox'); | ||
disp([welcomeString,'...']); | ||
installexternals(true); | ||
warning('on','all'); | ||
warning('off','MATLAB:dispatcher:pathWarning'); | ||
% switch off warnings for nargchk for Matlab R2016a and R2016b | ||
SMatlabInfo=ver('Matlab'); | ||
if any(strcmp(SMatlabInfo.Release,{'(R2016a)','(R2016b)'})) | ||
warning('off','MATLAB:nargchk:deprecated'); | ||
end | ||
modgen.logging.log4j.Log4jConfigurator.configureSimply(); | ||
% | ||
%% Configure CVX is needed | ||
ellipsoidsinit(); | ||
disp([welcomeString,': done']); | ||
%% Run task | ||
varargout=cell(1,nargout); | ||
if nargout>0 | ||
[varargout{:}]=feval(processorFunc,varargin{:}); | ||
else | ||
feval(processorFunc,varargin{:}); | ||
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