feat(profile): add pidof

This commit is contained in:
Alexandre Pujol 2025-07-07 00:22:26 +02:00
parent 6b5fad404b
commit 771dd9b589
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/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 "pidof: List all process IDs with given name" {
pidof systemd
pidof bash
}
@test "pidof: List a single process ID with given name" {
pidof -s bash
}
@test "pidof: List process IDs including scripts with given name" {
pidof -x bash
}