[PATCH 0/4] trace-cmd: Make unit tests for trace-cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>

The current unit tests in the trace-cmd repo are really for libtracefs. As
libtracefs has moved to its own repo and has its own unit tests, the
trace-cmd tests here are redundant.

Remove the libtracefs unit tests and replace them with tests that are
specific for trace-cmd.

Currently there are only two tests added. A simple record and report, and a
test of converting from v7 to v6 file format. But this adds infrastructure
that should make it easier to add new tests.

Steven Rostedt (Google) (4):
  trace-cmd utests: Remove libtracefs tests
  trace-cmd utest: Rename tracefs-utest.c to tracecmd-utest.c
  trace-cmd test: Add simple record/report test
  trace-cmd test: Add test to check conversion from 7 to 6

 Makefile               |   2 +-
 utest/Makefile         |   2 +-
 utest/trace-utest.c    |  23 +-
 utest/trace-utest.h    |   7 +-
 utest/tracecmd-utest.c | 295 +++++++++++++++++++
 utest/tracefs-utest.c  | 630 -----------------------------------------
 6 files changed, 319 insertions(+), 640 deletions(-)
 create mode 100644 utest/tracecmd-utest.c
 delete mode 100644 utest/tracefs-utest.c

-- 
2.35.1




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux