mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-21 22:28:10 +00:00
01197109b2
Previously, Python tests were executed using setup.py test. There are a few issues with this. First, with the current setup, tests are executed twice for some reason. Occasionally other odd errors occur. Also, setuptools has deprecated the test command for setup.py and states that it will be removed in a future version. This change discovers tests by finding the package directories of affected files and searching for tests with customizable patterns ('*_test.py' by default). This approach is simpler, faster, and no longer relies on setuptools or unittest. Since setup.py test is no longer used, this change removes test suite discovery from Pigweed's setup.py files. Change-Id: I3de6c5d05ea5e38eea27b0e3aca956fe468035be Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12662 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
# Copyright 2020 The Pigweed Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
# the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations under
|
|
# the License.
|
|
"""lm3s6965evb_qemu_utils"""
|
|
|
|
import setuptools
|
|
|
|
setuptools.setup(
|
|
name='lm3s6965evb_qemu_utils',
|
|
version='0.0.1',
|
|
author='Pigweed Authors',
|
|
author_email='pigweed-developers@googlegroups.com',
|
|
description=
|
|
'Target-specific python scripts for the lm3s6965evb-qemu target',
|
|
packages=setuptools.find_packages(),
|
|
entry_points={
|
|
'console_scripts': [
|
|
'lm3s6965evb_qemu_unit_test_runner = '
|
|
' lm3s6965evb_qemu_utils.unit_test_runner:main',
|
|
]
|
|
},
|
|
install_requires=['coloredlogs'],
|
|
)
|