1 | #!/usr/bin/env python
|
---|
2 | # -*- coding: utf-8 -*-
|
---|
3 | # $Id: tdSelfTest1.py 93115 2022-01-01 11:31:46Z 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-2022 Oracle Corporation
|
---|
14 |
|
---|
15 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
16 | available from http://www.virtualbox.org. This file is free software;
|
---|
17 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
18 | General Public License (GPL) as published by the Free Software
|
---|
19 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
20 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
21 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
22 |
|
---|
23 | The contents of this file may alternatively be used under the terms
|
---|
24 | of the Common Development and Distribution License Version 1.0
|
---|
25 | (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
26 | VirtualBox OSE distribution, in which case the provisions of the
|
---|
27 | CDDL are applicable instead of those of the GPL.
|
---|
28 |
|
---|
29 | You may elect to license modified versions of this file under the
|
---|
30 | terms and conditions of either the GPL or the CDDL or both.
|
---|
31 | """
|
---|
32 | __version__ = "$Revision: 93115 $"
|
---|
33 |
|
---|
34 |
|
---|
35 | import sys;
|
---|
36 | import os;
|
---|
37 |
|
---|
38 | print('dummydriver.py: hello world!');
|
---|
39 | print('dummydriver.py: args: %s' % (sys.argv,));
|
---|
40 |
|
---|
41 | print('dummydriver.py: environment:');
|
---|
42 | for sVar in sorted(os.environ.keys()): # pylint: disable=consider-iterating-dictionary
|
---|
43 | print('%s=%s' % (sVar, os.environ[sVar]));
|
---|
44 |
|
---|
45 | if sys.argv[-1] in [ 'all', 'execute' ]:
|
---|
46 |
|
---|
47 | import time;
|
---|
48 |
|
---|
49 | for i in range(10, 1, -1):
|
---|
50 | print('dummydriver.py: %u...', i);
|
---|
51 | sys.stdout.flush();
|
---|
52 | time.sleep(1);
|
---|
53 | print('dummydriver.py: ...0! done');
|
---|
54 |
|
---|
55 | sys.exit(0);
|
---|
56 |
|
---|