[unittest] install unittest dependent files
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 15 Sep 2020 05:53:31 +0000 (14:53 +0900)
committerjijoong.moon <jijoong.moon@samsung.com>
Wed, 23 Sep 2020 08:22:34 +0000 (17:22 +0900)
Install missing unittest dependent files when installing the unittest

**Self evaluation:**
1. Build test: [x]Passed [ ]Failed [ ]Skipped
2. Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
test/tizen_capi/meson.build
test/unittest/meson.build

index 018a054..ecc1078 100644 (file)
@@ -19,3 +19,7 @@ foreach test_name : unittest_name_list
 
   test(unittest_name, exec)
 endforeach
+
+if (get_option('enable-test'))
+  install_data('test_conf.ini', install_dir: application_install_dir)
+endif
index ffb91dc..728367d 100644 (file)
@@ -29,8 +29,8 @@ foreach target: test_target
     target,
     target + '.cpp',
     dependencies: unittest_nntrainer_deps,
-    install_dir: application_install_dir,
-    install: get_option('enable-test')
+    install: get_option('enable-test'),
+    install_dir: application_install_dir
   )
   test(target, exe)
 endforeach