Age | Commit message (Collapse) | Author |
|
In stdout reported as,
...
BEGIN: ptest-dir
...
DURATION: N
END: ptest-dir
...
In XML reported as,
...
<testcase classname='test1' name='run-ptest'>
<duration>N</duration>
</testcase>
...
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
The ptest-runner support logging results to stdout and to a XML file
in stdout the ptest is mark as:
...
ERROR: Exit status is 1
TIMEOUT: ptest-directory
...
Add the same support in XML file for example,
...
<testcase classname='ptest-directory' name='run-ptest'>
<failure type='exit_code' message='run-ptest exited with code: 1'></failure>
<failure type='timeout'/>
</testcase>
...
[YOCTO #13088]
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
You can specify a set of ptests to be excluded, it will not fail
if some ptest excluded isn't found in the list of execution.
$ ./ptest-runner -e "hang glibc" -d tests/data
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
Fix usage of relative paths in -d argument.
$ ./ptest-runner -d ./tests/data
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
In some ptest packages exists symlink in the ptest directory causing
to load/run twice the same ptest,
For example in perl5:
/usr/lib/perl -> /usr/lib/perl5
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
|
|
The current implementation uses the system clock to calculate how long
a ptest has been running with no output. If a ptest changes the system
clock as part of the test, that can cause the current implementation
to falsely trigger a timeout or miss an actual timeout. It is
preferrable to use a monotonic clock for calculating elapsed time in
order to avoid these issues.
This change tries to use the monotonic clock first and falls back to
the realtime clock if the monotonic clock is not supported.
Signed-off-by: Jeffrey Pautler <jeffrey.pautler@ni.com>
|
|
ptest-runner -t xx gives segfault
Signed-off-by: Anders Wallin <wallinux@gmail.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
The format follow the one defined in the Yocto wiki:
https://wiki.yoctoproject.org/wiki/QA/xUnit_XML_Template
It is only the minimum required but it can be extended in the future.
Signed-off-by: Schuler Christian <schuler.christian@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
This allows to easily add additional parameters.
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Print exit status before TIMEOUT to give clear information
to the user about exit status before TIMEOUT and END.
[YOCTO #10842]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Now the run_timeout_ptest runs only one test so is not needed
to detect when this ptest starts as before.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
This test case covers the case when a run-ptest script fails and
prints ERROR in the output.
[YOCTO #9752]
Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Now test_run_ptests only runs succesful ptests, this commit creates
test_timeout_ptest for test TIMEOUT run-ptest script.
Also creates new functions for run specific ptest and search for specific
output in this case TIMEOUT.
Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
If some run-ptest script fails the user needs to be noticed so
add print "ERROR" when fork fail or run-ptest exits different than
zero.
[YOCTO #9752]
Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Comply with old ptest-runner behaviour displaying ptest directory in,
BEGIN, END and TIMEOUT lines.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
ptest-runner shell script currently change to the ptest directory
before call run-ptest.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
When RELEASE env var is enabled the ptest-runner is compiled with
optimizations otherwise is compiled with debug information.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
- Case all tests.
- Case of hang also adds data for simulate hang.
- Case for read data in stderr.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
- run_child: Fix pipe setup for capture output.
- wait_child: Change usage of select for poll and fix TIMEOUT write
now to stdout.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
run_ptests: Takes every ptests and executes it using fork/excve
if timeout is enabled it look at stdout, stderr ptest output if
no have output in more than N secods kills it.
tests/data: Add simple run-ptest scripts for with echo name of
the ptests.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
run_ptest implementation.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
This function is used when user specify only certain ptests to run.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
- ptest_list.h: Add macros for make easy free'ing ptest_list.
- utils.c: Add get_available_ptests function, search over
specific directory and returns ptest_list.
- tests/utils.c: Adds test suite with get_available_ptests test.
- tests/data: Add data for support get_available_ptests test.
- Makefile: Add check rule for execute ptest-runner-test.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
tests: Add ptest_list testsuite using check framework.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Adding main program with option parse and utils module.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|