diff --git a/netd/Android.bp b/netd/Android.bp index 5ac02d3810..c731b8bad4 100644 --- a/netd/Android.bp +++ b/netd/Android.bp @@ -55,7 +55,8 @@ cc_library { cc_test { name: "netd_updatable_unit_test", defaults: ["netd_defaults"], - test_suites: ["general-tests"], + test_suites: ["general-tests", "mts-tethering"], + test_config_template: ":net_native_test_config_template", require_root: true, // required by setrlimitForTest() header_libs: [ "bpf_connectivity_headers", @@ -72,6 +73,7 @@ cc_test { "liblog", "libnetdutils", ], + compile_multilib: "both", multilib: { lib32: { suffix: "32", diff --git a/service-t/native/libs/libnetworkstats/Android.bp b/service-t/native/libs/libnetworkstats/Android.bp index bf56fd5609..5b3d314962 100644 --- a/service-t/native/libs/libnetworkstats/Android.bp +++ b/service-t/native/libs/libnetworkstats/Android.bp @@ -48,7 +48,8 @@ cc_library { cc_test { name: "libnetworkstats_test", - test_suites: ["general-tests"], + test_suites: ["general-tests", "mts-tethering"], + test_config_template: ":net_native_test_config_template", require_root: true, // required by setrlimitForTest() header_libs: ["bpf_connectivity_headers"], srcs: [ @@ -68,4 +69,13 @@ cc_test { "libbase", "liblog", ], + compile_multilib: "both", + multilib: { + lib32: { + suffix: "32", + }, + lib64: { + suffix: "64", + }, + }, } diff --git a/service/native/Android.bp b/service/native/Android.bp index cb26bc3c1c..697fcbd898 100644 --- a/service/native/Android.bp +++ b/service/native/Android.bp @@ -52,7 +52,8 @@ cc_library { cc_test { name: "traffic_controller_unit_test", - test_suites: ["general-tests"], + test_suites: ["general-tests", "mts-tethering"], + test_config_template: ":net_native_test_config_template", require_root: true, local_include_dirs: ["include"], header_libs: [ @@ -71,4 +72,13 @@ cc_test { "libnetd_updatable", "netd_aidl_interface-lateststable-ndk", ], + compile_multilib: "both", + multilib: { + lib32: { + suffix: "32", + }, + lib64: { + suffix: "64", + }, + }, } diff --git a/tests/native/Android.bp b/tests/native/Android.bp index a8d908aa10..7d43aa8f4b 100644 --- a/tests/native/Android.bp +++ b/tests/native/Android.bp @@ -31,3 +31,10 @@ cc_test { ], compile_multilib: "first", } + +filegroup { + name: "net_native_test_config_template", + srcs: [ + "NetNativeTestConfigTemplate.xml", + ], +} diff --git a/tests/native/NetNativeTestConfigTemplate.xml b/tests/native/NetNativeTestConfigTemplate.xml new file mode 100644 index 0000000000..b71e9aa34c --- /dev/null +++ b/tests/native/NetNativeTestConfigTemplate.xml @@ -0,0 +1,31 @@ + + +