public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Cleber Rosa <crosa@redhat.com>
Cc: passt-dev@passt.top, David Gibson <dgibson@redhat.com>
Subject: Avocado, passt, etc.
Date: Fri, 5 Jul 2024 21:46:33 +1000	[thread overview]
Message-ID: <ZofdGYeHztBpNwLU@zatzit> (raw)

[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]

Hi again,

Following on on your specific patch, I've done a little bit more
thinking on how we might want to use Avocado for more extensive
testing.

I think I mentioned during some of our calls my idea of having some
sort of test side library to automatically turn test code into
executables that can be used from Avocado's extended exec stuff.  I
don't think I explained it very clearly though.

I've made a super rudimentary draft of this idea here:
    https://gitlab.com/dgibson/exeter
The "example.py" program, run without arguments lists all the ways you
can run it, each of which constitutes a single test case.

The idea is that that "list" mode would be extended to generate the
json manifest that Avocado can consume.  So first you run it to
generate the json, then you feed that into avocado which will run each
of the cases as a separate test.  Ideally avocado could do both steps
itself (this is what I was talking about with the "variant 2" of the
extended exec stuff).  But we can do it externally for the time being.

Having things separated this way makes it super easy to manually
re-run a specific test case.  We can also allow the same library to
emit the list of tests in other formats for other runners (being able
to do this for meson seems like it might be pretty useful).

Obviously, it would need a bunch more functionality to be really
useful: ways of automatically generating matrices of tests, composing
functions together to make test cases, as well as basic helper
functions like assert variants.

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

                 reply	other threads:[~2024-07-05 11:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZofdGYeHztBpNwLU@zatzit \
    --to=david@gibson.dropbear.id.au \
    --cc=crosa@redhat.com \
    --cc=dgibson@redhat.com \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).