nnfw-test dir contains bin/lib directory (#1004)
author이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 2 May 2018 08:29:26 +0000 (17:29 +0900)
committer서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 <sangmin7.seo@samsung.com>
Wed, 2 May 2018 08:29:26 +0000 (17:29 +0900)
Now, nnfw-test.rpm contains subdirectories(tests, tools, and Product) which is the same structure as
test-suite.tar.gz file

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
packaging/nnfw.spec

index c6b63a8..9000603 100644 (file)
@@ -56,12 +56,17 @@ cp %{SOURCE1} .
 OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} TARGET_OS=tizen make %{?jobs:-j%jobs}
 
 %install
-OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} TARGET_OS=tizen make install
-mkdir -p %{buildroot}%{test_install_prefix}
-mv %{buildroot}%{install_prefix}/unittest %{buildroot}%{test_install_prefix}
-# install tests
+OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} HOST_OS=tizen make install
+
+# nnfw-test rpm(like test-suite on cross build)
+## install Product
+mkdir -p %{buildroot}%{test_install_prefix}/Product/out
+mv %{buildroot}%{install_prefix}/unittest %{buildroot}%{test_install_prefix}/Product/out
+mv %{buildroot}%{install_prefix}/bin %{buildroot}%{test_install_prefix}/Product/out
+mv %{buildroot}%{install_prefix}/lib %{buildroot}%{test_install_prefix}/Product/out
+## install tests
 cp -rf ./tests %{buildroot}%{test_install_prefix}/.
-# install tools
+## install tools
 mkdir -p %{buildroot}%{test_install_prefix}/tools
 cp -rf ./tools/test_driver %{buildroot}%{test_install_prefix}/tools
 
@@ -72,7 +77,7 @@ cp -rf ./tools/test_driver %{buildroot}%{test_install_prefix}/tools
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{install_prefix}/lib/*
-%{install_prefix}/bin/*
+%exclude %{install_prefix}/bin/*
 %exclude %{install_prefix}/unittest/*
 
 %files test