Add devtools script to create module fixtures (#404)

This commit is contained in:
Teemu R
2023-08-27 19:53:36 +02:00
committed by GitHub
parent 4b99351dd6
commit fad6ae5d10
2 changed files with 82 additions and 0 deletions

View File

@@ -15,6 +15,28 @@ Options:
--help Show this message and exit.
```
## create_module_fixtures
* Queries the device for all supported modules and outputs module-based fixture files for each device.
* This could be used to create fixture files for module-specific tests, but it might also be useful for other use-cases.
```shell
Usage: create_module_fixtures.py [OPTIONS] OUTPUTDIR
Create module fixtures for given host/network.
Arguments:
OUTPUTDIR [required]
Options:
--host TEXT
--network TEXT
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or
customize the installation.
--help Show this message and exit.
```
## parse_pcap
* Requires dpkt (pip install dpkt)