tests: add more integration tests for core tools.

This commit is contained in:
Alexandre Pujol 2024-11-12 21:42:31 +00:00
parent c741f74323
commit 5611001e5b
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 484 additions and 9 deletions

View file

@ -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
}