[PATCH] Add tests for gcc-changelog.
Martin Liška
mliska@suse.cz
Thu May 14 10:11:50 GMT 2020
Hi.
I would like to add unit-tests for gcc-changelog.
The test_patches.txt contains couple of patches extracted from gcc
via git format-patch.
Test output:
$ pytest contrib/gcc-changelog/
Test session starts (platform: linux, Python 3.8.2, pytest 4.6.9, pytest-sugar 0.9.3)
benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/marxin/Programming/gcc
plugins: xdist-1.32.0, sugar-0.9.3, forked-1.1.3, benchmark-3.2.3, aspectlib-1.5.0, cov-2.8.1, flake8-1.0.5
collecting ...
contrib/gcc-changelog/test_email.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓
Results (0.15s):
31 passed
Ready to be installed?
contrib/ChangeLog:
2020-05-14 Martin Liska <mliska@suse.cz>
* gcc-changelog/test_email.py: New file.
* gcc-changelog/test_patches.txt: New file.
---
contrib/gcc-changelog/test_email.py | 260 +
contrib/gcc-changelog/test_patches.txt | 7735 ++++++++++++++++++++++++
2 files changed, 7995 insertions(+)
create mode 100755 contrib/gcc-changelog/test_email.py
create mode 100644 contrib/gcc-changelog/test_patches.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-tests-for-gcc-changelog.patch
Type: text/x-patch
Size: 287902 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200514/aa333fc6/attachment-0001.bin>
More information about the Gcc-patches
mailing list