mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 04:53:01 +02:00
Allow all host commands to be run with a prefix (e.g. `ssh user@remotehost sudo`), such that yanger can be tested against the current state of a remote system. If a command wrapper _and_ a test directory is specified, the output of all commands and files are recorded for use by a future test execution. Example: 1. Launch a `make run` instance and setup some config for which we want to test yanger and cli-pretty 2. Capture the output of all commands needed to produce the data for some YANG model: `yanger -t /tmp/ifs -w "ixll -A ssh qtap1 sudo" ietf-interfaces` 3. Kill the instance (we do not need it any more) 4. Test cli-pretty using the captured state: `yanger -t /tmp/ifs ietf-interfaces | cli-pretty show-interfaces `