8255787: Tag container tests that use cGroups with cgroups keyword

Reviewed-by: sspitsyn
This commit is contained in:
Harold Seigel 2020-11-12 13:23:57 +00:00
parent ec08b3f28d
commit 4df8abc200
15 changed files with 20 additions and 5 deletions

View File

@ -31,7 +31,8 @@
# headful: test can be run only on headful host
# intermittent: flaky test, known to fail intermittently
# randomness: test uses randomness, test cases differ from run to run
keys=stress headful intermittent randomness
# cgroups: test uses cgroups
keys=stress headful intermittent randomness cgroups
groups=TEST.groups TEST.quick-groups

View File

@ -23,6 +23,7 @@
/*
* @test CgroupSubsystemFactory
* @key cgroups
* @requires os.family == "linux"
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox

View File

@ -23,6 +23,7 @@
/*
* @test PlainRead
* @key cgroups
* @requires os.family == "linux"
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox

View File

@ -24,6 +24,7 @@
/*
* @test
* @key cgroups
* @summary Test JVM's CPU resource awareness when running inside docker container
* @requires docker.support
* @library /test/lib

View File

@ -24,6 +24,7 @@
/*
* @test
* @key cgroups
* @summary Test JVM's awareness of cpu sets (cpus and mems)
* @requires docker.support
* @requires (os.arch != "s390x")

View File

@ -24,6 +24,7 @@
/*
* @test
* @key cgroups
* @summary Ensure that certain JFR events return correct results for resource values
* when run inside Docker container, such as available CPU and memory.
* Also make sure that PIDs are based on value provided by container,

View File

@ -24,6 +24,7 @@
/*
* @test
* @key cgroups
* @summary Test JVM's memory resource awareness when running inside docker container
* @requires docker.support
* @library /test/lib

View File

@ -13,8 +13,9 @@
# run. Tests that are not headful are "headless".
# A test flagged with key "printer" requires a printer to succeed, else
# throws a PrinterException or the like.
# A test flagged with cgroups uses cgroups.
keys=2d dnd headful i18n intermittent printer randomness jfr
keys=2d dnd headful i18n intermittent printer randomness jfr cgroups
# Tests that must run in othervm mode
othervm.dirs=java/awt java/beans javax/accessibility javax/imageio javax/sound javax/swing javax/print \

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
/*
* @test
* @key cgroups
* @requires os.family == "linux"
* @modules java.base/jdk.internal.platform
* @library /test/lib

View File

@ -43,6 +43,7 @@ import jdk.test.lib.util.FileUtils;
/*
* @test
* @key cgroups
* @requires os.family == "linux"
* @modules java.base/jdk.internal.platform
* @library /test/lib

View File

@ -42,6 +42,7 @@ import jdk.test.lib.util.FileUtils;
/*
* @test
* @key cgroups
* @requires os.family == "linux"
* @modules java.base/jdk.internal.platform
* @library /test/lib

View File

@ -32,6 +32,7 @@ import jdk.test.lib.containers.docker.DockerTestUtils;
/*
* @test
* @key cgroups
* @summary Test JDK Metrics class when running inside docker container
* @requires docker.support
* @library /test/lib

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@ import jdk.test.lib.process.OutputAnalyzer;
/*
* @test
* @key cgroups
* @summary Test JDK Metrics class when running inside docker container
* @requires docker.support
* @library /test/lib

View File

@ -23,6 +23,7 @@
/*
* @test
* @key cgroups
* @bug 8242480
* @requires docker.support
* @library /test/lib

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
/*
* @test
* @key cgroups
* @summary Test JDK Metrics class when running inside docker container
* @requires docker.support
* @library /test/lib