[yocto] [ptest-runner 3/8] Fix linker order for libcheck

2017-09-29 Thread Jiwei Sun
/check/src/check_run.c:507: undefined reference to `timer_create' /home/edavnys/check/src/check_run.c:515: undefined reference to `timer_settime' /home/edavnys/check/src/check_run.c:529: undefined reference to `timer_delete' collect2: error: ld returned 1 exit status Signed-off-by:

[yocto] [ptest-runner 8/8] Added to XML

2017-09-29 Thread Jiwei Sun
Signed-off-by: Jiwei Sun --- tests/data/reference.xml | 3 ++- tests/utils.c| 4 ++-- utils.c | 49 +--- utils.h | 2 +- 4 files changed, 39 insertions(+), 19 deletions(-) diff --git a/tests/data

[yocto] [ptest-runner 6/8] Add to XML when tests fail

2017-09-29 Thread Jiwei Sun
* Introduce a maximum number of concurrent ptests, since we are dealing with embedded targets. * Add stdout || stderr output from ptests into XML. For testcases running in parallel, cluttering stdout won't help anyone. Signed-off-by: Jiwei Sun --- main.c | 2 + tests

[yocto] [ptest-runner 7/8] Introduce a ret-code for timeouts

2017-09-29 Thread Jiwei Sun
Signed-off-by: Jiwei Sun --- utils.c | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/utils.c b/utils.c index 0e97ac4..54ef89d 100644 --- a/utils.c +++ b/utils.c @@ -349,7 +349,7 @@ wait_child(const char *ptest_dir

[yocto] [ptest-runner 5/8] Add parallelism to TC execution

2017-09-29 Thread Jiwei Sun
Kinda only makes sense with JUnit test output. Signed-off-by: Jiwei Sun --- ptest_list.c | 16 +-- ptest_list.h | 14 ++- tests/data/glibc/ptest/run-pptest| 3 + tests/data/parallel/ptest/run-pptest | 3 + tests/ptest_list.c

[yocto] [ptest-runner 4/8] Add version(-v) since we change return code ABI

2017-09-29 Thread Jiwei Sun
Signed-off-by: Jiwei Sun --- main.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 505829c..d524200 100644 --- a/main.c +++ b/main.c @@ -41,10 +41,16 @@ static inline void print_usage(FILE *stream, char *progname) { - fprintf

[yocto] [ptest-runner 2/8] Add missing stdint.h

2017-09-29 Thread Jiwei Sun
), ptests_num); ^ tests/ptest_list.c:85:2: error: unknown type name ‘intmax_t’ ck_assert_int_eq(ptest_list_length(head), ptests_num); Signed-off-by: Jiwei Sun --- tests/ptest_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ptest_list.c b/tests/ptest_list.c index 5c0036d..2641620

[yocto] [ptest-runner 1/8] Corrected return code interpreter

2017-09-29 Thread Jiwei Sun
Signed-off-by: Jiwei Sun --- utils.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/utils.c b/utils.c index 6d65388..a07faec 100644 --- a/utils.c +++ b/utils.c @@ -300,9 +300,19 @@ wait_child(const char *ptest_dir, const char *run_ptest, pid_t pid