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_v2.sql 30*11be35a1SLionel Sambuc-- Populates a v2 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-- metadata_id 1 67*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'allowed_architectures', ''); 68*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'allowed_platforms', ''); 69*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'description', ''); 70*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'has_cleanup', 'false'); 71*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'required_configs', ''); 72*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'required_files', ''); 73*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'required_memory', '0'); 74*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'required_programs', ''); 75*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'required_user', ''); 76*11be35a1SLionel SambucINSERT INTO metadatas VALUES (1, 'timeout', '300'); 77*11be35a1SLionel Sambuc 78*11be35a1SLionel Sambuc-- test_program_id 1 79*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 80*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 81*11be35a1SLionel Sambuc interface) 82*11be35a1SLionel Sambuc VALUES (1, 2, '/test/suite/root/foo_test', '/test/suite/root', 83*11be35a1SLionel Sambuc 'foo_test', 'suite-name', 1, 'plain'); 84*11be35a1SLionel Sambuc 85*11be35a1SLionel Sambuc-- test_case_id 1 86*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 87*11be35a1SLionel Sambuc VALUES (1, 1, 'main', 1); 88*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 89*11be35a1SLionel Sambuc end_time) 90*11be35a1SLionel Sambuc VALUES (1, 'passed', NULL, 1357643611000000, 1357643621000500); 91*11be35a1SLionel Sambuc 92*11be35a1SLionel Sambuc-- metadata_id 2 93*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'allowed_architectures', ''); 94*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'allowed_platforms', ''); 95*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'description', ''); 96*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'has_cleanup', 'false'); 97*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'required_configs', ''); 98*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'required_files', ''); 99*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'required_memory', '0'); 100*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'required_programs', ''); 101*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'required_user', ''); 102*11be35a1SLionel SambucINSERT INTO metadatas VALUES (2, 'timeout', '10'); 103*11be35a1SLionel Sambuc 104*11be35a1SLionel Sambuc-- test_program_id 2 105*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 106*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 107*11be35a1SLionel Sambuc interface) 108*11be35a1SLionel Sambuc VALUES (2, 2, '/test/suite/root/subdir/another_test', '/test/suite/root', 109*11be35a1SLionel Sambuc 'subdir/another_test', 'subsuite-name', 2, 'plain'); 110*11be35a1SLionel Sambuc 111*11be35a1SLionel Sambuc-- test_case_id 2 112*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 113*11be35a1SLionel Sambuc VALUES (2, 2, 'main', 2); 114*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 115*11be35a1SLionel Sambuc end_time) 116*11be35a1SLionel Sambuc VALUES (2, 'failed', 'Exited with code 1', 117*11be35a1SLionel Sambuc 1357643622001200, 1357643622900021); 118*11be35a1SLionel Sambuc 119*11be35a1SLionel Sambuc-- file_id 1 120*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (1, x'54657374207374646f7574'); 121*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id) 122*11be35a1SLionel Sambuc VALUES (2, '__STDOUT__', 1); 123*11be35a1SLionel Sambuc 124*11be35a1SLionel Sambuc-- file_id 2 125*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (2, x'5465737420737464657272'); 126*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id) 127*11be35a1SLionel Sambuc VALUES (2, '__STDERR__', 2); 128*11be35a1SLionel Sambuc 129*11be35a1SLionel Sambuc-- metadata_id 3 130*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'allowed_architectures', ''); 131*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'allowed_platforms', ''); 132*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'description', ''); 133*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'has_cleanup', 'false'); 134*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'required_configs', ''); 135*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'required_files', ''); 136*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'required_memory', '0'); 137*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'required_programs', ''); 138*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'required_user', ''); 139*11be35a1SLionel SambucINSERT INTO metadatas VALUES (3, 'timeout', '300'); 140*11be35a1SLionel Sambuc 141*11be35a1SLionel Sambuc-- test_program_id 3 142*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 143*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 144*11be35a1SLionel Sambuc interface) 145*11be35a1SLionel Sambuc VALUES (3, 2, '/test/suite/root/subdir/bar_test', '/test/suite/root', 146*11be35a1SLionel Sambuc 'subdir/bar_test', 'subsuite-name', 3, 'plain'); 147*11be35a1SLionel Sambuc 148*11be35a1SLionel Sambuc-- test_case_id 3 149*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 150*11be35a1SLionel Sambuc VALUES (3, 3, 'main', 3); 151*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 152*11be35a1SLionel Sambuc end_time) 153*11be35a1SLionel Sambuc VALUES (3, 'broken', 'Received signal 1', 154*11be35a1SLionel Sambuc 1357643623500000, 1357643630981932); 155*11be35a1SLionel Sambuc 156*11be35a1SLionel Sambuc-- metadata_id 4 157*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'allowed_architectures', ''); 158*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'allowed_platforms', ''); 159*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'description', ''); 160*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'has_cleanup', 'false'); 161*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'required_configs', ''); 162*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'required_files', ''); 163*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'required_memory', '0'); 164*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'required_programs', ''); 165*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'required_user', ''); 166*11be35a1SLionel SambucINSERT INTO metadatas VALUES (4, 'timeout', '300'); 167*11be35a1SLionel Sambuc 168*11be35a1SLionel Sambuc-- test_program_id 4 169*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 170*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 171*11be35a1SLionel Sambuc interface) 172*11be35a1SLionel Sambuc VALUES (4, 2, '/test/suite/root/top_test', '/test/suite/root', 173*11be35a1SLionel Sambuc 'top_test', 'suite-name', 4, 'plain'); 174*11be35a1SLionel Sambuc 175*11be35a1SLionel Sambuc-- test_case_id 4 176*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 177*11be35a1SLionel Sambuc VALUES (4, 4, 'main', 4); 178*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 179*11be35a1SLionel Sambuc end_time) 180*11be35a1SLionel Sambuc VALUES (4, 'expected_failure', 'Known bug', 181*11be35a1SLionel Sambuc 1357643631000000, 1357643631020000); 182*11be35a1SLionel Sambuc 183*11be35a1SLionel Sambuc-- metadata_id 5 184*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'allowed_architectures', ''); 185*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'allowed_platforms', ''); 186*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'description', ''); 187*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'has_cleanup', 'false'); 188*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'required_configs', ''); 189*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'required_files', ''); 190*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'required_memory', '0'); 191*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'required_programs', ''); 192*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'required_user', ''); 193*11be35a1SLionel SambucINSERT INTO metadatas VALUES (5, 'timeout', '300'); 194*11be35a1SLionel Sambuc 195*11be35a1SLionel Sambuc-- test_program_id 5 196*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 197*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 198*11be35a1SLionel Sambuc interface) 199*11be35a1SLionel Sambuc VALUES (5, 2, '/test/suite/root/last_test', '/test/suite/root', 200*11be35a1SLionel Sambuc 'last_test', 'suite-name', 5, 'plain'); 201*11be35a1SLionel Sambuc 202*11be35a1SLionel Sambuc-- test_case_id 5 203*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 204*11be35a1SLionel Sambuc VALUES (5, 5, 'main', 5); 205*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 206*11be35a1SLionel Sambuc end_time) 207*11be35a1SLionel Sambuc VALUES (5, 'skipped', 'Does not apply', 1357643632000000, 1357643638000000); 208*11be35a1SLionel Sambuc 209*11be35a1SLionel Sambuc 210*11be35a1SLionel Sambuc-- 211*11be35a1SLionel Sambuc-- Action 3: ATF test programs only. 212*11be35a1SLionel Sambuc-- 213*11be35a1SLionel Sambuc 214*11be35a1SLionel Sambuc 215*11be35a1SLionel Sambuc-- context_id 3 216*11be35a1SLionel SambucINSERT INTO contexts (context_id, cwd) VALUES (3, '/usr/tests'); 217*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value) 218*11be35a1SLionel Sambuc VALUES (3, 'PATH', '/bin:/usr/bin'); 219*11be35a1SLionel Sambuc 220*11be35a1SLionel Sambuc-- action_id 3 221*11be35a1SLionel SambucINSERT INTO actions (action_id, context_id) VALUES (3, 3); 222*11be35a1SLionel Sambuc 223*11be35a1SLionel Sambuc-- metadata_id 6 224*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'allowed_architectures', ''); 225*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'allowed_platforms', ''); 226*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'description', ''); 227*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'has_cleanup', 'false'); 228*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'required_configs', ''); 229*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'required_files', ''); 230*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'required_memory', '0'); 231*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'required_programs', ''); 232*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'required_user', ''); 233*11be35a1SLionel SambucINSERT INTO metadatas VALUES (6, 'timeout', '300'); 234*11be35a1SLionel Sambuc 235*11be35a1SLionel Sambuc-- test_program_id 6 236*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 237*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 238*11be35a1SLionel Sambuc interface) 239*11be35a1SLionel Sambuc VALUES (6, 3, '/usr/tests/complex_test', '/usr/tests', 240*11be35a1SLionel Sambuc 'complex_test', 'suite-name', 6, 'atf'); 241*11be35a1SLionel Sambuc 242*11be35a1SLionel Sambuc-- metadata_id 7 243*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'allowed_architectures', ''); 244*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'allowed_platforms', ''); 245*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'description', ''); 246*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'has_cleanup', 'false'); 247*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'required_configs', ''); 248*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'required_files', ''); 249*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'required_memory', '0'); 250*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'required_programs', ''); 251*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'required_user', ''); 252*11be35a1SLionel SambucINSERT INTO metadatas VALUES (7, 'timeout', '300'); 253*11be35a1SLionel Sambuc 254*11be35a1SLionel Sambuc-- test_case_id 6, passed, no optional metadata. 255*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 256*11be35a1SLionel Sambuc VALUES (6, 6, 'this_passes', 7); 257*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 258*11be35a1SLionel Sambuc end_time) 259*11be35a1SLionel Sambuc VALUES (6, 'passed', NULL, 1357648712000000, 1357648718000000); 260*11be35a1SLionel Sambuc 261*11be35a1SLionel Sambuc-- metadata_id 8 262*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'allowed_architectures', ''); 263*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'allowed_platforms', ''); 264*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'description', 'Test description'); 265*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'has_cleanup', 'true'); 266*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'required_configs', ''); 267*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'required_files', ''); 268*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'required_memory', '128'); 269*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'required_programs', ''); 270*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'required_user', 'root'); 271*11be35a1SLionel SambucINSERT INTO metadatas VALUES (8, 'timeout', '300'); 272*11be35a1SLionel Sambuc 273*11be35a1SLionel Sambuc-- test_case_id 7, failed, optional non-multivalue metadata. 274*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 275*11be35a1SLionel Sambuc VALUES (7, 6, 'this_fails', 8); 276*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 277*11be35a1SLionel Sambuc end_time) 278*11be35a1SLionel Sambuc VALUES (7, 'failed', 'Some reason', 1357648719000000, 1357648720897182); 279*11be35a1SLionel Sambuc 280*11be35a1SLionel Sambuc-- metadata_id 9 281*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'allowed_architectures', 'powerpc x86_64'); 282*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'allowed_platforms', 'amd64 macppc'); 283*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'description', 'Test explanation'); 284*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'has_cleanup', 'true'); 285*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'required_configs', 'unprivileged_user X-foo'); 286*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'required_files', '/the/data/file'); 287*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'required_memory', '512'); 288*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'required_programs', 'cp /bin/ls'); 289*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'required_user', 'unprivileged'); 290*11be35a1SLionel SambucINSERT INTO metadatas VALUES (9, 'timeout', '600'); 291*11be35a1SLionel Sambuc 292*11be35a1SLionel Sambuc-- test_case_id 8, skipped, all optional metadata. 293*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 294*11be35a1SLionel Sambuc VALUES (8, 6, 'this_skips', 9); 295*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 296*11be35a1SLionel Sambuc end_time) 297*11be35a1SLionel Sambuc VALUES (8, 'skipped', 'Another reason', 1357648729182013, 1357648730000000); 298*11be35a1SLionel Sambuc 299*11be35a1SLionel Sambuc-- file_id 3 300*11be35a1SLionel SambucINSERT INTO files (file_id, contents) 301*11be35a1SLionel Sambuc VALUES (3, x'416e6f74686572207374646f7574'); 302*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id) 303*11be35a1SLionel Sambuc VALUES (8, '__STDOUT__', 3); 304*11be35a1SLionel Sambuc 305*11be35a1SLionel Sambuc-- metadata_id 10 306*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'allowed_architectures', ''); 307*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'allowed_platforms', ''); 308*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'description', ''); 309*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'has_cleanup', 'false'); 310*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'required_configs', ''); 311*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'required_files', ''); 312*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'required_memory', '0'); 313*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'required_programs', ''); 314*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'required_user', ''); 315*11be35a1SLionel SambucINSERT INTO metadatas VALUES (10, 'timeout', '300'); 316*11be35a1SLionel Sambuc 317*11be35a1SLionel Sambuc-- test_program_id 7 318*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 319*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 320*11be35a1SLionel Sambuc interface) 321*11be35a1SLionel Sambuc VALUES (7, 3, '/usr/tests/simple_test', '/usr/tests', 322*11be35a1SLionel Sambuc 'simple_test', 'subsuite-name', 10, 'atf'); 323*11be35a1SLionel Sambuc 324*11be35a1SLionel Sambuc-- metadata_id 11 325*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'allowed_architectures', ''); 326*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'allowed_platforms', ''); 327*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'description', 'More text'); 328*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'has_cleanup', 'true'); 329*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'required_configs', ''); 330*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'required_files', ''); 331*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'required_memory', '128'); 332*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'required_programs', ''); 333*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'required_user', 'unprivileged'); 334*11be35a1SLionel SambucINSERT INTO metadatas VALUES (11, 'timeout', '300'); 335*11be35a1SLionel Sambuc 336*11be35a1SLionel Sambuc-- test_case_id 9 337*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 338*11be35a1SLionel Sambuc VALUES (9, 7, 'main', 11); 339*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 340*11be35a1SLionel Sambuc end_time) 341*11be35a1SLionel Sambuc VALUES (9, 'failed', 'Exited with code 1', 342*11be35a1SLionel Sambuc 1357648740120000, 1357648750081700); 343*11be35a1SLionel Sambuc 344*11be35a1SLionel Sambuc-- file_id 4 345*11be35a1SLionel SambucINSERT INTO files (file_id, contents) 346*11be35a1SLionel Sambuc VALUES (4, x'416e6f7468657220737464657272'); 347*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id) 348*11be35a1SLionel Sambuc VALUES (9, '__STDERR__', 4); 349*11be35a1SLionel Sambuc 350*11be35a1SLionel Sambuc 351*11be35a1SLionel Sambuc-- 352*11be35a1SLionel Sambuc-- Action 4: Mixture of test programs. 353*11be35a1SLionel Sambuc-- 354*11be35a1SLionel Sambuc 355*11be35a1SLionel Sambuc 356*11be35a1SLionel Sambuc-- context_id 4 357*11be35a1SLionel SambucINSERT INTO contexts (context_id, cwd) VALUES (4, '/usr/tests'); 358*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value) 359*11be35a1SLionel Sambuc VALUES (4, 'LANG', 'C'); 360*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value) 361*11be35a1SLionel Sambuc VALUES (4, 'PATH', '/bin:/usr/bin'); 362*11be35a1SLionel SambucINSERT INTO env_vars (context_id, var_name, var_value) 363*11be35a1SLionel Sambuc VALUES (4, 'TERM', 'xterm'); 364*11be35a1SLionel Sambuc 365*11be35a1SLionel Sambuc-- action_id 4 366*11be35a1SLionel SambucINSERT INTO actions (action_id, context_id) VALUES (4, 4); 367*11be35a1SLionel Sambuc 368*11be35a1SLionel Sambuc-- metadata_id 12 369*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'allowed_architectures', ''); 370*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'allowed_platforms', ''); 371*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'description', ''); 372*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'has_cleanup', 'false'); 373*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'required_configs', ''); 374*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'required_files', ''); 375*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'required_memory', '0'); 376*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'required_programs', ''); 377*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'required_user', ''); 378*11be35a1SLionel SambucINSERT INTO metadatas VALUES (12, 'timeout', '10'); 379*11be35a1SLionel Sambuc 380*11be35a1SLionel Sambuc-- test_program_id 8 381*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 382*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 383*11be35a1SLionel Sambuc interface) 384*11be35a1SLionel Sambuc VALUES (8, 4, '/usr/tests/subdir/another_test', '/usr/tests', 385*11be35a1SLionel Sambuc 'subdir/another_test', 'subsuite-name', 12, 'plain'); 386*11be35a1SLionel Sambuc 387*11be35a1SLionel Sambuc-- test_case_id 10 388*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 389*11be35a1SLionel Sambuc VALUES (10, 8, 'main', 12); 390*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 391*11be35a1SLionel Sambuc end_time) 392*11be35a1SLionel Sambuc VALUES (10, 'failed', 'Exit failure', 1357644395000000, 1357644396000000); 393*11be35a1SLionel Sambuc 394*11be35a1SLionel Sambuc-- file_id 5 395*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (5, x'54657374207374646f7574'); 396*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id) 397*11be35a1SLionel Sambuc VALUES (10, '__STDOUT__', 5); 398*11be35a1SLionel Sambuc 399*11be35a1SLionel Sambuc-- file_id 6 400*11be35a1SLionel SambucINSERT INTO files (file_id, contents) VALUES (6, x'5465737420737464657272'); 401*11be35a1SLionel SambucINSERT INTO test_case_files (test_case_id, file_name, file_id) 402*11be35a1SLionel Sambuc VALUES (10, '__STDERR__', 6); 403*11be35a1SLionel Sambuc 404*11be35a1SLionel Sambuc-- metadata_id 13 405*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'allowed_architectures', ''); 406*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'allowed_platforms', ''); 407*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'description', ''); 408*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'has_cleanup', 'false'); 409*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'required_configs', ''); 410*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'required_files', ''); 411*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'required_memory', '0'); 412*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'required_programs', ''); 413*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'required_user', ''); 414*11be35a1SLionel SambucINSERT INTO metadatas VALUES (13, 'timeout', '300'); 415*11be35a1SLionel Sambuc 416*11be35a1SLionel Sambuc-- test_program_id 9 417*11be35a1SLionel SambucINSERT INTO test_programs (test_program_id, action_id, absolute_path, root, 418*11be35a1SLionel Sambuc relative_path, test_suite_name, metadata_id, 419*11be35a1SLionel Sambuc interface) 420*11be35a1SLionel Sambuc VALUES (9, 4, '/usr/tests/complex_test', '/usr/tests', 421*11be35a1SLionel Sambuc 'complex_test', 'suite-name', 14, 'atf'); 422*11be35a1SLionel Sambuc 423*11be35a1SLionel Sambuc-- metadata_id 15 424*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'allowed_architectures', ''); 425*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'allowed_platforms', ''); 426*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'description', ''); 427*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'has_cleanup', 'false'); 428*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'required_configs', ''); 429*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'required_files', ''); 430*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'required_memory', '0'); 431*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'required_programs', ''); 432*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'required_user', ''); 433*11be35a1SLionel SambucINSERT INTO metadatas VALUES (15, 'timeout', '300'); 434*11be35a1SLionel Sambuc 435*11be35a1SLionel Sambuc-- test_case_id 11 436*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 437*11be35a1SLionel Sambuc VALUES (11, 9, 'this_passes', 15); 438*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 439*11be35a1SLionel Sambuc end_time) 440*11be35a1SLionel Sambuc VALUES (11, 'passed', NULL, 1357644396500000, 1357644397000000); 441*11be35a1SLionel Sambuc 442*11be35a1SLionel Sambuc-- metadata_id 16 443*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'allowed_architectures', ''); 444*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'allowed_platforms', ''); 445*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'description', 'Test description'); 446*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'has_cleanup', 'false'); 447*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'required_configs', ''); 448*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'required_files', ''); 449*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'required_memory', '0'); 450*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'required_programs', ''); 451*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'required_user', 'root'); 452*11be35a1SLionel SambucINSERT INTO metadatas VALUES (16, 'timeout', '300'); 453*11be35a1SLionel Sambuc 454*11be35a1SLionel Sambuc-- test_case_id 12 455*11be35a1SLionel SambucINSERT INTO test_cases (test_case_id, test_program_id, name, metadata_id) 456*11be35a1SLionel Sambuc VALUES (12, 9, 'this_fails', 16); 457*11be35a1SLionel SambucINSERT INTO test_results (test_case_id, result_type, result_reason, start_time, 458*11be35a1SLionel Sambuc end_time) 459*11be35a1SLionel Sambuc VALUES (12, 'failed', 'Some reason', 1357644397100000, 1357644399005000); 460*11be35a1SLionel Sambuc 461*11be35a1SLionel Sambuc 462*11be35a1SLionel SambucCOMMIT TRANSACTION; 463