forked from kata-containers/tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add sanity test after running integration and functional tests
This will verify that processes like shim, hypervisor and proxy are not left as well as that we do not have pods or runtimes running after running our functional and integration tests. Fixes kata-containers#800 Signed-off-by: Gabriela Cervantes <[email protected]>
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2018 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# This will verify that before running integration and functional tests, | ||
# processes like hypervisor, shim and proxy are not running. It will | ||
# also check that not pod information is left and that we do not have | ||
# runtimes running as they should be transient. | ||
|
||
set -e | ||
|
||
cidir=$(dirname "$0") | ||
|
||
source "${cidir}/../lib/common.bash" | ||
|
||
main() { | ||
# Check no processes are left behind | ||
check_processes | ||
|
||
# Verify that pods were not left | ||
check_pods | ||
|
||
# Verify that runtime is not running | ||
check_runtimes | ||
} | ||
|
||
main |