setup and teardown for line coverage
authorKwanghoon Son <k.son@samsung.com>
Wed, 23 Nov 2022 03:03:13 +0000 (22:03 -0500)
committerKwanghoon Son <k.son@samsung.com>
Wed, 14 Dec 2022 06:33:18 +0000 (15:33 +0900)
[Issue type] New
[Version] 0.26.1

Script will install resources for test and delete.

Change-Id: Ica9b7f0c9522863b3cc04f558b24c21dda0fbcae
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
packaging/capi-media-vision.spec

index 15a0eb4..1d6cfa2 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.26.0
+Version:     0.26.1
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause
@@ -297,6 +297,9 @@ cat << EOF > run-unittest.sh
 #!/bin/bash
 setup() {
     echo "setup start"
+    pushd /opt/media/USBDriveA1/mv_test
+    ./install.sh
+    popd
 }
 
 test_main() {
@@ -306,6 +309,7 @@ test_main() {
 
 teardown() {
     echo "teardown start"
+    rm -rf /usr/share/capi-media-vision/res
 }
 
 main() {