move workspace to tools

Marcus Shawcroft 2016-04-05 16:30:51 +01:00
parent dca69e022b
commit 3b2b06197a
35 changed files with 154 additions and 154 deletions

View File

@ -27,14 +27,14 @@ ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
from workspace_tools.toolchains import TOOLCHAINS from tools.toolchains import TOOLCHAINS
from workspace_tools.targets import TARGET_NAMES, TARGET_MAP from tools.targets import TARGET_NAMES, TARGET_MAP
from workspace_tools.options import get_default_options_parser from tools.options import get_default_options_parser
from workspace_tools.build_api import build_mbed_libs, build_lib from tools.build_api import build_mbed_libs, build_lib
from workspace_tools.build_api import mcu_toolchain_matrix from tools.build_api import mcu_toolchain_matrix
from workspace_tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library from tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library
from workspace_tools.build_api import print_build_results from tools.build_api import print_build_results
from workspace_tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT from tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT
if __name__ == '__main__': if __name__ == '__main__':
start = time() start = time()

View File

@ -25,11 +25,11 @@ from shutil import rmtree
from os.path import join, exists, basename from os.path import join, exists, basename
from time import time from time import time
from workspace_tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException
from workspace_tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON
from workspace_tools.targets import TARGET_NAMES, TARGET_MAP from tools.targets import TARGET_NAMES, TARGET_MAP
from workspace_tools.libraries import Library from tools.libraries import Library
from workspace_tools.toolchains import TOOLCHAIN_CLASSES from tools.toolchains import TOOLCHAIN_CLASSES
from jinja2 import FileSystemLoader from jinja2 import FileSystemLoader
from jinja2.environment import Environment from jinja2.environment import Environment

View File

@ -25,14 +25,14 @@ import json
ROOT = abspath(join(dirname(__file__), "..")) ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
from workspace_tools.build_api import build_mbed_libs from tools.build_api import build_mbed_libs
from workspace_tools.build_api import write_build_report from tools.build_api import write_build_report
from workspace_tools.targets import TARGET_MAP from tools.targets import TARGET_MAP
from workspace_tools.test_exporters import ReportExporter, ResultExporterType from tools.test_exporters import ReportExporter, ResultExporterType
from workspace_tools.test_api import SingleTestRunner from tools.test_api import SingleTestRunner
from workspace_tools.test_api import singletest_in_cli_mode from tools.test_api import singletest_in_cli_mode
from workspace_tools.paths import TEST_DIR from tools.paths import TEST_DIR
from workspace_tools.tests import TEST_MAP from tools.tests import TEST_MAP
OFFICIAL_MBED_LIBRARY_BUILD = ( OFFICIAL_MBED_LIBRARY_BUILD = (
('LPC11U24', ('ARM', 'uARM', 'GCC_ARM', 'IAR')), ('LPC11U24', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),

View File

@ -137,7 +137,7 @@ def run_builds(dry_run):
toolchain_list = build["toolchains"] toolchain_list = build["toolchains"]
if type(toolchain_list) != type([]): toolchain_list = [toolchain_list] if type(toolchain_list) != type([]): toolchain_list = [toolchain_list]
for toolchain in toolchain_list: for toolchain in toolchain_list:
cmdline = "python workspace_tools/build.py -m %s -t %s -j 4 -c --silent "% (build["target"], toolchain) cmdline = "python tools/build.py -m %s -t %s -j 4 -c --silent "% (build["target"], toolchain)
libs = build.get("libs", []) libs = build.get("libs", [])
if libs: if libs:
cmdline = cmdline + " ".join(["--" + l for l in libs]) cmdline = cmdline + " ".join(["--" + l for l in libs])
@ -161,14 +161,14 @@ def run_test_linking(dry_run):
for test_lib in tests: for test_lib in tests:
test_names = tests[test_lib] test_names = tests[test_lib]
test_lib_switch = "--" + test_lib if test_lib else "" test_lib_switch = "--" + test_lib if test_lib else ""
cmdline = "python workspace_tools/make.py -m %s -t %s -c --silent %s -n %s " % (link["target"], toolchain, test_lib_switch, ",".join(test_names)) cmdline = "python tools/make.py -m %s -t %s -c --silent %s -n %s " % (link["target"], toolchain, test_lib_switch, ",".join(test_names))
print "Executing: " + cmdline print "Executing: " + cmdline
if not dry_run: if not dry_run:
if os.system(cmdline) != 0: if os.system(cmdline) != 0:
sys.exit(1) sys.exit(1)
def run_test_testsuite(dry_run): def run_test_testsuite(dry_run):
cmdline = "python workspace_tools/singletest.py --version" cmdline = "python tools/singletest.py --version"
print "Executing: " + cmdline print "Executing: " + cmdline
if not dry_run: if not dry_run:
if os.system(cmdline) != 0: if os.system(cmdline) != 0:

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from workspace_tools.targets import TARGETS from tools.targets import TARGETS
DEFAULT_SUPPORT = {} DEFAULT_SUPPORT = {}
CORTEX_ARM_SUPPORT = {} CORTEX_ARM_SUPPORT = {}

View File

@ -17,7 +17,7 @@ limitations under the License.
from os.path import join from os.path import join
from jinja2 import Template from jinja2 import Template
from workspace_tools.paths import TOOLS_DATA, MBED_RPC from tools.paths import TOOLS_DATA, MBED_RPC
RPC_TEMPLATES_PATH = join(TOOLS_DATA, "rpc") RPC_TEMPLATES_PATH = join(TOOLS_DATA, "rpc")

View File

@ -19,10 +19,10 @@ from os.path import join, exists, basename
from shutil import copytree, rmtree, copy from shutil import copytree, rmtree, copy
import yaml import yaml
from workspace_tools.utils import mkdir from tools.utils import mkdir
from workspace_tools.export import uvision4, codered, gccarm, ds5_5, iar, emblocks, coide, kds, zip, simplicityv3, atmelstudio, sw4stm32 from tools.export import uvision4, codered, gccarm, ds5_5, iar, emblocks, coide, kds, zip, simplicityv3, atmelstudio, sw4stm32
from workspace_tools.export.exporters import zip_working_directory_and_clean_up, OldLibrariesException from tools.export.exporters import zip_working_directory_and_clean_up, OldLibrariesException
from workspace_tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP from tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP
from project_generator_definitions.definitions import ProGenDef from project_generator_definitions.definitions import ProGenDef

View File

@ -16,7 +16,7 @@ limitations under the License.
""" """
from exporters import Exporter from exporters import Exporter
from os.path import splitext, basename from os.path import splitext, basename
from workspace_tools.targets import TARGETS from tools.targets import TARGETS
# filter all the GCC_ARM targets out of the target list # filter all the GCC_ARM targets out of the target list
gccTargets = [] gccTargets = []

View File

@ -8,9 +8,9 @@ from jinja2.environment import Environment
from contextlib import closing from contextlib import closing
from zipfile import ZipFile, ZIP_DEFLATED from zipfile import ZipFile, ZIP_DEFLATED
from workspace_tools.utils import mkdir from tools.utils import mkdir
from workspace_tools.toolchains import TOOLCHAIN_CLASSES from tools.toolchains import TOOLCHAIN_CLASSES
from workspace_tools.targets import TARGET_MAP from tools.targets import TARGET_MAP
from project_generator.generate import Generator from project_generator.generate import Generator
from project_generator.project import Project from project_generator.project import Project

View File

@ -18,8 +18,8 @@ import re
import os import os
from project_generator_definitions.definitions import ProGenDef from project_generator_definitions.definitions import ProGenDef
from workspace_tools.export.exporters import Exporter from tools.export.exporters import Exporter
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES from tools.targets import TARGET_MAP, TARGET_NAMES
# If you wish to add a new target, add it to project_generator_definitions, and then # If you wish to add a new target, add it to project_generator_definitions, and then
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``) # define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)

View File

@ -17,7 +17,7 @@ limitations under the License.
from exporters import Exporter from exporters import Exporter
from os.path import splitext, basename, join from os.path import splitext, basename, join
from random import randint from random import randint
from workspace_tools.utils import mkdir from tools.utils import mkdir
class Sw4STM32(Exporter): class Sw4STM32(Exporter):

View File

@ -17,8 +17,8 @@ limitations under the License.
from os.path import basename, join, dirname from os.path import basename, join, dirname
from project_generator_definitions.definitions import ProGenDef from project_generator_definitions.definitions import ProGenDef
from workspace_tools.export.exporters import Exporter from tools.export.exporters import Exporter
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES from tools.targets import TARGET_MAP, TARGET_NAMES
# If you wish to add a new target, add it to project_generator_definitions, and then # If you wish to add a new target, add it to project_generator_definitions, and then
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``) # define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)

View File

@ -22,9 +22,9 @@ sys.path.insert(0, ROOT)
from shutil import move from shutil import move
from workspace_tools.paths import * from tools.paths import *
from workspace_tools.utils import mkdir, cmd from tools.utils import mkdir, cmd
from workspace_tools.export import export, setup_user_prj from tools.export import export, setup_user_prj
USR_PRJ_NAME = "usr_prj" USR_PRJ_NAME = "usr_prj"

View File

@ -35,8 +35,8 @@ import host_tests_plugins
# we can find packages we want from the same level as other files do # we can find packages we want from the same level as other files do
import sys import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
from workspace_tools.test_api import get_autodetected_MUTS_list from tools.test_api import get_autodetected_MUTS_list
from workspace_tools.test_api import get_module_avail from tools.test_api import get_module_avail
class Mbed: class Mbed:
@ -313,7 +313,7 @@ class HostTestResults:
self.RESULT_MBED_ASSERT = "mbed_assert" self.RESULT_MBED_ASSERT = "mbed_assert"
import workspace_tools.host_tests as host_tests import tools.host_tests as host_tests
class Test(HostTestResults): class Test(HostTestResults):

View File

@ -22,7 +22,7 @@ from time import sleep
from host_test_plugins import HostTestPluginBase from host_test_plugins import HostTestPluginBase
sys.path.append(abspath(join(dirname(__file__), "../../../"))) sys.path.append(abspath(join(dirname(__file__), "../../../")))
from workspace_tools.test_api import get_autodetected_MUTS_list from tools.test_api import get_autodetected_MUTS_list
class HostTestPluginCopyMethod_Smart(HostTestPluginBase): class HostTestPluginCopyMethod_Smart(HostTestPluginBase):

View File

@ -20,7 +20,7 @@ from os.path import join, abspath, dirname
ROOT = abspath(join(dirname(__file__), "..", "..")) ROOT = abspath(join(dirname(__file__), "..", ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
from workspace_tools.private_settings import LOCALHOST from tools.private_settings import LOCALHOST
from SocketServer import BaseRequestHandler, TCPServer from SocketServer import BaseRequestHandler, TCPServer

View File

@ -14,9 +14,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from workspace_tools.paths import * from tools.paths import *
from workspace_tools.data.support import * from tools.data.support import *
from workspace_tools.tests import TEST_MBED_LIB from tools.tests import TEST_MBED_LIB
LIBRARIES = [ LIBRARIES = [

View File

@ -27,22 +27,22 @@ from os.path import join, abspath, dirname
ROOT = abspath(join(dirname(__file__), "..")) ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
from workspace_tools.utils import args_error from tools.utils import args_error
from workspace_tools.paths import BUILD_DIR from tools.paths import BUILD_DIR
from workspace_tools.paths import RTOS_LIBRARIES from tools.paths import RTOS_LIBRARIES
from workspace_tools.paths import RPC_LIBRARY from tools.paths import RPC_LIBRARY
from workspace_tools.paths import ETH_LIBRARY from tools.paths import ETH_LIBRARY
from workspace_tools.paths import USB_HOST_LIBRARIES, USB_LIBRARIES from tools.paths import USB_HOST_LIBRARIES, USB_LIBRARIES
from workspace_tools.paths import DSP_LIBRARIES from tools.paths import DSP_LIBRARIES
from workspace_tools.paths import FS_LIBRARY from tools.paths import FS_LIBRARY
from workspace_tools.paths import UBLOX_LIBRARY from tools.paths import UBLOX_LIBRARY
from workspace_tools.tests import TESTS, Test, TEST_MAP from tools.tests import TESTS, Test, TEST_MAP
from workspace_tools.tests import TEST_MBED_LIB from tools.tests import TEST_MBED_LIB
from workspace_tools.targets import TARGET_MAP from tools.targets import TARGET_MAP
from workspace_tools.options import get_default_options_parser from tools.options import get_default_options_parser
from workspace_tools.build_api import build_project from tools.build_api import build_project
try: try:
import workspace_tools.private_settings as ps import tools.private_settings as ps
except: except:
ps = object() ps = object()

View File

@ -15,8 +15,8 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from optparse import OptionParser from optparse import OptionParser
from workspace_tools.toolchains import TOOLCHAINS from tools.toolchains import TOOLCHAINS
from workspace_tools.targets import TARGET_NAMES from tools.targets import TARGET_NAMES
def get_default_options_parser(): def get_default_options_parser():

View File

@ -26,7 +26,7 @@ BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR
# Embedded Libraries Sources # Embedded Libraries Sources
LIB_DIR = join(ROOT, "libraries") LIB_DIR = join(ROOT, "libraries")
TOOLS = join(ROOT, "workspace_tools") TOOLS = join(ROOT, "tools")
TOOLS_DATA = join(TOOLS, "data") TOOLS_DATA = join(TOOLS, "data")
TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders") TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders")
@ -42,7 +42,7 @@ MBED_LIBRARIES = join(BUILD_DIR, "mbed")
# Tests # Tests
TEST_DIR = join(LIB_DIR, "tests") TEST_DIR = join(LIB_DIR, "tests")
HOST_TESTS = join(ROOT, "workspace_tools", "host_tests") HOST_TESTS = join(ROOT, "tools", "host_tests")
# mbed RPC # mbed RPC
MBED_RPC = join(LIB_DIR, "rpc") MBED_RPC = join(LIB_DIR, "rpc")

View File

@ -6,16 +6,16 @@ sys.path.insert(0, ROOT)
from shutil import move, rmtree from shutil import move, rmtree
from optparse import OptionParser from optparse import OptionParser
from workspace_tools.paths import EXPORT_DIR, EXPORT_WORKSPACE, EXPORT_TMP from tools.paths import EXPORT_DIR, EXPORT_WORKSPACE, EXPORT_TMP
from workspace_tools.paths import MBED_BASE, MBED_LIBRARIES from tools.paths import MBED_BASE, MBED_LIBRARIES
from workspace_tools.export import export, setup_user_prj, EXPORTERS, mcu_ide_matrix from tools.export import export, setup_user_prj, EXPORTERS, mcu_ide_matrix
from workspace_tools.utils import args_error from tools.utils import args_error
from workspace_tools.tests import TESTS, Test, TEST_MAP from tools.tests import TESTS, Test, TEST_MAP
from workspace_tools.targets import TARGET_NAMES from tools.targets import TARGET_NAMES
from workspace_tools.libraries import LIBRARIES from tools.libraries import LIBRARIES
try: try:
import workspace_tools.private_settings as ps import tools.private_settings as ps
except: except:
ps = object() ps = object()
@ -75,7 +75,7 @@ if __name__ == '__main__':
action="store_true", action="store_true",
dest="supported_ides_html", dest="supported_ides_html",
default=False, default=False,
help="writes workspace_tools/export/README.md") help="writes tools/export/README.md")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()

View File

@ -99,6 +99,6 @@ MUTs = {
try: try:
# Allow to overwrite the default settings without the need to edit the # Allow to overwrite the default settings without the need to edit the
# settings file stored in the repository # settings file stored in the repository
from workspace_tools.private_settings import * from mbed_settings import *
except ImportError: except ImportError:
print '[WARNING] Using default settings. Define your settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"' print '[WARNING] Using default settings. Define your settings in the file "./mbed_settings.py"'

View File

@ -56,32 +56,32 @@ sys.path.insert(0, ROOT)
# Check: Extra modules which are required by core test suite # Check: Extra modules which are required by core test suite
from workspace_tools.utils import check_required_modules from tools.utils import check_required_modules
check_required_modules(['prettytable', 'serial']) check_required_modules(['prettytable', 'serial'])
# Imports related to mbed build api # Imports related to mbed build api
from workspace_tools.build_api import mcu_toolchain_matrix from tools.build_api import mcu_toolchain_matrix
# Imports from TEST API # Imports from TEST API
from workspace_tools.test_api import SingleTestRunner from tools.test_api import SingleTestRunner
from workspace_tools.test_api import singletest_in_cli_mode from tools.test_api import singletest_in_cli_mode
from workspace_tools.test_api import detect_database_verbose from tools.test_api import detect_database_verbose
from workspace_tools.test_api import get_json_data_from_file from tools.test_api import get_json_data_from_file
from workspace_tools.test_api import get_avail_tests_summary_table from tools.test_api import get_avail_tests_summary_table
from workspace_tools.test_api import get_default_test_options_parser from tools.test_api import get_default_test_options_parser
from workspace_tools.test_api import print_muts_configuration_from_json from tools.test_api import print_muts_configuration_from_json
from workspace_tools.test_api import print_test_configuration_from_json from tools.test_api import print_test_configuration_from_json
from workspace_tools.test_api import get_autodetected_MUTS_list from tools.test_api import get_autodetected_MUTS_list
from workspace_tools.test_api import get_autodetected_TEST_SPEC from tools.test_api import get_autodetected_TEST_SPEC
from workspace_tools.test_api import get_module_avail from tools.test_api import get_module_avail
from workspace_tools.test_exporters import ReportExporter, ResultExporterType from tools.test_exporters import ReportExporter, ResultExporterType
# Importing extra modules which can be not installed but if available they can extend test suite functionality # Importing extra modules which can be not installed but if available they can extend test suite functionality
try: try:
import mbed_lstools import mbed_lstools
from workspace_tools.compliance.ioper_runner import IOperTestRunner from tools.compliance.ioper_runner import IOperTestRunner
from workspace_tools.compliance.ioper_runner import get_available_oper_test_scopes from tools.compliance.ioper_runner import get_available_oper_test_scopes
except: except:
pass pass

View File

@ -23,10 +23,10 @@ from collections import defaultdict
ROOT = abspath(join(dirname(__file__), "..")) ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
from workspace_tools.paths import BUILD_DIR, TOOLS_DATA from tools.paths import BUILD_DIR, TOOLS_DATA
from workspace_tools.settings import GCC_ARM_PATH from tools.settings import GCC_ARM_PATH
from workspace_tools.tests import TEST_MAP from tools.tests import TEST_MAP
from workspace_tools.build_api import build_mbed_libs, build_project from tools.build_api import build_mbed_libs, build_project
SIZE = join(GCC_ARM_PATH, 'arm-none-eabi-size') SIZE = join(GCC_ARM_PATH, 'arm-none-eabi-size')

View File

@ -31,9 +31,9 @@ import string
ROOT = abspath(join(dirname(__file__), "..")) ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
from workspace_tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR from tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR
from workspace_tools.paths import LIB_DIR from tools.paths import LIB_DIR
from workspace_tools.utils import run_cmd from tools.utils import run_cmd
MBED_URL = "mbed.org" MBED_URL = "mbed.org"
MBED_USER = "mbed_official" MBED_USER = "mbed_official"

View File

@ -32,7 +32,7 @@ import os
import binascii import binascii
import struct import struct
import shutil import shutil
from workspace_tools.patch import patch from tools.patch import patch
from paths import TOOLS_BOOTLOADERS from paths import TOOLS_BOOTLOADERS
class Target: class Target:

View File

@ -39,31 +39,31 @@ from threading import Thread, Lock
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
# Imports related to mbed build api # Imports related to mbed build api
from workspace_tools.tests import TESTS from tools.tests import TESTS
from workspace_tools.tests import TEST_MAP from tools.tests import TEST_MAP
from workspace_tools.paths import BUILD_DIR from tools.paths import BUILD_DIR
from workspace_tools.paths import HOST_TESTS from tools.paths import HOST_TESTS
from workspace_tools.utils import ToolException from tools.utils import ToolException
from workspace_tools.utils import NotSupportedException from tools.utils import NotSupportedException
from workspace_tools.utils import construct_enum from tools.utils import construct_enum
from workspace_tools.targets import TARGET_MAP from tools.targets import TARGET_MAP
from workspace_tools.test_db import BaseDBAccess from tools.test_db import BaseDBAccess
from workspace_tools.build_api import build_project, build_mbed_libs, build_lib from tools.build_api import build_project, build_mbed_libs, build_lib
from workspace_tools.build_api import get_target_supported_toolchains from tools.build_api import get_target_supported_toolchains
from workspace_tools.build_api import write_build_report from tools.build_api import write_build_report
from workspace_tools.build_api import prep_report from tools.build_api import prep_report
from workspace_tools.build_api import prep_properties from tools.build_api import prep_properties
from workspace_tools.build_api import create_result from tools.build_api import create_result
from workspace_tools.build_api import add_result_to_report from tools.build_api import add_result_to_report
from workspace_tools.libraries import LIBRARIES, LIBRARY_MAP from tools.libraries import LIBRARIES, LIBRARY_MAP
from workspace_tools.toolchains import TOOLCHAIN_BIN_PATH from tools.toolchains import TOOLCHAIN_BIN_PATH
from workspace_tools.test_exporters import ReportExporter, ResultExporterType from tools.test_exporters import ReportExporter, ResultExporterType
import workspace_tools.host_tests.host_tests_plugins as host_tests_plugins import tools.host_tests.host_tests_plugins as host_tests_plugins
try: try:
import mbed_lstools import mbed_lstools
from workspace_tools.compliance.ioper_runner import get_available_oper_test_scopes from tools.compliance.ioper_runner import get_available_oper_test_scopes
except: except:
pass pass
@ -1592,7 +1592,7 @@ def factory_db_logger(db_url):
""" Factory database driver depending on database type supplied in database connection string db_url """ Factory database driver depending on database type supplied in database connection string db_url
""" """
if db_url is not None: if db_url is not None:
from workspace_tools.test_mysql import MySQLDBAccess from tools.test_mysql import MySQLDBAccess
connection_info = BaseDBAccess().parse_db_connection_string(db_url) connection_info = BaseDBAccess().parse_db_connection_string(db_url)
if connection_info is not None: if connection_info is not None:
(db_type, username, password, host, db_name) = BaseDBAccess().parse_db_connection_string(db_url) (db_type, username, password, host, db_name) = BaseDBAccess().parse_db_connection_string(db_url)

View File

@ -17,7 +17,7 @@ limitations under the License.
Author: Przemyslaw Wirkus <Przemyslaw.wirkus@arm.com> Author: Przemyslaw Wirkus <Przemyslaw.wirkus@arm.com>
""" """
from workspace_tools.utils import construct_enum from tools.utils import construct_enum
ResultExporterType = construct_enum(HTML='Html_Exporter', ResultExporterType = construct_enum(HTML='Html_Exporter',

View File

@ -21,7 +21,7 @@ import re
import MySQLdb as mdb import MySQLdb as mdb
# Imports from TEST API # Imports from TEST API
from workspace_tools.test_db import BaseDBAccess from tools.test_db import BaseDBAccess
class MySQLDBAccess(BaseDBAccess): class MySQLDBAccess(BaseDBAccess):

View File

@ -28,8 +28,8 @@ ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT) sys.path.insert(0, ROOT)
# Imports related to mbed build api # Imports related to mbed build api
from workspace_tools.utils import construct_enum from tools.utils import construct_enum
from workspace_tools.build_api import mcu_toolchain_matrix from tools.build_api import mcu_toolchain_matrix
# Imports from TEST API # Imports from TEST API
from test_api import SingleTestRunner from test_api import SingleTestRunner

View File

@ -14,8 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
from workspace_tools.paths import * from tools.paths import *
from workspace_tools.data.support import * from tools.data.support import *
TEST_CMSIS_LIB = join(TEST_DIR, "cmsis", "lib") TEST_CMSIS_LIB = join(TEST_DIR, "cmsis", "lib")
TEST_MBED_LIB = join(TEST_DIR, "mbed", "env") TEST_MBED_LIB = join(TEST_DIR, "mbed", "env")
@ -1082,7 +1082,7 @@ GROUPS["automated"] = [test["id"] for test in TESTS if test.get("automated", Fal
# Look for 'TEST_GROUPS' in private_settings.py and update the GROUPS dictionary # Look for 'TEST_GROUPS' in private_settings.py and update the GROUPS dictionary
# with the information in test_groups if found # with the information in test_groups if found
try: try:
from workspace_tools.private_settings import TEST_GROUPS from tools.private_settings import TEST_GROUPS
except: except:
TEST_GROUPS = {} TEST_GROUPS = {}
GROUPS.update(TEST_GROUPS) GROUPS.update(TEST_GROUPS)

View File

@ -26,9 +26,9 @@ from os.path import join, splitext, exists, relpath, dirname, basename, split
from inspect import getmro from inspect import getmro
from multiprocessing import Pool, cpu_count from multiprocessing import Pool, cpu_count
from workspace_tools.utils import run_cmd, mkdir, rel_path, ToolException, NotSupportedException, split_path from tools.utils import run_cmd, mkdir, rel_path, ToolException, NotSupportedException, split_path
from workspace_tools.settings import BUILD_OPTIONS, MBED_ORG_USER from tools.settings import BUILD_OPTIONS, MBED_ORG_USER
import workspace_tools.hooks as hooks import tools.hooks as hooks
#Disables multiprocessing if set to higher number than the host machine CPUs #Disables multiprocessing if set to higher number than the host machine CPUs
@ -745,9 +745,9 @@ class mbedToolchain:
def var(self, key, value): def var(self, key, value):
self.notify({'type': 'var', 'key': key, 'val': value}) self.notify({'type': 'var', 'key': key, 'val': value})
from workspace_tools.settings import ARM_BIN from tools.settings import ARM_BIN
from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH from tools.settings import GCC_ARM_PATH, GCC_CR_PATH
from workspace_tools.settings import IAR_PATH from tools.settings import IAR_PATH
TOOLCHAIN_BIN_PATH = { TOOLCHAIN_BIN_PATH = {
'ARM': ARM_BIN, 'ARM': ARM_BIN,
@ -757,9 +757,9 @@ TOOLCHAIN_BIN_PATH = {
'IAR': IAR_PATH 'IAR': IAR_PATH
} }
from workspace_tools.toolchains.arm import ARM_STD, ARM_MICRO from tools.toolchains.arm import ARM_STD, ARM_MICRO
from workspace_tools.toolchains.gcc import GCC_ARM, GCC_CR from tools.toolchains.gcc import GCC_ARM, GCC_CR
from workspace_tools.toolchains.iar import IAR from tools.toolchains.iar import IAR
TOOLCHAIN_CLASSES = { TOOLCHAIN_CLASSES = {
'ARM': ARM_STD, 'ARM': ARM_STD,

View File

@ -17,10 +17,10 @@ limitations under the License.
import re import re
from os.path import join from os.path import join
from workspace_tools.toolchains import mbedToolchain from tools.toolchains import mbedToolchain
from workspace_tools.settings import ARM_BIN, ARM_INC, ARM_LIB, MY_ARM_CLIB, ARM_CPPLIB from tools.settings import ARM_BIN, ARM_INC, ARM_LIB, MY_ARM_CLIB, ARM_CPPLIB
from workspace_tools.hooks import hook_tool from tools.hooks import hook_tool
from workspace_tools.settings import GOANNA_PATH from tools.settings import GOANNA_PATH
class ARM(mbedToolchain): class ARM(mbedToolchain):
LINKER_EXT = '.sct' LINKER_EXT = '.sct'

View File

@ -17,10 +17,10 @@ limitations under the License.
import re import re
from os.path import join, basename, splitext from os.path import join, basename, splitext
from workspace_tools.toolchains import mbedToolchain from tools.toolchains import mbedToolchain
from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH from tools.settings import GCC_ARM_PATH, GCC_CR_PATH
from workspace_tools.settings import GOANNA_PATH from tools.settings import GOANNA_PATH
from workspace_tools.hooks import hook_tool from tools.hooks import hook_tool
class GCC(mbedToolchain): class GCC(mbedToolchain):
LINKER_EXT = '.ld' LINKER_EXT = '.ld'

View File

@ -18,10 +18,10 @@ import re
from os import remove from os import remove
from os.path import join, exists from os.path import join, exists
from workspace_tools.toolchains import mbedToolchain from tools.toolchains import mbedToolchain
from workspace_tools.settings import IAR_PATH from tools.settings import IAR_PATH
from workspace_tools.settings import GOANNA_PATH from tools.settings import GOANNA_PATH
from workspace_tools.hooks import hook_tool from tools.hooks import hook_tool
class IAR(mbedToolchain): class IAR(mbedToolchain):
LIBRARY_EXT = '.a' LIBRARY_EXT = '.a'