<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 14, 2016 at 8:32 AM Marcos E. Matsunaga <<a href="mailto:Marcos.Matsunaga@oracle.com">Marcos.Matsunaga@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Folks,<br>
<br>
I have some questions about how avocado works.<br>
<br>
1. If I run avocado and give it a directory that has all tests. Is there<br>
a way to specify the order of execution? I mean, if I name the files<br>
001-xxx.py, 010-aa.py, will it execute 001-xxx.py before 010-aa.py or it<br>
doesn't follow an alphabetical order?<br></blockquote><div><br></div><div><br></div><div>There is - You can specify their order of execution in the command line:</div><div><br></div><div><div>avocado run failtest.py raise.py doublefree.py </div><div>JOB ID     : 6047dedc2996815659a75841f00518fa0f83b1ee</div><div>JOB LOG    : /home/lmr/avocado/job-results/job-2016-09-14T12.53-6047ded/job.log</div><div>TESTS      : 3</div><div> (1/3) failtest.py:FailTest.test: FAIL (0.00 s)</div><div> (2/3) raise.py:Raise.test: PASS (0.11 s)</div><div> (3/3) doublefree.py:DoubleFreeTest.test: PASS (1.02 s)</div><div>RESULTS    : PASS 2 | ERROR 0 | FAIL 1 | SKIP 0 | WARN 0 | INTERRUPT 0</div><div>TESTS TIME : 1.13 s</div><div>JOB HTML   : /home/lmr/avocado/job-results/job-2016-09-14T12.53-6047ded/html/results.html</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Lets take into consideration that same directory. Some of the scripts<br>
will have multiplex configuration files. Does avocado automatically look<br>
at some specific directory for those multiplex configuration files? I've<br>
tried to add them to the data, cfg and even the <script>.data<br>
directories, but it seems that it doesn't look for them automatically,<br>
only when I specify the option --multiplex, but then, the file will be<br>
used by all scripts and I was only able to specify a single multiplex file.<br></blockquote><div><br></div><div>The original design assumption was that you'd execute only one test that has a multiplex file, and provide the multiplex file with it, so indeed what you wan't to do can't be done right now. I suppose multiple tests with multiplex files and multiplex file auto detection would be a nice feature to add moving forward, though.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. I tried to find if it was possible to start multiple test processes<br>
in parallel, but it seems that avocado doesn't have anything like that.<br>
Lets say I have 4 guests and I want to execute performance tests while<br>
loading the 4 guests and I want to start tests on all 4 guests at the<br>
same time. It doesn't have a feature that will do that, right?<br></blockquote><div><br></div><div>Executing tests in multiple remote machines was something that we din't think about either, and one that would be very interesting to add indeed.<br><br>What you can do for now is to start 4 parallel separate instances of avocado, one for each machine. Each execution will create its own job directory, though.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for your time and help.<br></blockquote><div><br></div><div>Cheers!</div></div></div>