tests: cleanup the basic structure of integration tests.
This commit is contained in:
parent
206bc3473d
commit
7b4e01217b
46 changed files with 50 additions and 502 deletions
|
|
@ -3,23 +3,24 @@
|
|||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# bats test_tags=systemd-detect-virt
|
||||
load common
|
||||
|
||||
@test "systemd-detect-virt: List detectable virtualization technologies" {
|
||||
systemd-detect-virt --list
|
||||
}
|
||||
|
||||
# bats test_tags=systemd-detect-virt
|
||||
@test "systemd-detect-virt: Detect virtualization, print the result and return a zero status code when running in a VM or a container, and a non-zero code otherwise" {
|
||||
systemd-detect-virt
|
||||
systemd-detect-virt || true
|
||||
}
|
||||
|
||||
# bats test_tags=systemd-detect-virt
|
||||
@test "systemd-detect-virt: Silently check without printing anything" {
|
||||
systemd-detect-virt --quiet
|
||||
systemd-detect-virt --quiet || true
|
||||
}
|
||||
|
||||
# bats test_tags=systemd-detect-virt
|
||||
@test "systemd-detect-virt: Only detect hardware virtualization" {
|
||||
systemd-detect-virt --vm
|
||||
systemd-detect-virt --vm || true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue