comparison m-toolbox/test/test_submit_check.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % A test script to figure out how to do the submission test
2 mc
3
4 b = ao(1:10);
5
6 %% Case 1
7
8 submit(b)
9
10 %% Case 2
11
12 pl = plist('experiment title', 'a nice experiment')
13 submit(b,pl)
14
15 %% Case 3
16
17 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'experiment title', 'a nice experiment')
18 submit(b,pl)
19
20 %% Case 4
21
22 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', ...
23 'experiment title', 'a nice experiment', ...
24 'experiment description', 'describe this thing', ...
25 'analysis description', 'no analysis', 'keywords', 'a,b,c')
26 submit(b,pl)
27
28 %% Case 5
29 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', 'password', 'asd', ...
30 'experiment title', 'a nice experiment', ...
31 'experiment description', 'describe this thing', ...
32 'analysis description', 'no analysis', ...
33 'keywords', 'a,b,c', ...
34 'quantity', 'none', ...
35 'reference ids', '1,2,3', ...
36 'additional comments', 'none', ...
37 'additional authors', 'none')
38 submit(b,pl)
39
40 %% Case 6
41
42 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', ...
43 'experiment title', 'a nice experiment', ...
44 'experiment description', 'describe this thing', ...
45 'analysis description', 'no analysis', 'keywords', 'a,b,c', 'no dialog', true)
46 submit(b,pl)
47
48 %% Case 7
49
50 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', 'password', 'asd', ...
51 'experiment title', 'a nice experiment', ...
52 'experiment description', 'describe this thing', ...
53 'analysis description', 'no analysis', 'keywords', 'a,b,c', 'no dialog', true)
54 submit(b,pl)
55
56 %% Case 8
57
58 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', 'password', 'asd', ...
59 'experiment title', 'a nice experiment', ...
60 'experiment description', 'describe this thing', ...
61 'analysis description', 'no analysis', 'keywords', 'a,b,c', 'no dialog', false)
62 submit(b,pl)
63
64
65 %% Case 9
66
67 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', 'password', 'asd', ...
68 'experiment title', 'a nice experiment', ...
69 'experiment description', 'describe this thing', ...
70 'analysis description', 'no analysis', 'keywords', 'a,b,c')
71 submit(b,pl)
72
73
74 %% Case 10
75
76 pl = plist('hostname', 'localhost', 'database', 'ltpda_test', 'username', 'hewitson', 'password', 'asd', ...
77 'experiment title', 'a nice experiment', ...
78 'experiment description', 'describe this thing', ...
79 'analysis description', 'no analysis', 'keywords', 'a,b,c', 'no dialog', true)
80 bsubmit(b,pl)
81