1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/Makefile

85 lines
2.3 KiB
Makefile
Raw Permalink Normal View History

Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
PYTEST_OPTS ?=
TAG ?=`grep __version__ myhdl/__init__.py | grep -oe '\([0-9.]*\)'`
MSG ?= "Release "${TAG}
VERSION_FILE := myhdl/__init__.py
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
ANSI_RED=`tput setaf 1`
ANSI_GREEN=`tput setaf 2`
ANSI_CYAN=`tput setaf 6`
ANSI_RESET=`tput sgr0`
# Some tests contain python 3.10 syntax, they can even be presented to pytest to parse with the wrong python
PYV=$(shell python -c "import sys;t='{v[0]}{v[1]:02}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)")
ifeq ($(shell test $(PYV) -lt 310; echo $$?),0)
PYTEST_OPTS += --ignore-glob='*_py310.py'
endif
2008-08-21 15:29:10 +02:00
install:
python setup.py install
localinstall:
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
python setup.py install --home=${HOME}
2008-08-21 15:29:10 +02:00
docs:
tox -e docs html
livedocs:
tox -e docs livehtml
dist:
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
rm -rf MANIFEST
rm -rf CHANGELOG.txt
#hg glog > CHANGELOG.txt
python setup.py sdist
release:
@echo "Preparing ${TAG} - Message - ${MSG}"
@sed -i "s|__version__ = \"[0-9.]\+\"|__version__ = \"${TAG}\"|g" ${VERSION_FILE}
git commit --allow-empty -m ${MSG} ${VERSION_FILE}
git tag -a ${TAG} -m ${MSG}
git push && git push --tags
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
clean:
rm -rf *.vhd *.v *.o *.log *.vcd *.hex work/ cosimulation/icarus/myhdl.vpi
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
lint:
pyflakes myhdl/
black:
black myhdl/
core:
@echo -e "\n${ANSI_CYAN}running test: $@ ${ANSI_RESET}"
pytest -v ./myhdl/test/core ${PYTEST_OPTS}
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
iverilog_myhdl.vpi:
${MAKE} -C cosimulation/icarus myhdl.vpi
iverilog_cosim: iverilog_myhdl.vpi
${MAKE} -C cosimulation/icarus test
iverilog_general:
pytest ./myhdl/test/conversion/general --sim iverilog ${PYTEST_OPTS}
iverilog_toverilog: iverilog_myhdl.vpi
pytest ./myhdl/test/conversion/toVerilog --sim iverilog ${PYTEST_OPTS}
iverilog_bugs:
pytest ./myhdl/test/bugs --sim iverilog ${PYTEST_OPTS}
iverilog: iverilog_cosim
@echo -e "\n${ANSI_CYAN}running test: $@ ${ANSI_RESET}"
pytest -v ./myhdl/test/conversion/general ./myhdl/test/conversion/toVerilog ./myhdl/test/bugs --sim iverilog ${PYTEST_OPTS}
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
ghdl_general:
pytest ./myhdl/test/conversion/general --sim ghdl ${PYTEST_OPTS}
ghdl_tovhdl:
pytest ./myhdl/test/conversion/toVHDL --sim ghdl ${PYTEST_OPTS}
ghdl_bugs:
pytest ./myhdl/test/bugs --sim ghdl ${PYTEST_OPTS}
ghdl:
@echo -e "\n${ANSI_CYAN}running test: $@ ${ANSI_RESET}"
pytest -v ./myhdl/test/conversion/general ./myhdl/test/conversion/toVHDL ./myhdl/test/bugs --sim ghdl ${PYTEST_OPTS}
Update makeflow (#396) * Clean up verify convert warnings * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Rewrote test and remove Xfail, test is passing now (is it supposed to fail?) * Fixed all tests to handle the analyze/verify deprecation * Fixed to catch the correct error, List of signals as a port is not supported * Add a way to search for and add myhdl.vpi * Add explict test to check for deprecation case * Change warning from UserWarning (which is the default) to DeprecationWarning * Change test operation from script to makefile * No longer use travis * Add some ANSI colored logging * Fixed test to look for DeprecationWarning * Add lining step * Add linting step * Add linting step * Remove matrix step * Add work/ to clean list * Hide echo commands in window * The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks * Add myhdl.vpi to clean * Mark these tests as xfail, for now, * Fix and unmark xfail 2 tests * Add black support * Remove python2 only testing * Need to relook at this test, it performs differently for verilog and vhdl * Add RTL files to the list * Need to relook at this test, it performs differently for verilog and vhdl * Upgrade to DeprecationWarnings * Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged * Add more examples for the Deprecation cases, toVHDL and toVerilog * Fix deprecations catching * Fix pytest to use pytest.ini * Add pypi release steps * Fix intbv error * Fix indent * Update to do a release * Add checkout to step * Update Python versions * Add dependancy on tag on push
2022-12-17 12:21:08 +00:00
pytest: core iverilog ghdl