VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/tests/api/tdApi1.py@ 79067

Last change on this file since 79067 was 77810, checked in by vboxsync, 6 years ago

Removed SubTstOCIExportVM1

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# $Id: tdApi1.py 77810 2019-03-20 14:41:03Z vboxsync $
4
5"""
6VirtualBox Validation Kit - API Test wrapper #1 combining all API sub-tests
7"""
8
9__copyright__ = \
10"""
11Copyright (C) 2010-2019 Oracle Corporation
12
13This file is part of VirtualBox Open Source Edition (OSE), as
14available from http://www.virtualbox.org. This file is free software;
15you can redistribute it and/or modify it under the terms of the GNU
16General Public License (GPL) as published by the Free Software
17Foundation, in version 2 as it comes in the "COPYING" file of the
18VirtualBox OSE distribution. VirtualBox OSE is distributed in the
19hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20
21The contents of this file may alternatively be used under the terms
22of the Common Development and Distribution License Version 1.0
23(CDDL) only, as it comes in the "COPYING.CDDL" file of the
24VirtualBox OSE distribution, in which case the provisions of the
25CDDL are applicable instead of those of the GPL.
26
27You may elect to license modified versions of this file under the
28terms and conditions of either the GPL or the CDDL or both.
29"""
30__version__ = "$Revision: 77810 $"
31
32
33# Standard Python imports.
34import os
35import sys
36
37# Only the main script needs to modify the path.
38try: __file__
39except: __file__ = sys.argv[0]
40g_ksValidationKitDir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
41sys.path.append(g_ksValidationKitDir)
42
43# Validation Kit imports.
44from testdriver import vbox
45
46
47class tdApi1(vbox.TestDriver):
48 """
49 API Test wrapper #1.
50 """
51
52 def __init__(self, aoSubTestDriverClasses = None):
53 vbox.TestDriver.__init__(self)
54 for oSubTestDriverClass in aoSubTestDriverClasses:
55 self.addSubTestDriver(oSubTestDriverClass(self));
56
57 #
58 # Overridden methods.
59 #
60
61 def actionConfig(self):
62 """
63 Import the API.
64 """
65 if not self.importVBoxApi():
66 return False
67 return True
68
69 def actionExecute(self):
70 """
71 Execute the testcase, i.e. all sub-tests.
72 """
73 fRc = True;
74 for oSubTstDrv in self.aoSubTstDrvs:
75 fRc &= oSubTstDrv.testIt();
76 return fRc;
77
78
79if __name__ == '__main__':
80 sys.path.append(os.path.dirname(os.path.abspath(__file__)))
81 from tdPython1 import SubTstDrvPython1; # pylint: disable=relative-import
82 from tdAppliance1 import SubTstDrvAppliance1; # pylint: disable=relative-import
83 from tdMoveMedium1 import SubTstDrvMoveMedium1; # pylint: disable=relative-import
84 from tdTreeDepth1 import SubTstDrvTreeDepth1; # pylint: disable=relative-import
85 from tdMoveVM1 import SubTstDrvMoveVM1; # pylint: disable=relative-import
86 sys.exit(tdApi1([SubTstDrvPython1, SubTstDrvAppliance1, SubTstDrvMoveMedium1,
87 SubTstDrvTreeDepth1, SubTstDrvMoveVM1]).main(sys.argv))
88
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