test01_pkgquality:

Check for wrong file attributes in bin and lib directories.

Do ignore files with name matching '*.so.owner'.
These are text files needed by OCaml, not libraries.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2013-07-19 18:39:18 +02:00
parent b4f20819f9
commit b21d192d8f
2 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,12 @@ Sat Jul 13 2013 Madrisan <davide.madrisan(a)gmail.com>
Replace 'notify --error' by 'notify.error'. Replace 'notify --error' by 'notify.error'.
* tests/test01_pkgquality - Davide Madrisan: * tests/test01_pkgquality - Davide Madrisan:
Test fo bad BuildArch tags: modify regexp to catch OCaml library files. Test for bad BuildArch tags: modify regexp to catch OCaml library files.
* tests/test01_pkgquality - Davide Madrisan:
Check for wrong file attributes in bin and lib directories:
Do ignore files with name matching '*.so.owner'. These are text files
used by OCaml.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------

View File

@ -218,8 +218,9 @@ $"checking for wrong file attributes in bin and lib directories""${NORM}..."
for pck in ${rpmpkg_name[@]}; do for pck in ${rpmpkg_name[@]}; do
pushd $tmpextractdir/$i >/dev/null pushd $tmpextractdir/$i >/dev/null
for f in $( find . -type f \( \ for f in $( find . -type f \( \
\( -name '*.so.*' -not -perm 755 \) -or \ \( -name '*.so.*' -and -not -name '*.so.owner' \
\( -name '*.so' -not -perm 755 \) -or \ -and -not -perm 755 \) -or \
\( -name '*.so' -and -not -perm 755 \) -or \
\( \( -path './bin/*' -or \ \( \( -path './bin/*' -or \
-path './sbin/*' -or \ -path './sbin/*' -or \
-path './usr/bin/*' -or \ -path './usr/bin/*' -or \