path: root/tests/shell/testcases/rule_management/0001addinsertposition_0
Commit message (Collapse)AuthorAgeFilesLines
* tests: shell: Search diff tool once and for allPhil Sutter2020-01-161-8/+4
| | | | | | | | | | | | | | | Instead of calling 'which diff' over and over again, just detect the tool's presence in and pass $DIFF to each testcase just like with nft binary. Fall back to using 'true' command to avoid the need for any conditional calling in test cases. While being at it, unify potential diff calls so that a string comparison in shell happens irrespective of diff presence. Signed-off-by: Phil Sutter <> Acked-by: Pablo Neira Ayuso <>
* tests/shell: Extend rule_management/0001addposition_0Phil Sutter2018-05-091-0/+89
Combine it with 0002insertposition_0 due to the many similarities, extend it to test 'handle' and 'index' parameters as well and rename the testcase accordingly. Also add a new 0002addinsertlocation_1 which tests that wrong argument to all of the location parameters fails. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>