summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-11-28 02:15:47 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2014-11-28 02:15:47 +0800
commit60d94fb59f143106dabcb92ca3d7bac0c76d07e7 (patch)
treeef88a80fe38c79a20b89c17ee7e2d0a17720e89c
parent5bf2a78c9ca02ab3fb604c9b7b504f4c9b8f8a71 (diff)
add test for ndc
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--android/ndc-test.yaml6
-rwxr-xr-xandroid/scripts/ndc_test.sh5
2 files changed, 7 insertions, 4 deletions
diff --git a/android/ndc-test.yaml b/android/ndc-test.yaml
index f23b11d..c98c0e4 100644
--- a/android/ndc-test.yaml
+++ b/android/ndc-test.yaml
@@ -16,7 +16,5 @@ params:
run:
steps:
- - logcat -d
- - logcat -c
- - /system/bin/dhcpcd -dABKL eth0
- - sleep 3600
+ - ./android/scripts/ndc_test.sh
+ - logcat
diff --git a/android/scripts/ndc_test.sh b/android/scripts/ndc_test.sh
new file mode 100755
index 0000000..a89e853
--- /dev/null
+++ b/android/scripts/ndc_test.sh
@@ -0,0 +1,5 @@
+#!/system/bin/sh
+
+/system/bin/dhcpcd -dABKL eth0
+/system/bin/ndc network default set eth0
+/system/bin/ndc resolver setnetdns eth0 "" 8.8.8.8