mbox series

[rt-tests,v1,00/13] JSON cleanups and more tests updated

Message ID 20210304192220.11272-1-dwagner@suse.de
Headers show
Series JSON cleanups and more tests updated | expand

Message

Daniel Wagner March 4, 2021, 7:22 p.m. UTC
The first two patches fixes the format string issue. Then there are a
couple of patches which fixes the common JSON entries (command line,
start_time, end_time).

Then there are patches which add the --output parameter to the missing
rt-tests programs.

All patches are also available at:

  https://github.com/igaw/rt-tests/tree/json-output-2021-03-04

Daniel Wagner (13):
  cyclictest: Fix printf format specifier
  cyclicdeadline.c: Fix printf format specifier
  signaltest: Add missing --output usage info
  rt_util: Copy command line before getopt_long() is called
  rt-util: Add start time of test execution for JSON output
  pip_stress: Move test result output to main
  pip_stress: Return failure code if test fails
  pip_stress: Prepare arg parser to accept only long options
  pip_stress: Add JSON output feature
  pi_stress: Prepare command line parser for long options only
  pi_stress: Add JSON output feature
  ssdd: Add quiet command line option
  ssdd: Add JSON output feature

 src/cyclictest/cyclictest.c           | 13 ++---
 src/include/rt-utils.h                |  9 ++--
 src/lib/rt-utils.c                    | 77 +++++++++++++++------------
 src/oslat/oslat.c                     |  6 ++-
 src/pi_tests/pi_stress.c              | 65 +++++++++++++++++-----
 src/pi_tests/pip_stress.c             | 47 +++++++++++-----
 src/pmqtest/pmqtest.c                 |  4 +-
 src/ptsematest/ptsematest.c           |  4 +-
 src/rt-migrate-test/rt-migrate-test.c |  4 +-
 src/sched_deadline/cyclicdeadline.c   | 12 +++--
 src/signaltest/signaltest.c           |  5 +-
 src/sigwaittest/sigwaittest.c         |  4 +-
 src/ssdd/ssdd.c                       | 50 +++++++++++++----
 src/svsematest/svsematest.c           |  4 +-
 14 files changed, 214 insertions(+), 90 deletions(-)

Comments

Daniel Wagner March 5, 2021, 7:04 a.m. UTC | #1
On Thu, Mar 04, 2021 at 08:22:20PM +0100, Daniel Wagner wrote:
> +static void write_stats(FILE *f, void *data)

> +{

> +	int *error = data;

> +

> +	fprintf(f, "  \"success\": %d\n", !*error);

> +}


I think I add 'exit_code' to all of the tests.