This tool can automatically add the load and dump data based on the configuration of the plugin to be tested, generate the pipeline file of the plugin to be tested, and perform the stream test on the plugin to be tested.
"factory": "mxpi_pluginname", # Plugin type
"plugin_name": "mxpi_pluginname0", # Plugin name
"props": { # Plugin properties
"dataSource": "mxpi_parentName0",
"resizeHeight": "416",
"resizeWidth": "416"
}
"load": [ # Input file name of the load plugin. One input file corresponds to one load plugin.
"input/pluginname0.json"
]
"dump": [ # Output file name of the dump plugin. One output file corresponds to one dump plugin.
"pluginname0-output.json"
]
Run the run.sh script to generate the pipeline file of the plugin to be tested in the pipeline directory, and perform the stream test on the plugin to generate the data output file configured in dump. (The final execution file is main.py.)
1 | chmod +x run.sh && ./run.sh |