1 | #!/usr/bin/env python
|
---|
2 | # -*- coding: utf-8 -*-
|
---|
3 | # $Id: tdSelfTest1.py 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
4 |
|
---|
5 | """
|
---|
6 | Test Manager Self Test - Dummy Test Driver.
|
---|
7 | """
|
---|
8 |
|
---|
9 | from __future__ import print_function;
|
---|
10 |
|
---|
11 | __copyright__ = \
|
---|
12 | """
|
---|
13 | Copyright (C) 2012-2024 Oracle and/or its affiliates.
|
---|
14 |
|
---|
15 | This file is part of VirtualBox base platform packages, as
|
---|
16 | available from https://www.virtualbox.org.
|
---|
17 |
|
---|
18 | This program is free software; you can redistribute it and/or
|
---|
19 | modify it under the terms of the GNU General Public License
|
---|
20 | as published by the Free Software Foundation, in version 3 of the
|
---|
21 | License.
|
---|
22 |
|
---|
23 | This program is distributed in the hope that it will be useful, but
|
---|
24 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
25 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
26 | General Public License for more details.
|
---|
27 |
|
---|
28 | You should have received a copy of the GNU General Public License
|
---|
29 | along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
30 |
|
---|
31 | The contents of this file may alternatively be used under the terms
|
---|
32 | of the Common Development and Distribution License Version 1.0
|
---|
33 | (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
34 | in the VirtualBox distribution, in which case the provisions of the
|
---|
35 | CDDL are applicable instead of those of the GPL.
|
---|
36 |
|
---|
37 | You may elect to license modified versions of this file under the
|
---|
38 | terms and conditions of either the GPL or the CDDL or both.
|
---|
39 |
|
---|
40 | SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
41 | """
|
---|
42 | __version__ = "$Revision: 106061 $"
|
---|
43 |
|
---|
44 |
|
---|
45 | import sys;
|
---|
46 | import os;
|
---|
47 |
|
---|
48 | print('dummydriver.py: hello world!');
|
---|
49 | print('dummydriver.py: args: %s' % (sys.argv,));
|
---|
50 |
|
---|
51 | print('dummydriver.py: environment:');
|
---|
52 | for sVar in sorted(os.environ.keys()): # pylint: disable=consider-iterating-dictionary
|
---|
53 | print('%s=%s' % (sVar, os.environ[sVar]));
|
---|
54 |
|
---|
55 | if sys.argv[-1] in [ 'all', 'execute' ]:
|
---|
56 |
|
---|
57 | import time;
|
---|
58 |
|
---|
59 | for i in range(10, 1, -1):
|
---|
60 | print('dummydriver.py: %u...', i);
|
---|
61 | sys.stdout.flush();
|
---|
62 | time.sleep(1);
|
---|
63 | print('dummydriver.py: ...0! done');
|
---|
64 |
|
---|
65 | sys.exit(0);
|
---|
66 |
|
---|