tests(integration): move most test inside groups.
This commit is contained in:
parent
eba7357cb1
commit
86aba45d67
32 changed files with 37 additions and 40 deletions
26
tests/integration/procps/sysctl.bats
Normal file
26
tests/integration/procps/sysctl.bats
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bats
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
load ../common
|
||||
|
||||
@test "sysctl: Show all available variables and their values" {
|
||||
sysctl -a
|
||||
}
|
||||
|
||||
@test "sysctl: Set a changeable kernel state variable" {
|
||||
sudo sysctl -w vm.panic_on_oom=0
|
||||
}
|
||||
|
||||
@test "sysctl: Get currently open file handlers" {
|
||||
sysctl fs.file-nr
|
||||
}
|
||||
|
||||
@test "sysctl: Get limit for simultaneous open files" {
|
||||
sysctl fs.file-max
|
||||
}
|
||||
|
||||
@test "sysctl: Apply changes from `/etc/sysctl.conf`" {
|
||||
sysctl -p
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue