VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/tests/selftests/tdSelfTest1.py@ 93115

Last change on this file since 93115 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# $Id: tdSelfTest1.py 93115 2022-01-01 11:31:46Z vboxsync $
4
5"""
6Test Manager Self Test - Dummy Test Driver.
7"""
8
9from __future__ import print_function;
10
11__copyright__ = \
12"""
13Copyright (C) 2012-2022 Oracle Corporation
14
15This file is part of VirtualBox Open Source Edition (OSE), as
16available from http://www.virtualbox.org. This file is free software;
17you can redistribute it and/or modify it under the terms of the GNU
18General Public License (GPL) as published by the Free Software
19Foundation, in version 2 as it comes in the "COPYING" file of the
20VirtualBox OSE distribution. VirtualBox OSE is distributed in the
21hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
22
23The contents of this file may alternatively be used under the terms
24of the Common Development and Distribution License Version 1.0
25(CDDL) only, as it comes in the "COPYING.CDDL" file of the
26VirtualBox OSE distribution, in which case the provisions of the
27CDDL are applicable instead of those of the GPL.
28
29You may elect to license modified versions of this file under the
30terms and conditions of either the GPL or the CDDL or both.
31"""
32__version__ = "$Revision: 93115 $"
33
34
35import sys;
36import os;
37
38print('dummydriver.py: hello world!');
39print('dummydriver.py: args: %s' % (sys.argv,));
40
41print('dummydriver.py: environment:');
42for sVar in sorted(os.environ.keys()): # pylint: disable=consider-iterating-dictionary
43 print('%s=%s' % (sVar, os.environ[sVar]));
44
45if 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
55sys.exit(0);
56
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