yandex-tank/data/yandex-tank.spec
Andrew Grigorev e80da71693 Replace lxml with xml from standard lib, fix #132
The lxml library is used there only for config file parsing, it is real overhead
to install optimized C library for that.
2015-02-12 23:11:25 +03:00

69 lines
2.2 KiB
RPMSpec

Name: yandex-tank
Version: 1.5.0
Release: 1%{?dist}
Summary: Yandex.Tank (Load Testing Tool)
License: MIT
URL: https://github.com/yandex-load/yandex-tank
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: python-psutil
Requires: python-ipaddr
%description
Yandex.Tank is an extendable open source load testing tool for advanced linux users which is especially good as a part of automated load testing suit.
%prep
%setup -q
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_sysconfdir}/yandex-tank/
mkdir -p %{buildroot}/%{_sysconfdir}/bash_completion.d/
mkdir -p %{buildroot}/%{_libdir}/yandex-tank/
cp -ap 00-base.ini %{buildroot}/%{_sysconfdir}/yandex-tank/
cp -ap yandex-tank.completion %{buildroot}/%{_sysconfdir}/bash_completion.d/
cp -arp Tank %{buildroot}/%{_libdir}/yandex-tank/
cp -ap tankcore.py %{buildroot}/%{_libdir}/yandex-tank/
cp -ap tank.py %{buildroot}/%{_libdir}/yandex-tank/
cp -ap *.sh %{buildroot}/%{_libdir}/yandex-tank/
ln -s %{_libdir}/yandex-tank/lunapark %{buildroot}/%{_bindir}/lunapark
ln -s %{_libdir}/yandex-tank/tank.py %{buildroot}/%{_bindir}/yandex-tank
ln -s %{_libdir}/yandex-tank/ab.sh %{buildroot}/%{_bindir}/yandex-tank-ab
ln -s %{_libdir}/yandex-tank/jmeter.sh %{buildroot}/%{_bindir}/yandex-tank-jmeter
ln -s %{_libdir}/yandex-tank/bfg.sh %{buildroot}/%{_bindir}/yandex-tank-bfg
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sysconfdir}/yandex-tank
%{_sysconfdir}/bash_completion.d/yandex-tank.completion
%{_bindir}/lunapark
%{_bindir}/yandex-tank
%{_bindir}/yandex-tank-ab
%{_bindir}/yandex-tank-jmeter
%{_bindir}/yandex-tank-bfg
%{_libdir}/yandex-tank
%changelog
* Wed Mar 19 2014 Andrey Pohilko (undera) <undera@yandex-team.ru> - 1.5.0
- Static HTML report with Highcharts graphs: tank metrics and monitoring
- Highcharts template for Graphite reports
- Better hostname resolve method
- Bugfixes
- collect 'cached' mem by default
- fix collecting disk activity on lxc containers
- add steady_cumulative autostop criteria
- don't fail test on agent shutdown problems
- fix rcheck on remote fs