Some small improvements to cmdline file handling testpmd, inspired by the
desire to have support for multiple cmdline files passed on the commandline
of a testpmd run.

The implementation is somewhat complicated by the setting for echo/noecho
of the commands, because the current implementation uses a global flag for
that - shared between cmdline parameters and interactive CLI commands.

The final complication/addition, is the need for a common basename function
across our supported OS's. This is provided by the rte_basename function in
patch 1.

V4:
* remove ifdefs in testpmd code, by providing common rte_basename fn

V3:
* Fix windows support, no libgen or basename, no asprintf...

V2:
* remove global echo flag, and now support echo/noecho per file loaded
* when echoing, output the file being processed, to clarify things when
  loading multiple files.


Bruce Richardson (4):
  eal: add basename function for common path manipulation
  app/testpmd: explicitly set command echoing on file load
  app/testpmd: allow multiple commandline file parameters
  app/testpmd: improve output when processing cmdline files

 app/test-pmd/cmdline.c                      |  69 ++++++++++--
 app/test-pmd/parameters.c                   |  17 +--
 app/test-pmd/testpmd.c                      |  13 ++-
 app/test-pmd/testpmd.h                      |  15 ++-
 app/test/test_string_fns.c                  | 111 ++++++++++++++++++++
 doc/guides/testpmd_app_ug/run_app.rst       |   3 +-
 doc/guides/testpmd_app_ug/testpmd_funcs.rst |  12 +--
 lib/eal/include/rte_string_fns.h            |  32 ++++++
 lib/eal/unix/meson.build                    |   1 +
 lib/eal/unix/rte_basename.c                 |  37 +++++++
 lib/eal/windows/meson.build                 |   1 +
 lib/eal/windows/rte_basename.c              |  53 ++++++++++
 12 files changed, 336 insertions(+), 28 deletions(-)
 create mode 100644 lib/eal/unix/rte_basename.c
 create mode 100644 lib/eal/windows/rte_basename.c

-- 
2.48.1

Reply via email to