VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testmanager/selftest/st1-load.pgsql

Last change on this file was 106061, checked in by vboxsync, 2 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.0 KB
Line 
1-- $Id: st1-load.pgsql 106061 2024-09-16 14:03:52Z vboxsync $
2--- @file
3-- VBox Test Manager - Self Test #1 Database Load File.
4--
5
6--
7-- Copyright (C) 2012-2024 Oracle and/or its affiliates.
8--
9-- This file is part of VirtualBox base platform packages, as
10-- available from https://www.virtualbox.org.
11--
12-- This program is free software; you can redistribute it and/or
13-- modify it under the terms of the GNU General Public License
14-- as published by the Free Software Foundation, in version 3 of the
15-- License.
16--
17-- This program is distributed in the hope that it will be useful, but
18-- WITHOUT ANY WARRANTY; without even the implied warranty of
19-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20-- General Public License for more details.
21--
22-- You should have received a copy of the GNU General Public License
23-- along with this program; if not, see <https://www.gnu.org/licenses>.
24--
25-- The contents of this file may alternatively be used under the terms
26-- of the Common Development and Distribution License Version 1.0
27-- (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28-- in the VirtualBox distribution, in which case the provisions of the
29-- CDDL are applicable instead of those of the GPL.
30--
31-- You may elect to license modified versions of this file under the
32-- terms and conditions of either the GPL or the CDDL or both.
33--
34-- SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35--
36
37
38
39\set ON_ERROR_STOP 1
40\connect testmanager;
41
42BEGIN WORK;
43
44
45INSERT INTO Users (uid, sUsername, sEmail, sFullName, sLoginName)
46 VALUES (1112223331, 'st1', 'st1@example.org', 'self test #1', 'st1');
47
48INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
49 VALUES (1112223331, 'st1-test1', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest1.py', '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
50
51INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
52 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test1'), 1112223331, '');
53
54INSERT INTO TestGroups (uidAuthor, sName)
55 VALUES (1112223331, 'st1-testgroup');
56
57INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
58 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
59 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test1'),
60 1112223331);
61
62INSERT INTO BuildSources (uidAuthor, sName, sProduct, sBranch, asTypes, asOsArches)
63 VALUES (1112223331, 'st1-src', 'st1', 'trunk',
64 ARRAY['release', 'strict'],
65 ARRAY['win.x86', 'linux.noarch', 'solaris.amd64', 'os-agnostic.sparc64', 'os-agnostic.noarch']);
66
67INSERT INTO BuildCategories (sProduct, sBranch, sType, asOsArches)
68 VALUES ('st1', 'trunk', 'release', ARRAY['os-agnostic.noarch']);
69
70INSERT INTO Builds (uidAuthor, idBuildCategory, iRevision, sVersion, sBinaries)
71 VALUES (1112223331,
72 (SELECT idBuildCategory FROM BuildCategories WHERE sProduct = 'st1' AND sBranch = 'trunk'),
73 1234, '1.0', '');
74
75INSERT INTO SchedGroups (uidAuthor, sName, sDescription, fEnabled, idBuildSrc)
76 VALUES (1112223331, 'st1-group', 'test test #1', TRUE,
77 (SELECT idBuildSrc FROM BuildSources WHERE sName = 'st1-src') );
78
79INSERT INTO SchedGroupMembers (idSchedGroup, idTestGroup, uidAuthor)
80 VALUES ((SELECT idSchedGroup FROM SchedGroups WHERE sName = 'st1-group'),
81 (SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
82 1112223331);
83
84
85-- The second test
86
87INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
88 VALUES (1112223331, 'st1-test2', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest2.py', '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
89
90INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
91 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test2'), 1112223331, '');
92
93INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
94 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
95 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test2'),
96 1112223331);
97
98-- The third test
99
100INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
101 VALUES (1112223331, 'st1-test3', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest3.py', '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
102
103INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
104 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test3'), 1112223331, '');
105
106INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
107 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
108 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test3'),
109 1112223331);
110
111-- The fourth thru eight tests
112
113INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
114 VALUES (1112223331, 'st1-test4-neg', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest4.py --test immediate-sub-tests',
115 '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
116INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
117 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test4-neg'), 1112223331, '');
118INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
119 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
120 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test4-neg'),
121 1112223331);
122
123INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
124 VALUES (1112223331, 'st1-test5-neg', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest4.py --test total-sub-tests',
125 '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
126INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
127 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test5-neg'), 1112223331, '');
128INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
129 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
130 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test5-neg'),
131 1112223331);
132
133INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
134 VALUES (1112223331, 'st1-test6-neg', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest4.py --test immediate-values',
135 '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
136INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
137 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test6-neg'), 1112223331, '');
138INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
139 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
140 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test6-neg'),
141 1112223331);
142
143INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
144 VALUES (1112223331, 'st1-test7-neg', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest4.py --test total-values',
145 '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
146INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
147 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test7-neg'), 1112223331, '');
148INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
149 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
150 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test7-neg'),
151 1112223331);
152
153INSERT INTO TestCases (uidAuthor, sName, fEnabled, cSecTimeout, sBaseCmd, sTestSuiteZips)
154 VALUES (1112223331, 'st1-test8-neg', TRUE, 3600, 'validationkit/tests/selftests/tdSelfTest4.py --test immediate-messages',
155 '@DOWNLOAD_BASE_URL@/VBoxValidationKit.zip');
156INSERT INTO TestCaseArgs (idTestCase, uidAuthor, sArgs)
157 VALUES ((SELECT idTestCase FROM TestCases WHERE sName = 'st1-test8-neg'), 1112223331, '');
158INSERT INTO TestGroupMembers (idTestGroup, idTestCase, uidAuthor)
159 VALUES ((SELECT idTestGroup FROM TestGroups WHERE sName = 'st1-testgroup'),
160 (SELECT idTestCase FROM TestCases WHERE sName = 'st1-test8-neg'),
161 1112223331);
162
163COMMIT WORK;
164
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette