tests: add more integration tests for core tools.
This commit is contained in:
parent
c741f74323
commit
5611001e5b
19 changed files with 484 additions and 9 deletions
|
|
@ -15,15 +15,9 @@ setup_file() {
|
|||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=ip
|
||||
@test "ip: List interfaces with brief network layer info" {
|
||||
ip -brief address
|
||||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=ip
|
||||
@test "ip: List interfaces with brief link layer info" {
|
||||
ip -brief link
|
||||
ip link
|
||||
aa_check
|
||||
}
|
||||
|
||||
|
|
@ -39,3 +33,13 @@ setup_file() {
|
|||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=ip
|
||||
@test "ip: Manage network namespace" {
|
||||
sudo ip netns add foo
|
||||
sudo ip netns list
|
||||
sudo ip netns exec foo bash -c "pwd"
|
||||
sudo ip netns delete foo
|
||||
aa_check
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue