You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test case validates the basic functionality of the Ethernet interface (`eth0`) on the device. It checks for:
8
+
This test case validates Ethernet connectivity on the target device using the qcom-linux-testkit framework.
9
+
10
+
Unlike the older `eth0`-only flow, the current test:
11
+
12
+
-**Auto-detects all Ethernet interfaces** (e.g., `end0`, `eth0`, `enpXsY`, USB dongles, etc.)
13
+
- Uses a **fast-path** when the interface already has:
14
+
- Link **UP**, and
15
+
- A **valid non-link-local IPv4**
16
+
- Brings the link up using **robust link bring-up fallback** (`ethEnsureLinkUpWithFallback`) to handle ports that may be locked to specific speeds
17
+
- Handles IP acquisition in a **manager-aware** way:
18
+
- If **NetworkManager** or **systemd-networkd** is active, it **waits for IP** and does **not** run DHCP client
19
+
- If no manager is active, it uses `try_dhcp_client_safe` for DHCP (with safety checks)
20
+
- Validates connectivity via ping (default: `8.8.8.8`) with retries
21
+
- Produces both:
22
+
-`Ethernet.res` (PASS/FAIL/SKIP)
23
+
-`Ethernet.summary` (per-interface summary)
24
+
25
+
## What this test validates
26
+
27
+
For each auto-detected Ethernet interface:
9
28
10
29
- Interface presence
11
-
- Interface status (UP/DOWN)
12
-
- Basic connectivity via ping to `8.8.8.8`
30
+
- Link status (carrier / Link detected)
31
+
- Link bring-up (with fallback)
32
+
- IPv4 address availability (non-link-local)
33
+
- L3 connectivity using ping to the configured target
13
34
14
35
## Usage
15
36
16
-
Instructions:
37
+
### Quick Example
17
38
18
-
1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to any directory on the target device.
19
-
2. Verify Transfer: Ensure that the repo have been successfully copied to any directory on the target device.
20
-
3. Run Scripts: Navigate to the directory where these files are copied on the target device and execute the scripts as needed.
21
-
22
-
Run a Connectivity Ethernet test using:
23
-
---
24
-
#### Quick Example
25
-
```
39
+
```sh
26
40
git clone <this-repo>
27
41
cd<this-repo>
28
42
scp -r common Runner user@target_device_ip:<Path in device>
29
43
ssh user@target_device_ip
30
44
cd<Path in device>/Runner && ./run-test.sh Ethernet
0 commit comments