Mercurial > hg > ltpda
comparison testing/utp_1.1/utps/ssm/utp_ssm_model_IFO.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 |
comparison
equal
deleted
inserted
replaced
43:bc767aaa99a8 | 44:409a22968d5e |
---|---|
1 % UTP_SSM_MODEL_IFO a set of UTPs for the IFO SSM built-in model. | |
2 % | |
3 % M Hewitson 26-07-10 | |
4 % | |
5 % $Id: utp_ssm_model_IFO.m,v 1.1 2010/07/26 16:42:29 hewitson Exp $ | |
6 % | |
7 | |
8 % <MethodDescription> | |
9 % | |
10 % The built-in model 'IFO' represents different incarnations of the | |
11 % interferometric sensing for LTP. | |
12 % | |
13 % </MethodDescription> | |
14 | |
15 function results = utp_ssm_model_IFO(varargin) | |
16 | |
17 % Check the inputs | |
18 if nargin == 0 | |
19 | |
20 % Some keywords | |
21 class = 'ssm'; | |
22 model = 'IFO'; | |
23 | |
24 results = []; | |
25 disp('******************************************************'); | |
26 disp(['**** Running UTPs for ' class '/' model]); | |
27 disp('******************************************************'); | |
28 | |
29 % Run the tests | |
30 results = [results utp_901(class, model, plist)]; % check model name | |
31 results = [results utp_902(class, model, plist)]; % check model description | |
32 results = [results utp_903(class, model, plist)]; % check model responds to 'DIM' | |
33 | |
34 disp('Done.'); | |
35 disp('******************************************************'); | |
36 | |
37 elseif nargin == 1 % Check for UTP functions | |
38 if strcmp(varargin{1}, 'isutp') | |
39 results = 1; | |
40 else | |
41 results = 0; | |
42 end | |
43 else | |
44 error('### Incorrect inputs') | |
45 end | |
46 | |
47 end |