This patch adds the depcheck test. Detailed change info/development history can be found by poking around the 'depcheck' branch.
This version of the patch should address all the issues found by James and Kamil[1] in their reviews. (Thanks for the feedback, guys.) The most interesting bit is that depcheck_main was split into two parts: do_depcheck and print_depcheck_results. do_depcheck returns much more info than depcheck_main did, which allows for more unittests and things. (nearly) full list of changes since the last version of this patch: * test: - separate files for CLI, library, and unittests - handle pending/accepted like normal yum repos (use YumBase.add_enable_repo) - handle new packages (i.e. not updates to existing packages) correctly - refactor depcheck_main into do_depcheck and print_depcheck_results - add unittests for new packages and ignored packages * wrapper: - install mash in setup() - add missing 'import re' - initialize results dict - fetch_nvrs(): fix missing 'koji', fix filename arg, download status output - use new query_update() and bodhi_already_commented() methods - fix NameError caused by missing 'updateid' variable * control files: - fix incorrect comment in control.autoqa [1] ..except the 'tags and timing' problem of pending/accepted changing during the test. That still need to be addressed, but first we need code to work with! tests/depcheck/control | 14 + tests/depcheck/control.autoqa | 6 + tests/depcheck/depcheck | 96 +++++++ tests/depcheck/depcheck.py | 185 +++++++++++++ tests/depcheck/depcheck_lib.py | 337 +++++++++++++++++++++++ tests/depcheck/depcheck_unittests.py | 489 ++++++++++++++++++++++++++++++++++ 6 files changed, 1127 insertions(+), 0 deletions(-) -w _______________________________________________ autoqa-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/autoqa-devel
