2 Summary: Security repository for holding tests.
5 Group: Security/Testing
6 License: Apache License, Version 2.0
8 Source0: %{name}-%{version}.tar.gz
9 Source1: %{name}.manifest
11 BuildRequires: libattr-devel
12 BuildRequires: pkgconfig(libcap)
13 BuildRequires: pkgconfig(libsmack)
14 BuildRequires: pkgconfig(libprivilege-control)
15 BuildRequires: pkgconfig(security-server)
16 BuildRequires: pkgconfig(security-manager)
17 BuildRequires: pkgconfig(key-manager)
18 BuildRequires: pkgconfig(dlog)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: pkgconfig(dbus-1)
21 BuildRequires: pkgconfig(libpcrecpp)
22 BuildRequires: pkgconfig(libxml-2.0)
23 BuildRequires: pkgconfig(libiri)
24 BuildRequires: pkgconfig(sqlite3)
25 BuildRequires: cynara-devel
26 BuildRequires: pkgconfig(libtzplatform-config)
27 BuildRequires: boost-devel
28 BuildRequires: pkgconfig(vconf)
29 BuildRequires: pkgconfig(libgum) >= 1.0.5
32 Requires: key-manager-listener
35 Security tests repository - for tests that can't be kept together with code.
42 export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib"
44 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
46 -DVERSION=%{version} \
47 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:DEBUG} \
48 %if "%{sec_product_feature_security_mdfpp_enable}" == "1"
49 -DSECURITY_MDFPP_STATE_ENABLE=1 \
51 -DCMAKE_VERBOSE_MAKEFILE=ON \
52 -DCYNARA_DB_DIR=%{_localstatedir}/cynara/db
57 ln -sf /etc/smack/test_smack_rules %{buildroot}/etc/smack/test_smack_rules_lnk
60 find /etc/smack/test_privilege_control_DIR/ -type f -name exec -exec chmod 0755 {} +
62 # Load permissions templates
63 api_feature_loader --verbose
65 # Set vconf key for cc-mode testing if vconf key isn't there.
66 %if "%{sec_product_feature_security_mdfpp_enable}" != "1"
67 echo "Install vconf key (file/security_mdpp/security_mdpp_state) for testing key-manager"
68 vconftool set -t string file/security_mdpp/security_mdpp_state "Unset"
71 echo "security-tests postinst done ..."
74 %manifest %{name}.manifest
75 %defattr(-, root, root, -)
76 /usr/bin/security-tests.sh
77 /usr/bin/security-tests-all.sh
78 /usr/bin/test-performance-check.sh
80 /etc/dbus-1/system.d/security-tests.conf
82 /usr/bin/libsmack-test
83 /usr/bin/smack-dbus-tests
84 /usr/bin/libprivilege-control-test
85 /usr/bin/security-server-tests-client-smack
86 /usr/bin/security-server-tests-server
87 /usr/bin/security-server-tests-password
88 /usr/bin/security-server-tests-privilege
89 /usr/bin/security-server-tests-stress
90 /etc/smack/test_smack_rules_full
91 /etc/smack/test_smack_rules2
92 /etc/smack/test_smack_rules3
93 /etc/smack/test_smack_rules4
94 /usr/bin/security-server-tests-mt
95 /usr/bin/security-server-tests-api-speed
96 /usr/bin/security-manager-tests
97 /etc/smack/test_smack_rules
98 /etc/smack/test_smack_rules_lnk
99 /usr/share/privilege-control/*
100 /etc/smack/test_privilege_control_DIR/*
102 /usr/bin/test-app-efl
103 /usr/bin/test-app-osp
104 /usr/bin/test-app-wgt
107 /usr/share/ckm-test/*
109 /usr/lib/security-tests/cynara-tests/plugins/single-policy/*
110 /usr/lib/security-tests/cynara-tests/plugins/multiple-policy/*
111 /usr/lib/security-tests/cynara-tests/plugins/test-agent/*
112 /usr/bin/security-tests-inner-test