diff testing/utp_1.1/utps/ssm/utp_ssm_model_DFACS.m @ 44:409a22968d5e default

Add unit tests
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 18:42:11 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testing/utp_1.1/utps/ssm/utp_ssm_model_DFACS.m	Tue Dec 06 18:42:11 2011 +0100
@@ -0,0 +1,53 @@
+% UTP_SSM_MODEL_DFACS a set of UTPs for the DFACS SSM built-in model.
+%
+% M Hewitson 26-07-10
+%
+% $Id: utp_ssm_model_DFACS.m,v 1.2 2010/07/27 07:13:59 hewitson Exp $
+%
+
+% <MethodDescription>
+%
+% The built-in model 'DFACS' represents different incarnations of the controllers
+% for LPF.
+%
+% </MethodDescription>
+
+function results = utp_ssm_model_DFACS(varargin)
+  
+  % Check the inputs
+  if nargin == 0
+    
+    % Some keywords
+    class   = 'ssm';
+    model   = 'DFACS';
+    
+    results = [];
+    disp('******************************************************');
+    disp(['****  Running UTPs for ' class '/' model]);
+    disp('******************************************************');
+    
+    % Run the tests
+    results = [results utp_901(class, model, plist)];  % check model name
+    results = [results utp_902(class, model, plist)];  % check model description    
+    results = [results utp_903(class, model, plist)];  % check model responds to 'DIM'
+        
+%     results = [results utp_920(class, model, plist)];  % check model bode response
+    
+    disp('Done.');
+    disp('******************************************************');
+    
+  elseif nargin == 1 % Check for UTP functions
+    if strcmp(varargin{1}, 'isutp')
+      results = 1;
+    else
+      results = 0;
+    end
+  else
+    error('### Incorrect inputs')
+  end
+  
+  
+  
+
+
+end