xref: /aosp_15_r20/kernel/tests/net/test/ping6_test.sh (revision 2f2c4c7ab4226c71756b9c31670392fdd6887c4f)
1*2f2c4c7aSAndroid Build Coastguard Worker#!/bin/bash
2*2f2c4c7aSAndroid Build Coastguard Worker
3*2f2c4c7aSAndroid Build Coastguard Worker# Minimal network initialization.
4*2f2c4c7aSAndroid Build Coastguard Workerip link set eth0 up
5*2f2c4c7aSAndroid Build Coastguard Worker
6*2f2c4c7aSAndroid Build Coastguard Worker# Wait for autoconf and DAD to complete.
7*2f2c4c7aSAndroid Build Coastguard Workersleep 3 &
8*2f2c4c7aSAndroid Build Coastguard Worker
9*2f2c4c7aSAndroid Build Coastguard Worker# Block on starting DHCPv4.
10*2f2c4c7aSAndroid Build Coastguard Workerudhcpc -i eth0
11*2f2c4c7aSAndroid Build Coastguard Worker
12*2f2c4c7aSAndroid Build Coastguard Worker# If DHCPv4 took less than 3 seconds, keep waiting.
13*2f2c4c7aSAndroid Build Coastguard Workerwait
14*2f2c4c7aSAndroid Build Coastguard Worker
15*2f2c4c7aSAndroid Build Coastguard Worker# Run the test.
16*2f2c4c7aSAndroid Build Coastguard Worker$(dirname $0)/ping6_test.py
17