[Rpm-maint] [rpm-software-management/rpm] scripts/pythondistdeps: New test suite and various updates and fixes (#1195)

Panu Matilainen notifications at github.com
Tue May 26 09:49:17 UTC 2020


> 1. [...] That's not really different from when people work on their own packages first and push it back upstream.
Hmm, I thought this was in a separate repo actually, but I see it's just Fedora dist-git. Like noted in earlier comments, stuff developing their own test-suites is a certain step towards independence.

> Having tests in autotest isn't a terrible problem, except for I don't really if anyone really knows how to use autotest. I know it's the framework autotools has for it, but how do we test Python code with it?
Being an autotools project has little to do with it. Rpm's test-suite looks like voodoo because of the fakechroot integration, but that aside the autotest cases are nothing but shell script snippets followed by expected stdin/stderr + return code. What you do in that shell script space is totally up to you, and you can add arbitrary helper/wrappers to suit purpose. Our test-suite actually has wrappers to allow native Python code directly in the tests, take a look at https://github.com/rpm-software-management/rpm/blob/master/tests/rpmpython.at and https://github.com/rpm-software-management/rpm/blob/master/tests/rpmvercmp.at sometime.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1195#issuecomment-633925317
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200526/2bdd5f5b/attachment-0001.html>


More information about the Rpm-maint mailing list