Skip to content

transcript generation/update #639

@teto

Description

@teto

Lately I've been working a lot on my program, tinkering with the output and all.
I miss having more tests to check for regression.
I had started creating some transcripts but they got outdated and I am not sure what's the best way to update them (from scratch ?).
Right now I believe the main approach is using history and because my program accepts commands from the command line, I can run
mptcpanalyzer -d DEBUG -l ~/pcaps/tmpatm6409s/client_2_.pcapng "summary_extended ~/pcaps/tmpatm6409s/client_2_.pcapng 1 ~/pcaps/tmpatm6409s/server_2_.pcapng 1" "history 1:1 -t transcript.txt" "quit"
but I would love to be able to update transcripts in place. Like for instance I have the following transcript.txt

server_2_filtered.pcapng> load_pcap examples/server_2_filtered.pcapng
Loading examples\/server_2_filtered.pcapng
server_2_filtered.pcapng> summary 0 Client
mptcpstream 0 transferred 308 bytes.
tcpstream 0 transferred 308 bytes out of 308, accounting for 100.00%
tcpstream 2 transferred 0 bytes out of 308, accounting for 0.00%
tcpstream 6 transferred 0 bytes out of 308, accounting for 0.00%
server_2_filtered.pcapng> summary 0 Server
mptcpstream 0 transferred 461 bytes.
tcpstream 0 transferred 456 bytes out of 461, accounting for 98.92%
tcpstream 2 transferred 5 bytes out of 461, accounting for 1.08%
tcpstream 6 transferred 0 bytes out of 461, accounting for 0.00%

And I could run a command for instance transcript update transcript.txt that reruns the commands and updates the outputs accordingly.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions