-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from sschaetz/python-package
Provides the flow to bundle and publish SVUT on Pypi
- Loading branch information
Showing
16 changed files
with
131 additions
and
25 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
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,4 @@ | ||
include AUTHORS | ||
include LICENSE | ||
include README.md | ||
recursive-include svut/ * |
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,22 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "svut" | ||
version = "1.6.1" | ||
authors = [ | ||
{ name="Damien Pretet", email="[email protected]" }, | ||
] | ||
description = "SystemVerilog Unit Test (SVUT)" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/dpretet/svut" | ||
"Bug Tracker" = "https://github.com/dpretet/svut/issues" |
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,49 @@ | ||
"""Setup module for SVUT. | ||
""" | ||
|
||
from setuptools import setup, find_namespace_packages | ||
import pathlib | ||
|
||
here = pathlib.Path(__file__).parent.resolve() | ||
|
||
long_description = (here / "README.md").read_text(encoding="utf-8") | ||
|
||
|
||
setup( | ||
name="svut", | ||
version="1.6.1", | ||
description="SystemVerilog Unit Test (SVUT)", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/dpretet/svut", | ||
author="Damien Pretet", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
"Development Status :: 3 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Code Generators", | ||
"Topic :: System :: Hardware", | ||
"Topic :: Software Development :: Testing", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
], | ||
keywords="Verilog Testbench Digital-Design", | ||
packages=find_namespace_packages(), | ||
include_package_data=True, | ||
python_requires=">=3.7, <4", | ||
entry_points={ | ||
"console_scripts": [ | ||
"svutRun=svut.svutRun:main", | ||
"svutCreate=svut.svutCreate:main", | ||
], | ||
}, | ||
project_urls={ | ||
"Bug Reports": "https://github.com/dpretet/svut/issues", | ||
"Say Thanks!": "http://saythanks.io/to/example", | ||
"Source": "https://github.com/dpretet/svut/", | ||
}, | ||
) |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 +1 @@ | ||
svutCreate.py | ||
./svut/svutCreate.py |
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 +1 @@ | ||
svutRun.py | ||
./svut/svutRun.py |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
test_run_ffd_example_icarus() { #@test | ||
|
||
run bash -c "cd ../example && "$DIR/../svutRun" -test ffd_testbench.sv -sim icarus" | ||
run bash -c "cd ../example && svutRun -test ffd_testbench.sv -sim icarus" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
test_run_ffd_example_verilator_failure() { #@test | ||
|
||
run bash -c "cd ../example && "$DIR/../svutRun" -test ffd_testbench.sv -sim verilator" | ||
run bash -c "cd ../example && svutRun -test ffd_testbench.sv -sim verilator" | ||
[ "$status" -eq 1 ] | ||
} |
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 |
---|---|---|
@@ -1,47 +1,47 @@ | ||
test_run_wrong_run_compile_only() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-run-only" "-compile-only" | ||
run "$DIR/../svut/svutRun.py" "-run-only" "-compile-only" | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
test_run_all_with_run_only() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-run-only" | ||
run "$DIR/../svut/svutRun.py" "-run-only" | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
test_run_all_with_compile_only() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-compile-only" | ||
run "$DIR/../svut/svutRun.py" "-compile-only" | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
test_run_wrong_simulator() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-sim" "xxx" | ||
run "$DIR/../svut/svutRun.py" "-sim" "xxx" | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
test_run_version() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-version" | ||
run "$DIR/../svut/svutRun.py" "-version" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
test_run_no_tb_present_to_scan() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-test" "../" | ||
run "$DIR/../svut/svutRun.py" "-test" "../" | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
test_run_not_a_tb_path() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-test" "../example/" | ||
run "$DIR/../svut/svutRun.py" "-test" "../example/" | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
test_run_dry_run() { #@test | ||
|
||
run "$DIR/../svutRun.py" "-test" "../example/ffd_testbench.sv" "-dry-run" | ||
run "$DIR/../svut/svutRun.py" "-test" "../example/ffd_testbench.sv" "-dry-run" | ||
[ "$status" -eq 0 ] | ||
} |