Merge "Add @VsrTest annotations to ApfIntegrationTest" into main am: eb6c2885a3
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/3115663 Change-Id: I36d8360a2526a0b693526b69dcd7bd837668dc91 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e2d4792a8e
1 changed files with 11 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ import com.android.compatibility.common.util.PropertyUtil.getFirstApiLevel
|
|||
import com.android.compatibility.common.util.PropertyUtil.getVsrApiLevel
|
||||
import com.android.compatibility.common.util.SystemUtil.runShellCommand
|
||||
import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow
|
||||
import com.android.compatibility.common.util.VsrTest
|
||||
import com.android.internal.util.HexDump
|
||||
import com.android.net.module.util.PacketReader
|
||||
import com.android.testutils.DevSdkIgnoreRule
|
||||
|
|
@ -300,6 +301,10 @@ class ApfIntegrationTest {
|
|||
}
|
||||
}
|
||||
|
||||
@VsrTest(
|
||||
requirements = ["VSR-5.3.12-001", "VSR-5.3.12-003", "VSR-5.3.12-004", "VSR-5.3.12-009",
|
||||
"VSR-5.3.12-012"]
|
||||
)
|
||||
@Test
|
||||
fun testApfCapabilities() {
|
||||
// APF became mandatory in Android 14 VSR.
|
||||
|
|
@ -350,6 +355,9 @@ class ApfIntegrationTest {
|
|||
return HexDump.hexStringToByteArray(progHexString)
|
||||
}
|
||||
|
||||
@VsrTest(
|
||||
requirements = ["VSR-5.3.12-007", "VSR-5.3.12-008", "VSR-5.3.12-010", "VSR-5.3.12-011"]
|
||||
)
|
||||
@SkipPresubmit(reason = "This test takes longer than 1 minute, do not run it on presubmit.")
|
||||
// APF integration is mostly broken before V, only run the full read / write test on V+.
|
||||
@IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
|
|
@ -400,6 +408,7 @@ class ApfIntegrationTest {
|
|||
}
|
||||
|
||||
// APF integration is mostly broken before V
|
||||
@VsrTest(requirements = ["VSR-5.3.12-002", "VSR-5.3.12-005"])
|
||||
@IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
@Test
|
||||
fun testDropPingReply() {
|
||||
|
|
@ -448,6 +457,7 @@ class ApfIntegrationTest {
|
|||
fun clearApfMemory() = installProgram(ByteArray(caps.maximumApfProgramSize))
|
||||
|
||||
// APF integration is mostly broken before V
|
||||
@VsrTest(requirements = ["VSR-5.3.12-002", "VSR-5.3.12-005"])
|
||||
@IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
@Test
|
||||
fun testPrefilledMemorySlotsV4() {
|
||||
|
|
@ -503,6 +513,7 @@ class ApfIntegrationTest {
|
|||
}
|
||||
|
||||
// APF integration is mostly broken before V
|
||||
@VsrTest(requirements = ["VSR-5.3.12-002", "VSR-5.3.12-005"])
|
||||
@IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
@Test
|
||||
fun testFilterAgeIncreasesBetweenPackets() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue