Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37573053
en ru br
ALT Linux repositórios
S:0.03-alt1

Group :: Desenvolvimento/Outros
RPM: repocop-unittest-init-x-functions

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define testname init-x-functions

Name: repocop-unittest-%testname
Version: 0.02
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy at altlinux.org>

Summary: %testname integration tests for repocop test platform
Group: Development/Other
License: GPL or Artistic
Url: http://repocop.altlinux.org
Requires: repocop repocop-collector-init-script

%description
%testname integration test for repocop test platform.
The test finds init scripts with incorrect test
[ -x /etc/rc.d/init.d/functions ].

%prep

%build
cat > posttest <<'EOF'
#!/bin/sh
pushd "$REPOCOP_STATEDIR/init-script" >/dev/null
for i in `pcregrep -rl -- '-x /etc/rc.d/init.d/functions' *` ; do
   key=`dirname $i`
   file=`basename $i`
   repocop-test-warn -k $key "Invalid due to mode 644 test -x /etc/rc.d/init.d/functions in /etc/rc.d/init.d/$file. Use test -r or -e."
done
popd >/dev/null
EOF

cat > description <<'EOF'
The test finds init scripts with incorrect (due to 644 mode) test
[ -x /etc/rc.d/init.d/functions ].
EOF

%install
mkdir -p $RPM_BUILD_ROOT%_datadir/repocop/pkgtests/%testname/
%__install -m 755 posttest $RPM_BUILD_ROOT%_datadir/repocop/pkgtests/%testname/
%__install -m 644 description $RPM_BUILD_ROOT%_datadir/repocop/pkgtests/%testname/

%files
#doc README ChangeLog
%_datadir/repocop/pkgtests/%testname

%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