Merge "Add smoke test for jni library" am: 98ad72632c
am: 22f45a249d
Change-Id: Iba607c906917017f79f141f4e0599a2330cc0f14
This commit is contained in:
@@ -49,7 +49,6 @@ java_defaults {
|
|||||||
"libselinux",
|
"libselinux",
|
||||||
"libui",
|
"libui",
|
||||||
"libutils",
|
"libutils",
|
||||||
"libvintf",
|
|
||||||
"libvndksupport",
|
"libvndksupport",
|
||||||
"libtinyxml2",
|
"libtinyxml2",
|
||||||
"libunwindstack",
|
"libunwindstack",
|
||||||
|
|||||||
17
tests/net/smoketest/Android.bp
Normal file
17
tests/net/smoketest/Android.bp
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
// This test exists only because the jni_libs list for these tests is difficult to
|
||||||
|
// maintain: the test itself only depends on libnetworkstatsfactorytestjni, but the test
|
||||||
|
// fails to load that library unless *all* the dependencies of that library are explicitly
|
||||||
|
// listed in jni_libs. This means that whenever any of the dependencies changes the test
|
||||||
|
// starts failing and breaking presubmits in frameworks/base. We cannot easily put
|
||||||
|
// FrameworksNetTests into global presubmit because they are at times flaky, but this
|
||||||
|
// test is effectively empty beyond validating that the libraries load correctly, and
|
||||||
|
// thus should be stable enough to put in global presubmit.
|
||||||
|
//
|
||||||
|
// TODO: remove this hack when there is a better solution for jni_libs that includes
|
||||||
|
// dependent libraries.
|
||||||
|
android_test {
|
||||||
|
name: "FrameworksNetSmokeTests",
|
||||||
|
defaults: ["FrameworksNetTests-jni-defaults"],
|
||||||
|
srcs: ["java/SmokeTest.java"],
|
||||||
|
test_suites: ["device-tests"],
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user