Create one script for the middleware auto test

BZ: 89042

The script makes sense at testing whether the new feature was enabled
correctly.

Change-Id: Ifa8c54985fabaa7d49d85814682815a3e39b86a2
Signed-off-by: jiguoliang <guoliang.ji@intel.com>
Reviewed-on: http://android.intel.com:8080/93532
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/test/encoder.sh b/test/encoder.sh
new file mode 100755
index 0000000..7e88a3b
--- /dev/null
+++ b/test/encoder.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#simulate Video capture use cases, default codec:H264, default rate control: CBR 
+adb shell mix_encoder -w 1920 -h 1080 -f /data/record_1080P.264 
+adb shell mix_encoder -w 1280 -h 720 -f /data/record_720P.264
+adb shell mix_encoder -w 720 -h 480 -f /data/record_480P.264
+
+#simulate Video edit use cases
+adb shell mix_encoder -w 1920 -h 1080  -m 1 -f /data/videoedit_1080P.264
+adb shell mix_encoder -w 1280 -h 720 -m 1 -f /data/videoedit_720P.264
+adb shell mix_encoder -w 720 -h 480 -m 1 -f /data/videoedit_480P.264
+
+#simulate WIDI use cases
+adb shell mix_encoder -w 1920 -h 1080  -m 2 -f /data/widi_1080P.264
+adb shell mix_encoder -w 1280 -h 720 -m 2 -f /data/widi_720P.264
+adb shell mix_encoder -w 720 -h 480 -m 2 -f /data/widi_480P.264
+
+for i in record videoedit widi
+do
+    for j in 1080P 720P 480P
+    do
+        TEMP_NAME=${i}_$j.264
+        echo $TEMP_NAME
+        adb pull /data/$TEMP_NAME .
+   done
+done