mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 21:47:29 +00:00
checkmetrics: Enable checkmetrics for memory inside test
This PR enables the checkmetrics to include the memory inside container test. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
2be342023b
commit
310e069f73
@ -42,6 +42,6 @@ description = "measure memory inside the container"
|
|||||||
# within (inclusive)
|
# within (inclusive)
|
||||||
checkvar = ".\"memory-footprint-inside-container\".Results | .[] | .memtotal.Result"
|
checkvar = ".\"memory-footprint-inside-container\".Results | .[] | .memtotal.Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 4135112.0
|
midval = 3677280.0
|
||||||
minpercent = 20.0
|
minpercent = 25.0
|
||||||
maxpercent = 20.0
|
maxpercent = 25.0
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
# is measured by using /proc/meminfo.
|
# is measured by using /proc/meminfo.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
|
||||||
|
|
||||||
# General env
|
# General env
|
||||||
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
|
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
|
||||||
|
@ -120,8 +120,6 @@ function run_test_memory_usage() {
|
|||||||
|
|
||||||
create_symbolic_links
|
create_symbolic_links
|
||||||
bash tests/metrics/density/memory_usage.sh 20 5
|
bash tests/metrics/density/memory_usage.sh 20 5
|
||||||
|
|
||||||
check_metrics
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_test_memory_usage_inside_container() {
|
function run_test_memory_usage_inside_container() {
|
||||||
@ -129,6 +127,8 @@ function run_test_memory_usage_inside_container() {
|
|||||||
|
|
||||||
create_symbolic_links
|
create_symbolic_links
|
||||||
bash tests/metrics/density/memory_usage_inside_container.sh 5
|
bash tests/metrics/density/memory_usage_inside_container.sh 5
|
||||||
|
|
||||||
|
check_metrics
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_test_blogbench() {
|
function run_test_blogbench() {
|
||||||
|
Loading…
Reference in New Issue
Block a user