-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added tox.ini file for test environment management - added yproject.toml file to project - added test-requirements.txt - added test case comments Signed-off-by: Mustafa Kemal Gilor <[email protected]>
- Loading branch information
Showing
7 changed files
with
170 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# hotkdump | ||
hotkdump is a tool for auto analysis of vmcores. | ||
|
||
hotkdump is a tool for auto analysis of vmcores. | ||
|
||
## How to run tests | ||
|
||
Running `tox -e py{36,37,38,39,310,311}` in project root directory will run all unit tests, e.g.: | ||
|
||
```bash | ||
tox -e py310 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# reference: https://github.com/pypa/sampleproject/blob/main/pyproject.toml | ||
|
||
[project] | ||
name = "hotkdump" | ||
version = "0.0.1" | ||
description = "Linux kernel crashdump analysis tool" | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
license = {file = "LICENSE.txt"} | ||
classifiers = [ | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
"Development Status :: 3 - Alpha", | ||
|
||
# Pick your license as you wish | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate you support Python 3. These classifiers are *not* | ||
# checked by "pip install". See instead "python_requires" below. | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3 :: Only", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
||
[project.urls] # Optional | ||
"Homepage" = "https://github.com/canonical/hotkdump" | ||
"Bug Reports" = "https://github.com/canonical/hotkdump/issues" | ||
|
||
[project.scripts] # Optional | ||
hotkdump = "hkd.hkd_impl:main" | ||
|
||
[build-system] | ||
# These are the assumed default build requirements from pip: | ||
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support | ||
requires = ["setuptools>=43.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pytest>=7 | ||
pytest-sugar | ||
# The below are ubuntu-dev-tools's dependencies but unfortunately | ||
# the requirements.txt file is not referred in setup.py so we have | ||
# to list them here | ||
### SOF `ubuntu-dev-tools` requirements.txt ### | ||
python-debian | ||
python-debianbts | ||
distro-info | ||
httplib2 | ||
launchpadlib | ||
requests | ||
setuptools | ||
### EOF `ubuntu-dev-tools` requirements.txt ### | ||
ubuntu-dev-tools@git+https://git.launchpad.net/ubuntu/+source/ubuntu-dev-tools@applied/ubuntu/focal-updates |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[tox] | ||
env_list = py{36,37,38,39,310,311} | ||
isolated_build=true | ||
skipsdist = True | ||
|
||
[testenv] | ||
description = run the test suite with pytest | ||
deps = | ||
-r{toxinidir}/test-requirements.txt | ||
commands = | ||
pytest {posargs:tests} |