mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-24 00:15:49 +00:00
2552c9786f
This allows python3 unittest to properly generate the tests when running all the tests in the tests directory. Also adds a fix to test_test.py to reset buildpattern.default_pattern every test. This was a bug introduced by running all tests at once - this was not being cleared correctly. Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
check: autospec/*.py
|
|
@flake8 --max-line-length=199 --ignore=E402 $^
|
|
|
|
test_pkg_integrity:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_pkg_integrity.py
|
|
|
|
test_tarball:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_tarball.py
|
|
|
|
test_specfile:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_specfile.py
|
|
|
|
test_abireport:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_abireport.py
|
|
|
|
test_commitmessage:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_commitmessage.py
|
|
|
|
test_files:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_files.py
|
|
|
|
test_license:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_license.py
|
|
|
|
test_buildpattern:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_buildpattern.py
|
|
|
|
test_build:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_build.py
|
|
|
|
test_buildreq:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_buildreq.py
|
|
|
|
test_specdescription:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_specdescription.py
|
|
|
|
test_count:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_count.py
|
|
|
|
test_test:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_test.py
|
|
|
|
test_util:
|
|
PYTHONPATH=${CURDIR}/autospec python3 tests/test_util.py
|
|
|
|
test_autospec:
|
|
python3 tests/test_autospec.py -c ${CASES}
|
|
|
|
unittests:
|
|
PYTHONPATH=${CURDIR}/autospec python3 -m unittest discover -b -s tests -p 'test_*.py'
|