Adapt to CLIgen 4.6 API changes
This commit is contained in:
parent
48dfc1201f
commit
7d0b245174
7 changed files with 48 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -102,3 +102,5 @@ for cmd1 in $cmds; do
|
|||
memonce $cmd1
|
||||
println "Mem test $cmd1 done"
|
||||
done
|
||||
|
||||
unset pattern
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue