1 | # -*- coding: utf-8 -*-
|
---|
2 | # $Id: coreconsts.py 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
3 |
|
---|
4 | """
|
---|
5 | Test Manager - Test Manager Constants (without a more appropriate home).
|
---|
6 | """
|
---|
7 |
|
---|
8 | __copyright__ = \
|
---|
9 | """
|
---|
10 | Copyright (C) 2012-2024 Oracle and/or its affiliates.
|
---|
11 |
|
---|
12 | This file is part of VirtualBox base platform packages, as
|
---|
13 | available from https://www.alldomusa.eu.org.
|
---|
14 |
|
---|
15 | This program is free software; you can redistribute it and/or
|
---|
16 | modify it under the terms of the GNU General Public License
|
---|
17 | as published by the Free Software Foundation, in version 3 of the
|
---|
18 | License.
|
---|
19 |
|
---|
20 | This program is distributed in the hope that it will be useful, but
|
---|
21 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
23 | General Public License for more details.
|
---|
24 |
|
---|
25 | You should have received a copy of the GNU General Public License
|
---|
26 | along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
27 |
|
---|
28 | The contents of this file may alternatively be used under the terms
|
---|
29 | of the Common Development and Distribution License Version 1.0
|
---|
30 | (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
31 | in the VirtualBox distribution, in which case the provisions of the
|
---|
32 | CDDL are applicable instead of those of the GPL.
|
---|
33 |
|
---|
34 | You may elect to license modified versions of this file under the
|
---|
35 | terms and conditions of either the GPL or the CDDL or both.
|
---|
36 |
|
---|
37 | SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
38 | """
|
---|
39 | __version__ = "$Revision: 106061 $"
|
---|
40 |
|
---|
41 | ## OS agnostic.
|
---|
42 | g_ksOsAgnostic = 'os-agnostic';
|
---|
43 | ## All known OSes, except the agnostic one.
|
---|
44 | # See KBUILD_OSES in kBuild/header.kmk for reference.
|
---|
45 | g_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.
|
---|
49 | g_kasOsesAll = g_kasOses + [g_ksOsAgnostic,];
|
---|
50 |
|
---|
51 |
|
---|
52 | ## Architecture agnostic.
|
---|
53 | g_ksCpuArchAgnostic = 'noarch';
|
---|
54 | ## All known CPU architectures, except the agnostic one.
|
---|
55 | # See KBUILD_ARCHES in kBuild/header.kmk for reference.
|
---|
56 | g_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.
|
---|
60 | g_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.
|
---|
66 | g_kasBuildTypesAll = [ 'release', 'strict', 'profile', 'debug', 'asan', 'blessed' ];
|
---|
67 |
|
---|
68 | ## OS and CPU architecture agnostic.
|
---|
69 | g_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.
|
---|
72 | g_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 | ];
|
---|
86 | for 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);
|
---|
90 | g_kasOsDotCpus.sort();
|
---|
91 |
|
---|
92 | ## Combinations of all OSes and CPU architectures, including the two agnostic ones.
|
---|
93 | g_kasOsDotCpusAll = [g_ksOsDotArchAgnostic]
|
---|
94 | g_kasOsDotCpusAll.extend(g_kasOsDotCpus);
|
---|
95 | for sOs in g_kasOsesAll:
|
---|
96 | g_kasOsDotCpusAll.append(sOs + '.' + g_ksCpuArchAgnostic);
|
---|
97 | for sArch in g_kasCpuArchesAll:
|
---|
98 | g_kasOsDotCpusAll.append(g_ksOsAgnostic + '.' + sArch);
|
---|
99 | g_kasOsDotCpusAll.sort();
|
---|
100 |
|
---|