feat(profile): add needrestart-vmlinuz-get-version & tests for needrestart.

This commit is contained in:
Alexandre Pujol 2024-11-21 19:39:55 +00:00
parent 5237ab3989
commit 3960f20f00
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 73 additions and 2 deletions

View file

@ -0,0 +1,34 @@
#!/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 "needrestart: List outdated processes" {
needrestart
}
@test "needrestart: Interactively restart services" {
sudo needrestart
}
@test "needrestart: List outdated processes in verbose mode" {
needrestart -v
}
@test "needrestart: Check if the kernel is outdated" {
needrestart -k
}
@test "needrestart: Check if the CPU microcode is outdated" {
needrestart -w
}
@test "needrestart: List outdated processes in batch mode" {
needrestart -b
}
@test "needrestart: Display help" {
needrestart --help
}