Adapt to CLIgen 4.6 API changes

This commit is contained in:
Olof hagsand 2020-05-19 22:26:29 +02:00
parent 48dfc1201f
commit 7d0b245174
7 changed files with 48 additions and 22 deletions

View file

@ -58,8 +58,15 @@ Run all tests but continue after errors and only print a summary test output ide
## Memory leak test
The `mem.sh` runs memory checks using valgrind. Start it with no arguments to test all components (backend, restconf, cli, netconf), or specify which components to run:
```
mem.sh # All components
mem.sh restconf backend # Only backend and cli
mem.sh 2>&1 | tee mylog # All components
mem.sh restconf backend # Only backend and cli
```
## Run pattern of tests
The above scripts work with the `pattern` variable to limit the scope of which tests run, eg:
```
pattern="test_c*.sh" mem.sh
```
## Performance plots

View file

@ -102,3 +102,5 @@ for cmd1 in $cmds; do
memonce $cmd1
println "Mem test $cmd1 done"
done
unset pattern