Sisyphus repositório
Última atualização: 15 maio 2021 | SRPMs: 17575 | Visitas: 20956274
en ru br
ALT Linux repositórios
S:20210121-alt2
4.1: 20071130-alt1

Group :: Development/Tools
RPM: ltp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1

Name: ltp
Version: 20210121
Release: alt2

Summary: Linux Test Project
License: GPL-2.0-only
Group: Development/Tools
Url: http://linux-test-project.github.io/
Vcs: https://github.com/linux-test-project/ltp.git

Source: %name-%version.tar
BuildRequires: libacl-devel
BuildRequires: libaio-devel
BuildRequires: libcap-devel
BuildRequires: libkeyutils-devel
BuildRequires: libmm-devel
%ifnarch armh
BuildRequires: libnuma-devel
%endif
BuildRequires: libselinux-devel
BuildRequires: libssl-devel
BuildRequires: libxfs-devel

# No Reqs at all, because there is tons of them.

# Idea is - all tests are optional, so we should not provide ready-to-go
# ability to run any tests. Install required dependencies manually just
# for the tests you want to run.
AutoReqProv: off
%add_verify_elf_skiplist /usr/lib/ltp/testcases/*

%description
The Linux Test Project has a goal to deliver test suites to the open source
community that validate the reliability, robustness, and stability of Linux.

The LTP testsuite contains a collection of tools for testing the Linux kernel
and related features. Our goal is to improve the Linux kernel and system
libraries by bringing test automation to the testing effort. Interested open
source contributors are encouraged to join.

Testing Linux, one syscall at a time.

%prep
%setup

# From LTP's travis.

%add_optflags -Werror=implicit-function-declaration -fno-common
# Just reduce amount of warnings for too old code.
%add_optflags -Wno-unused-parameter -Wno-unused-result -Wno-old-style-declaration
%build
%autoreconf
%configure \
--prefix=/usr/lib/ltp \
--with-open-posix-testsuite \
--with-realtime-testsuite
%make_build --output-sync=none

%install
%makeinstall_std -j%__nprocs --output-sync=none
find %buildroot/usr/lib/ltp -perm /g+w | xargs chmod g-w
# Create output dirs (will have tmp-like permissions).
mkdir %buildroot/usr/lib/ltp/{output,results}

# EZ-Lanucher.

mkdir -p %buildroot/%_bindir
cat > %buildroot/%_bindir/runltp <<-EOF
#!/bin/sh
exec /usr/lib/ltp/runltp "\$ at "
EOF
chmod a+x %buildroot/%_bindir/runltp

%check
PATH=%buildroot/usr/lib/ltp/testcases/bin:$PATH
uname01
uname02
uname04

%post
if [ -d /.host -a -d /.in -a -d /.out ]; then
chmod 1777 /usr/lib/ltp/{output,results}
fi

%files
%doc COPYING README.*
/usr/lib/ltp
%_bindir/runltp
%_bindir/execltp
%_man1dir/*.1.*
%_man3dir/*.3.*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009