VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testmanager/core/coreconsts.py

最後變更 在這個檔案是 106061,由 vboxsync 提交於 6 月 前

Copyright year updates by scm.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 4.2 KB
 
1# -*- coding: utf-8 -*-
2# $Id: coreconsts.py 106061 2024-09-16 14:03:52Z vboxsync $
3
4"""
5Test Manager - Test Manager Constants (without a more appropriate home).
6"""
7
8__copyright__ = \
9"""
10Copyright (C) 2012-2024 Oracle and/or its affiliates.
11
12This file is part of VirtualBox base platform packages, as
13available from https://www.alldomusa.eu.org.
14
15This program is free software; you can redistribute it and/or
16modify it under the terms of the GNU General Public License
17as published by the Free Software Foundation, in version 3 of the
18License.
19
20This program is distributed in the hope that it will be useful, but
21WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23General Public License for more details.
24
25You should have received a copy of the GNU General Public License
26along with this program; if not, see <https://www.gnu.org/licenses>.
27
28The contents of this file may alternatively be used under the terms
29of the Common Development and Distribution License Version 1.0
30(CDDL), a copy of it is provided in the "COPYING.CDDL" file included
31in the VirtualBox distribution, in which case the provisions of the
32CDDL are applicable instead of those of the GPL.
33
34You may elect to license modified versions of this file under the
35terms and conditions of either the GPL or the CDDL or both.
36
37SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
38"""
39__version__ = "$Revision: 106061 $"
40
41## OS agnostic.
42g_ksOsAgnostic = 'os-agnostic';
43## All known OSes, except the agnostic one.
44# See KBUILD_OSES in kBuild/header.kmk for reference.
45g_kasOses = ['darwin', 'dos', 'dragonfly', 'freebsd', 'haiku', 'l4', 'linux', 'netbsd', 'nt', 'openbsd', 'os2',
46 'solaris', 'win'];
47## All known OSes, including the agnostic one.
48# See KBUILD_OSES in kBuild/header.kmk for reference.
49g_kasOsesAll = g_kasOses + [g_ksOsAgnostic,];
50
51
52## Architecture agnostic.
53g_ksCpuArchAgnostic = 'noarch';
54## All known CPU architectures, except the agnostic one.
55# See KBUILD_ARCHES in kBuild/header.kmk for reference.
56g_kasCpuArches = ['amd64', 'x86', 'sparc32', 'sparc64', 's390', 's390x', 'ppc32', 'ppc64', 'mips32', 'mips64', 'ia64',
57 'hppa32', 'hppa64', 'arm', 'arm64', 'alpha'];
58## All known CPU architectures, except the agnostic one.
59# See KBUILD_ARCHES in kBuild/header.kmk for reference.
60g_kasCpuArchesAll = g_kasCpuArches + [g_ksCpuArchAgnostic,];
61
62## All known build types
63# See KBUILD_TYPE in kBuild/header.kmk for reference.
64# @note 'blessed' is a special type used for release builds that has been notarized
65# or attestation signed by the OS vendor.
66g_kasBuildTypesAll = [ 'release', 'strict', 'profile', 'debug', 'asan', 'blessed' ];
67
68## OS and CPU architecture agnostic.
69g_ksOsDotArchAgnostic = 'os-agnostic.noarch';
70## Combinations of all OSes and CPU architectures, except the two agnostic ones.
71# We do some of them by hand to avoid offering too many choices.
72g_kasOsDotCpus = \
73[
74 'darwin.amd64', 'darwin.x86', 'darwin.ppc32', 'darwin.ppc64', 'darwin.arm', 'darwin.arm64',
75 'dos.x86',
76 'dragonfly.amd64', 'dragonfly.x86',
77 'freebsd.amd64', 'freebsd.x86', 'freebsd.sparc64', 'freebsd.ia64', 'freebsd.ppc32', 'freebsd.ppc64',
78 'freebsd.arm', 'freebsd.arm64', 'freebsd.mips32', 'freebsd.mips64',
79 'haiku.amd64', 'haiku.x86',
80 'l4.amd64', 'l4.x86', 'l4.ppc32', 'l4.ppc64', 'l4.arm',
81 'nt.amd64', 'nt.x86', 'nt.arm', 'nt.arm64', 'nt.ia64', 'nt.mips32', 'nt.ppc32', 'nt.alpha',
82 'win.amd64', 'win.x86', 'win.arm', 'win.arm64', 'win.ia64', 'win.mips32', 'win.ppc32', 'win.alpha',
83 'os2.x86',
84 'solaris.amd64', 'solaris.x86', 'solaris.sparc32', 'solaris.sparc64',
85];
86for sOs in g_kasOses:
87 if sOs not in ['darwin', 'dos', 'dragonfly', 'freebsd', 'haiku', 'l4', 'nt', 'win', 'os2', 'solaris']:
88 for sArch in g_kasCpuArches:
89 g_kasOsDotCpus.append(sOs + '.' + sArch);
90g_kasOsDotCpus.sort();
91
92## Combinations of all OSes and CPU architectures, including the two agnostic ones.
93g_kasOsDotCpusAll = [g_ksOsDotArchAgnostic]
94g_kasOsDotCpusAll.extend(g_kasOsDotCpus);
95for sOs in g_kasOsesAll:
96 g_kasOsDotCpusAll.append(sOs + '.' + g_ksCpuArchAgnostic);
97for sArch in g_kasCpuArchesAll:
98 g_kasOsDotCpusAll.append(g_ksOsAgnostic + '.' + sArch);
99g_kasOsDotCpusAll.sort();
100
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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