diff options
author | harigopal-gollamudi <harigopal.gollamudi@linaro.org> | 2014-02-28 13:59:08 +0530 |
---|---|---|
committer | harigopal-gollamudi <harigopal.gollamudi@linaro.org> | 2014-02-28 13:59:08 +0530 |
commit | bd66b6fb6d922c70a2cc8f71ef5b77d5a0de8d9e (patch) | |
tree | 23167582b5f4379ca3ea00cb799f0f5090ae6ebc | |
parent | f1afa5fef06c27db59c9991b39cc8ec30d161cc4 (diff) |
Parsing string is updated & path for media files is changed
-rw-r--r-- | android/mmtest.yaml | 2 | ||||
-rwxr-xr-x | android/scripts/mmtest.sh | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/android/mmtest.yaml b/android/mmtest.yaml index 31e5007..5f71b13 100644 --- a/android/mmtest.yaml +++ b/android/mmtest.yaml @@ -20,4 +20,4 @@ run: - "./android/scripts/mmtest.sh" parse: - pattern: "^(?P<test_case_id>\\w+)\\s+\\w+\\s+\\w+\\s+(?P<result>\\w+)\\s*$" + pattern: "^\\s*(?P<test_case_id>test\\w+)\\s+(?P<result>\w\+)\\s*$" diff --git a/android/scripts/mmtest.sh b/android/scripts/mmtest.sh index 6a1f999..5398358 100755 --- a/android/scripts/mmtest.sh +++ b/android/scripts/mmtest.sh @@ -33,7 +33,7 @@ setprop net.dns1 8.8.8.8 echo "Content downloading" -cd /mnt/sdcard/ +cd /mnt/media_rw/sdcard0 mkdir media_api cd media_api @@ -89,13 +89,13 @@ wget http://samplemedia.linaro.org/Mmtest/media_api/videoeditor/H264_BP_640x480_ wget http://samplemedia.linaro.org/Mmtest/media_api/videoeditor/H264_BP_640x480_15fps_384kbps_60_0.mp4 -if [ -f /mnt/sdcard/media_api/music/test_amr_ietf.amr ] +if [ -f /mnt/media_rw/sdcard0/media_api/music/test_amr_ietf.amr ] then echo "file is downloaded" fi logcat -c -am instrument -r -e targetDir /sdcard/media_api/music -w com.android.mediaframeworktest/.MediaFrameworkTestRunner > stdout.log +am instrument -r -e targetDir /storage/sdcard0/media_api/music -w com.android.mediaframeworktest/.MediaFrameworkTestRunner > stdout.log -grep -A 1 "INSTRUMENTATION_STATUS: test=" stdout.log | egrep "INSTRUMENTATION_STATUS: test=|INSTRUMENTATION_STATUS_CODE:" |cut -d'=' -f 2 |cut -d ':' -f 2 |xargs -n 4 |sed -e 's/0/pass/g' -e 's/-1/fail/g' -e 's/-2/fail/g' +egrep "INSTRUMENTATION_STATUS: test=|INSTRUMENTATION_STATUS_CODE:" stdout.log |cut -d'=' -f 2 |cut -d ':' -f 2 |xargs -n 4 |sed -e 's/0/pass/g' -e 's/-1/fail/g' -e 's/-2/fail/g' | awk '{$1=""; print $3" "$4}' |