mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
test(py3): Add targets for diff'ing test changes
This commit is contained in:
parent
a6c50160e3
commit
8f7cafc877
15
Makefile
15
Makefile
@ -242,3 +242,18 @@ src/allmydata/_version.py:
|
||||
|
||||
.tox: tox.ini setup.py
|
||||
tox --notest -p all
|
||||
|
||||
|
||||
# BBB: Python 3 porting targets
|
||||
|
||||
# Gauge the impact of changes on Python 3 compatibility
|
||||
# Compare the output from running all tests under Python 3 before and after changes.
|
||||
# Before changes:
|
||||
# `$ rm -f .tox/make-test-py3-all-*.log && make .tox/make-test-py3-all-old.log`
|
||||
# After changes:
|
||||
# `$ make .tox/make-test-py3-all.diff`
|
||||
$(foreach side,old new,.tox/make-test-py3-all-$(side).log):
|
||||
(tox --develop -e py36-coverage allmydata || true) | \
|
||||
sed -E 's/\([0-9]+\.[0-9]{3} secs\)/(#.### secs)/' | tee "$(@)"
|
||||
.tox/make-test-py3-all.diff: .tox/make-test-py3-all-new.log
|
||||
(diff -u "$(<:%-new.log=%-old.log)" "$(<)" || true) | tee "$(@)"
|
||||
|
Loading…
Reference in New Issue
Block a user