Add test resource download instruction 15/253415/1
authorKwang Son <k.son@samsung.com>
Wed, 10 Feb 2021 02:02:58 +0000 (11:02 +0900)
committerKwang Son <k.son@samsung.com>
Wed, 10 Feb 2021 02:02:58 +0000 (11:02 +0900)
Change-Id: Ib16d40e224508a4b1f5385fba34cdace556e8a17
Signed-off-by: Kwang Son <k.son@samsung.com>
script/build.sh

index 397d134..79d9c14 100755 (executable)
@@ -63,6 +63,14 @@ cmd_test_setup() {
 
   sdb $SDB_OPTIONS shell mkdir -p /tmp/mvtest/
 
+  # check [test/tct/native/api.git] /src/utc/capi-media-vision/res/ is on target
+  res_exist=$(sdb $SDB_OPTIONS shell '[ -d "/tmp/mvtest/res" ] && echo 1')
+  if [ -z $res_exist ]; then
+    echo 'download https://review.tizen.org/gerrit/gitweb?p=test/tct/native/api.git;a=snapshot;h=1c301c79f082ac7a43f7f0791bbac609b1c34eb3;sf=tgz'
+    echo 'and copy to /tmp/mvtest/res on target'
+    sdb $SDB_OPTIONS shell mkdir -p /tmp/mvtest/res
+  fi
+
   # check libcheck is installed
   n_libcheck=$(sdb $SDB_OPTIONS shell ldconfig -p | grep libcheck | wc -l)
   if [ $n_libcheck -eq 0 ]; then