xref: /minix3/external/bsd/kyua-cli/dist/store/testdata_v1.sql (revision 11be35a165022172ed3cea20f2b5df0307540b0e)
1*11be35a1SLionel Sambuc-- Copyright 2013 Google Inc.
2*11be35a1SLionel Sambuc-- All rights reserved.
3*11be35a1SLionel Sambuc--
4*11be35a1SLionel Sambuc-- Redistribution and use in source and binary forms, with or without
5*11be35a1SLionel Sambuc-- modification, are permitted provided that the following conditions are
6*11be35a1SLionel Sambuc-- met:
7*11be35a1SLionel Sambuc--
8*11be35a1SLionel Sambuc-- * Redistributions of source code must retain the above copyright
9*11be35a1SLionel Sambuc--   notice, this list of conditions and the following disclaimer.
10*11be35a1SLionel Sambuc-- * Redistributions in binary form must reproduce the above copyright
11*11be35a1SLionel Sambuc--   notice, this list of conditions and the following disclaimer in the
12*11be35a1SLionel Sambuc--   documentation and/or other materials provided with the distribution.
13*11be35a1SLionel Sambuc-- * Neither the name of Google Inc. nor the names of its contributors
14*11be35a1SLionel Sambuc--   may be used to endorse or promote products derived from this software
15*11be35a1SLionel Sambuc--   without specific prior written permission.
16*11be35a1SLionel Sambuc--
17*11be35a1SLionel Sambuc-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*11be35a1SLionel Sambuc-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*11be35a1SLionel Sambuc-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20*11be35a1SLionel Sambuc-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21*11be35a1SLionel Sambuc-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22*11be35a1SLionel Sambuc-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23*11be35a1SLionel Sambuc-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24*11be35a1SLionel Sambuc-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25*11be35a1SLionel Sambuc-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26*11be35a1SLionel Sambuc-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27*11be35a1SLionel Sambuc-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*11be35a1SLionel Sambuc
29*11be35a1SLionel Sambuc-- \file store/testdata_v1.sql
30*11be35a1SLionel Sambuc-- Populates a v1 database with some test data.
31*11be35a1SLionel Sambuc
32*11be35a1SLionel Sambuc
33*11be35a1SLionel SambucBEGIN TRANSACTION;
34*11be35a1SLionel Sambuc
35*11be35a1SLionel Sambuc
36*11be35a1SLionel Sambuc--
37*11be35a1SLionel Sambuc-- Action 1: Empty context and no test programs nor test cases.
38*11be35a1SLionel Sambuc--
39*11be35a1SLionel Sambuc
40*11be35a1SLionel Sambuc
41*11be35a1SLionel Sambuc-- context_id 1
42*11be35a1SLionel SambucINSERT INTO contexts (context_id, cwd) VALUES (1, '/some/root');
43*11be35a1SLionel Sambuc
44*11be35a1SLionel Sambuc-- action_id 1
45*11be35a1SLionel SambucINSERT INTO actions (action_id, context_id) VALUES (1, 1);
46*11be35a1SLionel Sambuc
47*11be35a1SLionel Sambuc
48*11be35a1SLionel Sambuc--
49*11be35a1SLionel Sambuc-- Action 2: Plain test programs only.
50*11be35a1SLionel Sambuc--
51*11be35a1SLionel Sambuc-- This action contains 5 test programs, each with one test case, and each
52*11be35a1SLionel Sambuc-- reporting one of all possible result types.
53*11be35a1SLionel Sambuc--
54*11be35a1SLionel Sambuc
55*11be35a1SLionel Sambuc
56*11be35a1SLionel Sambuc-- context_id 2
57*11be35a1SLionel SambucINSERT INTO contexts (context_id, cwd) VALUES (2, '/test/suite/root');
58*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value)
59*11be35a1SLionel Sambuc    VALUES (2, 'HOME', '/home/test');
60*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value)
61*11be35a1SLionel Sambuc    VALUES (2, 'PATH', '/bin:/usr/bin');
62*11be35a1SLionel Sambuc
63*11be35a1SLionel Sambuc-- action_id 2
64*11be35a1SLionel SambucINSERT INTO actions (action_id, context_id) VALUES (2, 2);
65*11be35a1SLionel Sambuc
66*11be35a1SLionel Sambuc-- test_program_id 1
67*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
68*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
69*11be35a1SLionel Sambuc    VALUES (1, 2, '/test/suite/root/foo_test', '/test/suite/root',
70*11be35a1SLionel Sambuc            'foo_test', 'suite-name', 'plain');
71*11be35a1SLionel SambucINSERT INTO plain_test_programs (test_program_id, timeout)
72*11be35a1SLionel Sambuc    VALUES (1, 300000000);
73*11be35a1SLionel Sambuc
74*11be35a1SLionel Sambuc-- test_case_id 1
75*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
76*11be35a1SLionel Sambuc    VALUES (1, 1, 'main');
77*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
78*11be35a1SLionel Sambuc                          end_time)
79*11be35a1SLionel Sambuc    VALUES (1, 'passed', NULL, 1357643611000000, 1357643621000500);
80*11be35a1SLionel Sambuc
81*11be35a1SLionel Sambuc-- test_program_id 2
82*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
83*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
84*11be35a1SLionel Sambuc    VALUES (2, 2, '/test/suite/root/subdir/another_test', '/test/suite/root',
85*11be35a1SLionel Sambuc            'subdir/another_test', 'subsuite-name', 'plain');
86*11be35a1SLionel SambucINSERT INTO plain_test_programs (test_program_id, timeout)
87*11be35a1SLionel Sambuc    VALUES (2, 10000000);
88*11be35a1SLionel Sambuc
89*11be35a1SLionel Sambuc-- test_case_id 2
90*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
91*11be35a1SLionel Sambuc    VALUES (2, 2, 'main');
92*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
93*11be35a1SLionel Sambuc                          end_time)
94*11be35a1SLionel Sambuc    VALUES (2, 'failed', 'Exited with code 1',
95*11be35a1SLionel Sambuc            1357643622001200, 1357643622900021);
96*11be35a1SLionel Sambuc
97*11be35a1SLionel Sambuc-- file_id 1
98*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (1, x'54657374207374646f7574');
99*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id)
100*11be35a1SLionel Sambuc    VALUES (2, '__STDOUT__', 1);
101*11be35a1SLionel Sambuc
102*11be35a1SLionel Sambuc-- file_id 2
103*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (2, x'5465737420737464657272');
104*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id)
105*11be35a1SLionel Sambuc    VALUES (2, '__STDERR__', 2);
106*11be35a1SLionel Sambuc
107*11be35a1SLionel Sambuc-- test_program_id 3
108*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
109*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
110*11be35a1SLionel Sambuc    VALUES (3, 2, '/test/suite/root/subdir/bar_test', '/test/suite/root',
111*11be35a1SLionel Sambuc            'subdir/bar_test', 'subsuite-name', 'plain');
112*11be35a1SLionel SambucINSERT INTO plain_test_programs (test_program_id, timeout)
113*11be35a1SLionel Sambuc    VALUES (3, 300000000);
114*11be35a1SLionel Sambuc
115*11be35a1SLionel Sambuc-- test_case_id 3
116*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
117*11be35a1SLionel Sambuc    VALUES (3, 3, 'main');
118*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
119*11be35a1SLionel Sambuc                          end_time)
120*11be35a1SLionel Sambuc    VALUES (3, 'broken', 'Received signal 1',
121*11be35a1SLionel Sambuc            1357643623500000, 1357643630981932);
122*11be35a1SLionel Sambuc
123*11be35a1SLionel Sambuc-- test_program_id 4
124*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
125*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
126*11be35a1SLionel Sambuc    VALUES (4, 2, '/test/suite/root/top_test', '/test/suite/root',
127*11be35a1SLionel Sambuc            'top_test', 'suite-name', 'plain');
128*11be35a1SLionel SambucINSERT INTO plain_test_programs (test_program_id, timeout)
129*11be35a1SLionel Sambuc    VALUES (4, 300000000);
130*11be35a1SLionel Sambuc
131*11be35a1SLionel Sambuc-- test_case_id 4
132*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
133*11be35a1SLionel Sambuc    VALUES (4, 4, 'main');
134*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
135*11be35a1SLionel Sambuc                          end_time)
136*11be35a1SLionel Sambuc    VALUES (4, 'expected_failure', 'Known bug',
137*11be35a1SLionel Sambuc            1357643631000000, 1357643631020000);
138*11be35a1SLionel Sambuc
139*11be35a1SLionel Sambuc-- test_program_id 5
140*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
141*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
142*11be35a1SLionel Sambuc    VALUES (5, 2, '/test/suite/root/last_test', '/test/suite/root',
143*11be35a1SLionel Sambuc            'last_test', 'suite-name', 'plain');
144*11be35a1SLionel SambucINSERT INTO plain_test_programs (test_program_id, timeout)
145*11be35a1SLionel Sambuc    VALUES (5, 300000000);
146*11be35a1SLionel Sambuc
147*11be35a1SLionel Sambuc-- test_case_id 5
148*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
149*11be35a1SLionel Sambuc    VALUES (5, 5, 'main');
150*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
151*11be35a1SLionel Sambuc                          end_time)
152*11be35a1SLionel Sambuc    VALUES (5, 'skipped', 'Does not apply', 1357643632000000, 1357643638000000);
153*11be35a1SLionel Sambuc
154*11be35a1SLionel Sambuc
155*11be35a1SLionel Sambuc--
156*11be35a1SLionel Sambuc-- Action 3: ATF test programs only.
157*11be35a1SLionel Sambuc--
158*11be35a1SLionel Sambuc
159*11be35a1SLionel Sambuc
160*11be35a1SLionel Sambuc-- context_id 3
161*11be35a1SLionel SambucINSERT INTO contexts (context_id, cwd) VALUES (3, '/usr/tests');
162*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value)
163*11be35a1SLionel Sambuc    VALUES (3, 'PATH', '/bin:/usr/bin');
164*11be35a1SLionel Sambuc
165*11be35a1SLionel Sambuc-- action_id 3
166*11be35a1SLionel SambucINSERT INTO actions (action_id, context_id) VALUES (3, 3);
167*11be35a1SLionel Sambuc
168*11be35a1SLionel Sambuc-- test_program_id 6
169*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
170*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
171*11be35a1SLionel Sambuc    VALUES (6, 3, '/usr/tests/complex_test', '/usr/tests',
172*11be35a1SLionel Sambuc            'complex_test', 'suite-name', 'atf');
173*11be35a1SLionel Sambuc
174*11be35a1SLionel Sambuc-- test_case_id 6, passed, no optional metadata.
175*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
176*11be35a1SLionel Sambuc    VALUES (6, 6, 'this_passes');
177*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
178*11be35a1SLionel Sambuc                          end_time)
179*11be35a1SLionel Sambuc    VALUES (6, 'passed', NULL, 1357648712000000, 1357648718000000);
180*11be35a1SLionel SambucINSERT INTO atf_test_cases (test_case_id, description, has_cleanup, timeout,
181*11be35a1SLionel Sambuc                            required_memory, required_user)
182*11be35a1SLionel Sambuc    VALUES (6, NULL, 'false', 300000000, 0, NULL);
183*11be35a1SLionel Sambuc
184*11be35a1SLionel Sambuc-- test_case_id 7, failed, optional non-multivalue metadata.
185*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
186*11be35a1SLionel Sambuc    VALUES (7, 6, 'this_fails');
187*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
188*11be35a1SLionel Sambuc                          end_time)
189*11be35a1SLionel Sambuc    VALUES (7, 'failed', 'Some reason', 1357648719000000, 1357648720897182);
190*11be35a1SLionel SambucINSERT INTO atf_test_cases (test_case_id, description, has_cleanup, timeout,
191*11be35a1SLionel Sambuc                            required_memory, required_user)
192*11be35a1SLionel Sambuc    VALUES (7, 'Test description', 'true', 300000000, 128, 'root');
193*11be35a1SLionel Sambuc
194*11be35a1SLionel Sambuc-- test_case_id 8, skipped, all optional metadata.
195*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
196*11be35a1SLionel Sambuc    VALUES (8, 6, 'this_skips');
197*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
198*11be35a1SLionel Sambuc                          end_time)
199*11be35a1SLionel Sambuc    VALUES (8, 'skipped', 'Another reason', 1357648729182013, 1357648730000000);
200*11be35a1SLionel SambucINSERT INTO atf_test_cases (test_case_id, description, has_cleanup, timeout,
201*11be35a1SLionel Sambuc                            required_memory, required_user)
202*11be35a1SLionel Sambuc    VALUES (8, 'Test explanation', 'true', 600000000, 512, 'unprivileged');
203*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
204*11be35a1SLionel Sambuc                                        property_value)
205*11be35a1SLionel Sambuc    VALUES (8, 'require.arch', 'x86_64');
206*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
207*11be35a1SLionel Sambuc                                        property_value)
208*11be35a1SLionel Sambuc    VALUES (8, 'require.arch', 'powerpc');
209*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
210*11be35a1SLionel Sambuc                                        property_value)
211*11be35a1SLionel Sambuc    VALUES (8, 'require.machine', 'amd64');
212*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
213*11be35a1SLionel Sambuc                                        property_value)
214*11be35a1SLionel Sambuc    VALUES (8, 'require.machine', 'macppc');
215*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
216*11be35a1SLionel Sambuc                                        property_value)
217*11be35a1SLionel Sambuc    VALUES (8, 'require.config', 'unprivileged_user');
218*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
219*11be35a1SLionel Sambuc                                        property_value)
220*11be35a1SLionel Sambuc    VALUES (8, 'require.config', 'X-foo');
221*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
222*11be35a1SLionel Sambuc                                        property_value)
223*11be35a1SLionel Sambuc    VALUES (8, 'require.files', '/the/data/file');
224*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
225*11be35a1SLionel Sambuc                                        property_value)
226*11be35a1SLionel Sambuc    VALUES (8, 'require.progs', 'cp');
227*11be35a1SLionel SambucINSERT INTO atf_test_cases_multivalues (test_case_id, property_name,
228*11be35a1SLionel Sambuc                                        property_value)
229*11be35a1SLionel Sambuc    VALUES (8, 'require.progs', '/bin/ls');
230*11be35a1SLionel Sambuc
231*11be35a1SLionel Sambuc-- file_id 3
232*11be35a1SLionel SambucINSERT INTO files (file_id, contents)
233*11be35a1SLionel Sambuc    VALUES (3, x'416e6f74686572207374646f7574');
234*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id)
235*11be35a1SLionel Sambuc    VALUES (8, '__STDOUT__', 3);
236*11be35a1SLionel Sambuc
237*11be35a1SLionel Sambuc-- test_program_id 7
238*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
239*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
240*11be35a1SLionel Sambuc    VALUES (7, 3, '/usr/tests/simple_test', '/usr/tests',
241*11be35a1SLionel Sambuc            'simple_test', 'subsuite-name', 'atf');
242*11be35a1SLionel Sambuc
243*11be35a1SLionel Sambuc-- test_case_id 9
244*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
245*11be35a1SLionel Sambuc    VALUES (9, 7, 'main');
246*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
247*11be35a1SLionel Sambuc                          end_time)
248*11be35a1SLionel Sambuc    VALUES (9, 'failed', 'Exited with code 1',
249*11be35a1SLionel Sambuc            1357648740120000, 1357648750081700);
250*11be35a1SLionel SambucINSERT INTO atf_test_cases (test_case_id, description, has_cleanup, timeout,
251*11be35a1SLionel Sambuc                            required_memory, required_user)
252*11be35a1SLionel Sambuc    VALUES (9, 'More text', 'true', 300000000, 128, 'unprivileged');
253*11be35a1SLionel Sambuc
254*11be35a1SLionel Sambuc-- file_id 4
255*11be35a1SLionel SambucINSERT INTO files (file_id, contents)
256*11be35a1SLionel Sambuc    VALUES (4, x'416e6f7468657220737464657272');
257*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id)
258*11be35a1SLionel Sambuc    VALUES (9, '__STDERR__', 4);
259*11be35a1SLionel Sambuc
260*11be35a1SLionel Sambuc
261*11be35a1SLionel Sambuc--
262*11be35a1SLionel Sambuc-- Action 4: Mixture of test programs.
263*11be35a1SLionel Sambuc--
264*11be35a1SLionel Sambuc
265*11be35a1SLionel Sambuc
266*11be35a1SLionel Sambuc-- context_id 4
267*11be35a1SLionel SambucINSERT INTO contexts (context_id, cwd) VALUES (4, '/usr/tests');
268*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value)
269*11be35a1SLionel Sambuc    VALUES (4, 'LANG', 'C');
270*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value)
271*11be35a1SLionel Sambuc    VALUES (4, 'PATH', '/bin:/usr/bin');
272*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value)
273*11be35a1SLionel Sambuc    VALUES (4, 'TERM', 'xterm');
274*11be35a1SLionel Sambuc
275*11be35a1SLionel Sambuc-- action_id 4
276*11be35a1SLionel SambucINSERT INTO actions (action_id, context_id) VALUES (4, 4);
277*11be35a1SLionel Sambuc
278*11be35a1SLionel Sambuc-- test_program_id 8
279*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
280*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
281*11be35a1SLionel Sambuc    VALUES (8, 4, '/usr/tests/subdir/another_test', '/usr/tests',
282*11be35a1SLionel Sambuc            'subdir/another_test', 'subsuite-name', 'plain');
283*11be35a1SLionel SambucINSERT INTO plain_test_programs (test_program_id, timeout)
284*11be35a1SLionel Sambuc    VALUES (8, 10000000);
285*11be35a1SLionel Sambuc
286*11be35a1SLionel Sambuc-- test_case_id 10
287*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
288*11be35a1SLionel Sambuc    VALUES (10, 8, 'main');
289*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
290*11be35a1SLionel Sambuc                          end_time)
291*11be35a1SLionel Sambuc    VALUES (10, 'failed', 'Exit failure', 1357644395000000, 1357644396000000);
292*11be35a1SLionel Sambuc
293*11be35a1SLionel Sambuc-- file_id 5
294*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (5, x'54657374207374646f7574');
295*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id)
296*11be35a1SLionel Sambuc    VALUES (10, '__STDOUT__', 5);
297*11be35a1SLionel Sambuc
298*11be35a1SLionel Sambuc-- file_id 6
299*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (6, x'5465737420737464657272');
300*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id)
301*11be35a1SLionel Sambuc    VALUES (10, '__STDERR__', 6);
302*11be35a1SLionel Sambuc
303*11be35a1SLionel Sambuc-- test_program_id 9
304*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root,
305*11be35a1SLionel Sambuc                           relative_path, test_suite_name, interface)
306*11be35a1SLionel Sambuc    VALUES (9, 4, '/usr/tests/complex_test', '/usr/tests',
307*11be35a1SLionel Sambuc            'complex_test', 'suite-name', 'atf');
308*11be35a1SLionel Sambuc
309*11be35a1SLionel Sambuc-- test_case_id 11
310*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
311*11be35a1SLionel Sambuc    VALUES (11, 9, 'this_passes');
312*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
313*11be35a1SLionel Sambuc                          end_time)
314*11be35a1SLionel Sambuc    VALUES (11, 'passed', NULL, 1357644396500000, 1357644397000000);
315*11be35a1SLionel SambucINSERT INTO atf_test_cases (test_case_id, description, has_cleanup, timeout,
316*11be35a1SLionel Sambuc                            required_memory, required_user)
317*11be35a1SLionel Sambuc    VALUES (11, NULL, 'false', 300000000, 0, NULL);
318*11be35a1SLionel Sambuc
319*11be35a1SLionel Sambuc-- test_case_id 12
320*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name)
321*11be35a1SLionel Sambuc    VALUES (12, 9, 'this_fails');
322*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time,
323*11be35a1SLionel Sambuc                          end_time)
324*11be35a1SLionel Sambuc    VALUES (12, 'failed', 'Some reason', 1357644397100000, 1357644399005000);
325*11be35a1SLionel SambucINSERT INTO atf_test_cases (test_case_id, description, has_cleanup, timeout,
326*11be35a1SLionel Sambuc                            required_memory, required_user)
327*11be35a1SLionel Sambuc    VALUES (12, 'Test description', 'false', 300000000, 0, 'root');
328*11be35a1SLionel Sambuc
329*11be35a1SLionel Sambuc
330*11be35a1SLionel SambucCOMMIT TRANSACTION;
331