[Swan-dev] ../../utils/runkvm.py

Andrew Cagney andrew.cagney at gmail.com
Tue Jul 17 18:34:25 UTC 2018


On Tue, 17 Jul 2018 at 08:14, Antony Antony <antony at phenome.org> wrote:
>
> On Mon, Jul 16, 2018 at 11:20:21AM -0400, Andrew Cagney wrote:
> > On Mon, 16 Jul 2018 at 09:01, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
> > >
> > > | From: Paul Wouters <paul at nohats.ca>
> > >
> > > | cd testing/pluto/sometest
> > > | ../../utils/kvmrunner.py .
> > >
> > > It didn't work for me.  It boils down to:
> > >
> > >         error: Domain not found: no domain with matching name 'road'
> > >
> > > That's because I have this in my Makefile.inc.local:
> > >         KVM_WORKERS=2
> > >         KVM_PREFIX=a. b.
> > > So I have two sets of machines, each with a prefix of a. or b.
> > >
> > > I figured out that this does work:
> > >         ../../utils/kvmrunner.py --prefix=a. .
> >
> > Yes,  I've been working on the assumption that 'make' is used to drive
> > all this - it has complete knowledge of all dependencies (unlike
> > kvmrunner.py).  However, fighting this is the reality that developers
> > want an easy way to invoke an individual test.  'make' in a test
> > directory?  kvmrun.py drive make with correct arguments?
> >
> > (the alternative would be to hack up something so that kvmrunner
> > somehow magically parse Makefile.inc.local (I don't want to create yet
> > another config file).
>
> I have run into similar issue when using swantest with prefixes.
> Here is proposed patch to print prefxies in "make kvm-help"
> then you could juggle inside the python.

'make kvm-config' dumps everything

> or one could  have a specific target "make kvm-list-prefixes"
> this could be cleaner.

True.  I'll add:

  prefixes=$(make print-kvm-prefixes)

as a trial.  See if it is useful.


More information about the Swan-dev mailing list