Commit graph android_packages_modules_Co.../tests/native/connectivity_native_test
Message SHA1
KernelUtils.h: isAtLeastKernelVersion(x,y,z) - default 'z' to 0
This seems to be the most common usecase.

Test: TreeHugger
Flag: EXEMPT PURE_REFACTOR
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I2de4d067b2f20680539cbddb31555864bcf957b1

Maciej Żenczykowski   commited 2025-09-12 10:14:12 -07:00
ee24054e2b
Remove unused libprocessgroup dependency
Test: mmma packages/modules/Connectivity/
Change-Id: Ie4b2ee5834617a126c30322a76b905bf21cab949

T.J. Mercier   commited 2025-01-17 11:20:39 -08:00
b42fdfc285
Fix dependencies on connectivity_native lib
Address the TODO to link against the library directly, and add necessary
test filters to only run the test on the primary ABI (because the
library in the apex has only one variant for primary ABI), and to only
run the test on U+.

Bug: 356022894
Test: atest
Change-Id: Ib52bfc1051059aaf9d14d1f7707864206d0bdcd9

Remi NGUYEN VAN   commited 2024-07-31 00:39:50 +00:00
fba7850552
Use compile_multilib: "both" for MTS
Ensure MTS modules are compiled with both 32 and 64 bit ABI, as MTS
attempts to run both.

Recent changes have started failing tests when one of the ABI is
missing, see change ID: I5310ca67879534cb066dcedf6a9102a39e085faf

Test: atest bpf_existence_test -- --abi armeabi-v7a
Fixes: 352592958
Fixes: 354070942
Change-Id: Iea494323ccc12710bff6d488f2b51b13255d841e

Remi NGUYEN VAN   commited 2024-07-19 19:26:15 +09:00
e93822153f
Build mainline tests with static libc++ and version script
Bug: 341216801
Test: bpf_existence_test connectivity_native_test
Change-Id: Ib1ad48902472fcf2fbfad3012426f9fd6a5102f6

Ryan Prichard   commited 2024-05-20 17:00:24 -07:00
3ae062d8d6
[DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5
Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5

Aditya Choudhary   commited 2024-01-31 12:34:50 +00:00
01b5ede2b2
connectivity_native_test: fix skip message typo
(and adjust indents to be saner)

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I2e52131fa51782dc89ddbfda4c9239a142376c56

Maciej Żenczykowski   commited 2024-01-18 18:53:32 +00:00
254b52c0eb
Move OWNER reference master=>main.
BUG=b/291759353

Change-Id: Iad1bae21b54ae1ed192960da9fd8b831709a2f87

Sam Saccone   commited 2023-07-18 17:12:49 +00:00
fbfe27b641
Set test component in common OWNERS
Move the test component configuration from subdirectories
to the common OWNERS file. This ensures that all test directories
like unit/ that did not have the component set are covered.

Bug: 288137916
Change-Id: I48fbe846309cace41588c5ff3dfd46e878c38576
Test: TH

Remi NGUYEN VAN   commited 2023-06-21 02:54:13 +00:00
64020abf11
wire bpf_base_test into netd_updatable_unit_test
The 3 pre-existing //system/netd tests are:
  TEST_F(BpfBasicTest, TestCgroupMounted)
  TEST_F(BpfBasicTest, TestTagSocket)
  TEST_F(BpfBasicTest, TestCloseSocketWithoutUntag)
which are directly related to BpfHandler.cpp implementation,
as it implements:
  Status BpfHandler::init(const char* cg2_path)
  BpfHandler::tagSocket()
  BpfHandler::untagSocket()

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1c01ae90904faaea54b427495c7a5deab8b1b900

Maciej Żenczykowski   commited 2022-12-20 00:41:05 +00:00
70d30ec49d
remove TestTrafficControllerSetUp & TestSocketFilterSetUp
This is (as yet) dead code copied over from //system/netd,
but not yet plumbed into any p/m/C Android.bp file/test.

Update the bpf_shared.h include to netd.h now that that has been
renamed, see:
  https://android-review.git.corp.google.com/c/platform/packages/modules/Connectivity/+/2335387

MTS test bpf_existence_test.cpp already does a better job
of testing for bpf program/map existence, see
  MAINLINE_FOR_T_PLUS
  MAINLINE_FOR_T_4_14_PLUS

Test: N/A, this file is not yet compiled
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I2ccfd86e352118f6f76e91ec20e10a9285414490

Maciej Żenczykowski   commited 2022-12-18 20:30:32 +00:00
3b67343ddb
copy in bpf_base_test.cpp from system/netd
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1bf320f838c7cc203dd72bc5b48aee92288bbb81

Maciej Żenczykowski   commited 2022-12-15 22:16:09 +00:00
438e4a8526
Add libconnectivity_native
The library provides an interface to interface with the
ConnectivityNative service, and implement port blocking APIs.

Bug: 179733303
Test: atest connectivity_native_test
Change-Id: Iad1c84b5eeab835aca14a2db72a900e099aa3c1c

Remi NGUYEN VAN   authored and   Tyler Wear   commited 2022-11-03 21:01:26 -07:00
fb70eba6bf
Move connectivity_native_test to a sub folder
Move sources of connectivity_native_test to a dedicated folder so that
other native tests or utilities can be added to p/m/c/tests/native/ as
well.

Bug: 227159929
Test: atest connectivity_native_test
Change-Id: I97217fbb03b26ed79f1f34932b92c4227a1ece4d

Ken Chen   commited 2022-07-28 14:41:23 +08:00
ef50ab1473