Enhancing test-pmd to be able to load CLI commands from file both at runtime and at startup. Usually the number of commands to run is small enough that a simple cut-n-paste does the trick, but while testing the flow API it was necessary to load several hundred commands and cut-n-paste could not keep up.
I started with adding support to load the commands at startup (--cmdline-file=/home/ubuntu/somefile.txt), but then realized that I needed to remove/re-add commands at runtime so I added CLI commands to take care of that aspect as well ("testpmd> load /home/ubuntu/somefile.txt") I thought of removing the startup command support since the same could be accomplished by using the new "load" command once the process starts up, but then I realized that it may be useful for someone using non-interactive mode. I am open to the idea of squashing both commits together if necessary. Allain Legacy (2): app/testpmd: load cmdline commands on startup app/testpmd: load cmdline commands at runtime app/test-pmd/cmdline.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++ app/test-pmd/parameters.c | 10 +++++++++ app/test-pmd/testpmd.c | 4 ++++ app/test-pmd/testpmd.h | 2 ++ 4 files changed, 72 insertions(+) -- 1.8.3.1