1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: tools-testing
Summary: Utilities for Tools tester Jenkins worker
Version: 1.36.1
Release: 1
Group: Development/Tools/Other
License: GPL2
BuildArch: noarch
URL: https://review.tizendev.org/gerrit/
Source0: %{name}-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: python-devel python-setuptools
Requires: coreutils sudo git-core make osc kvm util-linux sysvinit-tools tar python-Jinja2 python-setuptools socat buffer
Recommends: numactl
%if 0%{?suse_version} > 1220
BuildRequires: shadow
Requires: gptfdisk
%endif
%description
Utilities to be run on Tools Tester Jenkins worker host, to prepare and start VM tester sessions
%package mgmt
Summary: Management scripts for jenkins-worker images
Group: Development/Tools/Other
Requires: tools-testing
%description mgmt
Management scripts for tools-testing package, to deploy
images in various ways, and to run hda seed image update.
%package settings-tizenorg
Summary: Tools tester jenkins-worker settings in tizen.org env
Group: Development/Tools/Other
Requires: tools-testing
%description settings-tizenorg
Settings for tools-testing package,
describing repositories for tester VMs.
%prep
%setup -q -n %{name}-%{version}
%build
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%post
if [ ! "$(getent passwd jenkins)" ]; then
useradd -m -d /var/lib/jenkins -u 777 -g users -s /bin/sh -c "Jenkins user account" jenkins
fi
if [ "$(getent group kvm)" ]; then
usermod -G kvm jenkins
fi
###############################################
%files
%defattr(-,root,root,-)
%{_bindir}/build-package
%{_bindir}/install_package
%{_bindir}/kvm-worker.sh
%{_bindir}/tools-testing-delete-merged-jobs.sh
%{_bindir}/tools-testing-run-test.sh
%{_bindir}/tools-testing-what-release.sh
%{_bindir}/pre-deployment-test-worker.sh
%{_bindir}/run_tests
%{_bindir}/run-itest-kvm.sh
%{_bindir}/run-install-upgrade-test.sh
%{_bindir}/safeosc
%{_bindir}/trigger_itest_verify.py
%{python_sitelib}/pre_deployment_test/
%{python_sitelib}/pre_deployment_test-*-py*.egg-info
%dir /etc/sudoers.d
%config /etc/sudoers.d/jenkins
%dir /var/lib/jenkins/
/var/lib/jenkins/coverage.xml-fake
/var/lib/jenkins/nosetests.xml-fake
###############################################
%files mgmt
%defattr(-,root,root,-)
%{_bindir}/tools-testing-update-seed-images.sh
%{_bindir}/deploy-*.sh
%dir /etc/jenkins-worker
%config /etc/jenkins-worker/workers.env
###############################################
%files settings-tizenorg
%defattr(-,root,root,-)
%dir /etc/tools-tester.d
%config /etc/tools-tester.d/base-repos-tizenorg.conf
%config /etc/tools-tester.d/servers-tizenorg.conf
|