Add test case of multi mic run at the same time
authoryuhuan.yang <yuhuan.yang@samsung.com>
Wed, 10 Jan 2018 05:46:20 +0000 (13:46 +0800)
committeryuhuan.yang <yuhuan.yang@samsung.com>
Fri, 26 Jan 2018 06:22:23 +0000 (14:22 +0800)
cases/create/func_cases/mic_cr_auto_loop_multi_mic_run.case [new file with mode: 0644]

diff --git a/cases/create/func_cases/mic_cr_auto_loop_multi_mic_run.case b/cases/create/func_cases/mic_cr_auto_loop_multi_mic_run.case
new file mode 100644 (file)
index 0000000..9e7d9ee
--- /dev/null
@@ -0,0 +1,25 @@
+<testcase>
+  <summary>test 'mic cr auto ks' for loop type and do more mic commands the same time
+  </summary>
+  <fixtures>
+    <copy src="ks_files/handset_blackbay.ks" />
+  </fixtures>
+  <steps><![CDATA[
+losetup_path=$(sudo which losetup)
+sudo $losetup_path -a
+sudo $losetup_path -a | wc -l | xargs test 0 -eq
+sudo mic -d -v cr auto handset_blackbay.ks --logfile=log1.file
+sudo mic -d -v cr auto handset_blackbay.ks --logfile=log2.file --cachedir=/var/tmp/mic/cache2 -o my-mic-output
+grep "Finished" log1.file
+grep "Finished" log2.file
+sudo $losetup_path -a
+sudo $losetup_path -a | wc -l | xargs test 0 -eq
+ls mic-output/ | grep 'handset_blackbay-.*-rs.zip'
+ls my-mic-output/ | grep 'handset_blackbay-.*-rs.zip'
+]]></steps>
+  <teardown><![CDATA[
+echo "cleaning..."
+test -d ./mic-output && sudo rm -rf mic-output
+test -d ./my-mic-output && sudo rm -rf my-mic-output
+]]></teardown>
+</testcase>