Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
BuildRequires: cmake
+BuildRequires: libattr-devel
+BuildRequires: pkgconfig(libcap)
BuildRequires: pkgconfig(libsmack)
BuildRequires: pkgconfig(libprivilege-control)
BuildRequires: pkgconfig(security-server)
BuildRequires: pkgconfig(security-manager)
-BuildRequires: pkgconfig(dpl-test-efl)
+BuildRequires: pkgconfig(key-manager)
BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dbus-1)
-BuildRequires: pkgconfig(dbus-glib-1)
+BuildRequires: pkgconfig(libpcrecpp)
+BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libiri)
BuildRequires: pkgconfig(sqlite3)
-Requires: smack
-Requires: libprivilege-control
+BuildRequires: cynara-devel
+BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: boost-devel
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(libgum) >= 1.0.5
+Requires: perf
+Requires: gdb
+Requires: key-manager-listener
%description
Security tests repository - for tests that can't be kept together with code.
-DDPL_LOG="ON" \
-DVERSION=%{version} \
-DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:DEBUG} \
- -DCMAKE_VERBOSE_MAKEFILE=ON
+%if "%{sec_product_feature_security_mdfpp_enable}" == "1"
+ -DSECURITY_MDFPP_STATE_ENABLE=1 \
+%endif
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCYNARA_DB_DIR=%{_localstatedir}/cynara/db
make %{?jobs:-j%jobs}
%install
%post
find /etc/smack/test_privilege_control_DIR/ -type f -name exec -exec chmod 0755 {} +
+find /usr/apps/ -type f -name exec -exec chmod 0755 {} +
# Load permissions templates
api_feature_loader --verbose
-wrt-installer --install /usr/bin/TestMisiuPysiu123.wgt
-osp-installer -i /usr/bin/uqNfgEjqc7-1.0.0-arm.tpk
+# Set vconf key for cc-mode testing if vconf key isn't there.
+%if "%{sec_product_feature_security_mdfpp_enable}" != "1"
+ echo "Install vconf key (file/security_mdpp/security_mdpp_state) for testing key-manager"
+ vconftool set -t string file/security_mdpp/security_mdpp_state "Unset"
+%endif
echo "security-tests postinst done ..."
-%postun
-wrt-installer --uninstall-name QwCqJ0ttyS
-osp-installer -u uqNfgEjqc7
-
%files
%manifest %{name}.manifest
%defattr(-, root, root, -)
/usr/bin/security-tests.sh
/usr/bin/security-tests-all.sh
-/usr/bin/tests-summary.sh
/usr/bin/test-performance-check.sh
-/usr/bin/perf
/etc/dbus-1/system.d/security-tests.conf
/usr/bin/libsmack-test
+/usr/bin/smack-dbus-tests
/usr/bin/libprivilege-control-test
/usr/bin/security-server-tests-client-smack
/usr/bin/security-server-tests-server
/usr/bin/security-server-tests-password
/usr/bin/security-server-tests-privilege
/usr/bin/security-server-tests-stress
-/usr/bin/security-server-tests-dbus
/etc/smack/test_smack_rules_full
/etc/smack/test_smack_rules2
/etc/smack/test_smack_rules3
/etc/smack/test_smack_rules_lnk
/usr/share/privilege-control/*
/etc/smack/test_privilege_control_DIR/*
-/usr/bin/TestMisiuPysiu123.wgt
-/usr/bin/uqNfgEjqc7-1.0.0-arm.tpk
-/usr/bin/hello-tizen
-
+/usr/apps/*
+/usr/bin/test-app-efl
+/usr/bin/test-app-osp
+/usr/bin/test-app-wgt
+/usr/bin/cynara-test
+/usr/bin/ckm-tests
+/usr/share/ckm-test/*
+/etc/security-tests
+/usr/lib/security-tests/cynara-tests/plugins/single-policy/*
+/usr/lib/security-tests/cynara-tests/plugins/multiple-policy/*
+/usr/lib/security-tests/cynara-tests/plugins/test-agent/*
+/usr/bin/security-tests-inner-test