VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testmanager/config.py@ 57181

Last change on this file since 57181 was 56295, checked in by vboxsync, 10 years ago

ValidationKit: Updated (C) year.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.9 KB
Line 
1# -*- coding: utf-8 -*-
2# $Id: config.py 56295 2015-06-09 14:29:55Z vboxsync $
3
4"""
5Test Manager Configuration.
6"""
7
8__copyright__ = \
9"""
10Copyright (C) 2012-2015 Oracle Corporation
11
12This file is part of VirtualBox Open Source Edition (OSE), as
13available from http://www.virtualbox.org. This file is free software;
14you can redistribute it and/or modify it under the terms of the GNU
15General Public License (GPL) as published by the Free Software
16Foundation, in version 2 as it comes in the "COPYING" file of the
17VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19
20The contents of this file may alternatively be used under the terms
21of the Common Development and Distribution License Version 1.0
22(CDDL) only, as it comes in the "COPYING.CDDL" file of the
23VirtualBox OSE distribution, in which case the provisions of the
24CDDL are applicable instead of those of the GPL.
25
26You may elect to license modified versions of this file under the
27terms and conditions of either the GPL or the CDDL or both.
28"""
29__version__ = "$Revision: 56295 $"
30
31import os;
32
33## Test Manager version string.
34g_ksVersion = 'v0.0.2';
35## Test Manager revision string.
36g_ksRevision = ('$Revision: 56295 $')[11:-2];
37
38## Enable VBox specific stuff.
39g_kfVBoxSpecific = True;
40
41
42## @name Used by the TMDatabaseConnection class.
43# @{
44g_ksDatabaseName = 'testmanager';
45g_ksDatabaseAddress = None;
46g_ksDatabasePort = None;
47g_ksDatabaseUser = 'postgres';
48g_ksDatabasePassword = '';
49## @}
50
51
52## @name User handling.
53## @{
54
55## Whether login names are case insensitive (True) or case sensitive (False).
56## @note Implemented by inserting lower case names into DB and lower case
57## bind variables in WHERE clauses.
58g_kfLoginNameCaseInsensitive = True;
59
60## @}
61
62
63## @name File locations
64## @{
65
66## The TestManager directory.
67g_ksTestManagerDir = os.path.dirname(os.path.abspath(__file__));
68## The Validation Kit directory.
69g_ksValidationKitDir = os.path.dirname(g_ksTestManagerDir);
70## The TestManager htdoc directory.
71g_ksTmHtDocDir = os.path.join(g_ksTestManagerDir, 'htdocs');
72## The TestManager download directory (under htdoc somewhere), for validationkit zips.
73g_ksTmDownloadDir = os.path.join(g_ksTmHtDocDir, 'download');
74## The base URL relative path of the TM download directory (g_ksTmDownloadDir).
75g_ksTmDownloadBaseUrlRel = 'htdocs/downloads';
76## The root of the file area (referred to as TM_FILE_DIR in database docs).
77g_ksFileAreaRootDir = '/var/tmp/testmanager'
78## The root of the file area with the zip files (best put on a big storage server).
79g_ksZipFileAreaRootDir = '/var/tmp/testmanager2'
80## URL prefix for trac log viewer.
81g_ksTracLogUrlPrefix = 'https://linserv.de.oracle.com/vbox/log/'
82## URL prefix for trac log viewer.
83g_ksTracChangsetUrlFmt = 'https://linserv.de.oracle.com/%(sRepository)s/changeset/%(iRevision)s'
84## URL prefix for unprefixed build logs.
85g_ksBuildLogUrlPrefix = ''
86## URL prefix for unprefixed build binaries.
87g_ksBuildBinUrlPrefix = '/builds/'
88## The local path prefix for unprefixed build binaries. (Host file system, not web server.)
89g_ksBuildBinRootDir = '/mnt/builds/'
90## File on the build binary share that can be used to check that it's mounted.
91g_ksBuildBinRootFile = 'builds.txt'
92## @}
93
94
95## The time to wait for a gang to gather (in seconds).
96g_kcSecGangGathering = 600;
97## The max time allowed to spend looking for a new task (in seconds).
98g_kcSecMaxNewTask = 60;
99
100
101## @name Test result limits.
102## In general, we will fail the test when reached and stop accepting further results.
103## @{
104
105## The max number of test results per test set.
106g_kcMaxTestResultsPerTS = 4096;
107## The max number of test results (children) per test result.
108g_kcMaxTestResultsPerTR = 512;
109## The max number of test result values per test set.
110g_kcMaxTestValuesPerTS = 4096;
111## The max number of test result values per test result.
112g_kcMaxTestValuesPerTR = 256;
113## The max number of test result message per test result.
114g_kcMaxTestMsgsPerTR = 4;
115## The max test result nesting depth.
116g_kcMaxTestResultDepth = 8;
117
118## The max length of a test result name.
119g_kcchMaxTestResultName = 64;
120## The max length of a test result value name.
121g_kcchMaxTestValueName = 56;
122## The max length of a test result message.
123g_kcchMaxTestMsg = 128;
124
125## The max size of the main log file.
126g_kcMbMaxMainLog = 32;
127## The max size of an uploaded file (individual).
128g_kcMbMaxUploadSingle = 16;
129## The max size of all uploaded file.
130g_kcMbMaxUploadTotal = 128;
131## The max number of files that can be uploaded.
132g_kcMaxUploads = 256;
133## @}
134
135## @name Debug Features
136## @{
137
138## Enables extra DB exception information.
139g_kfDebugDbXcpt = True;
140
141## Where to write the glue debug.
142# None indicates apache error log, string indicates a file.
143#g_ksSrcGlueDebugLogDst = '/tmp/testmanager-srv-glue.log';
144g_ksSrcGlueDebugLogDst = None;
145## Whether to enable CGI trace back in the server glue.
146g_kfSrvGlueCgiTb = False;
147## Enables glue debug output.
148g_kfSrvGlueDebug = False;
149## Timestamp the glue debug output.
150g_kfSrvGlueDebugTS = True;
151## Enables task scheduler debug output to g_ksSrcGlueDebugLogDst.
152g_kfSrvGlueDebugScheduler = False;
153
154## Enables the SQL trace back.
155g_kfWebUiSqlTrace = False;
156## Enables the explain in the SQL trace back.
157g_kfWebUiSqlTraceExplain = False;
158## Whether the postgresql version supports the TIMING option on EXPLAIN (>= 9.2).
159g_kfWebUiSqlTraceExplainTiming = False;
160## Display time spent processing the page.
161g_kfWebUiProcessedIn = True;
162## Enables WebUI debug output.
163g_kfWebUiDebug = False;
164## Enables WebUI SQL debug output print() calls (requires g_kfWebUiDebug).
165g_kfWebUiSqlDebug = False;
166## Enables the debug panel at the bottom of the page.
167g_kfWebUiDebugPanel = True;
168
169## Profile cgi/admin.py.
170g_kfProfileAdmin = False;
171## Profile cgi/index.py.
172g_kfProfileIndex = False;
173
174## When not None,
175g_ksTestBoxDispXpctLog = '/tmp/testmanager-testboxdisp-xcpt.log'
176## @}
177
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