unify the output of all the modules test
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
7a68b819d4
commit
f93b85c9f5
@ -85,10 +85,15 @@ Changes in version 1.12.0
|
|||||||
The option '--ignore-test' works again. Remove the corresponding line.
|
The option '--ignore-test' works again. Remove the corresponding line.
|
||||||
|
|
||||||
+ update
|
+ update
|
||||||
* New test file 'test00_specsyntax'.
|
* test/test00_specsyntax - Davide Madrisan:
|
||||||
|
New test file 'test00_specsyntax'.
|
||||||
Move code to check specfiles from 'pck-update' (action 4) to the test file
|
Move code to check specfiles from 'pck-update' (action 4) to the test file
|
||||||
'test00_specsyntax'.
|
'test00_specsyntax'.
|
||||||
|
|
||||||
|
+ improvement
|
||||||
|
* test/test00_specsyntax, pck-update, lib/libtest.lib - Davide Madrisan:
|
||||||
|
Unify the output of all the modules' test.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Changes in version 1.10.0
|
Changes in version 1.10.0
|
||||||
|
@ -78,7 +78,9 @@ function test.rpms_extract() {
|
|||||||
|
|
||||||
local i=0
|
local i=0
|
||||||
for pck in ${rpmpkg_name[@]}; do
|
for pck in ${rpmpkg_name[@]}; do
|
||||||
[[ -e "$pck" ]] || notify.error $"package not found"": \`$pck'"
|
[[ -e "$pck" ]] &&
|
||||||
|
notify.note " * $pck" ||
|
||||||
|
notify.error $"package not found"": \`$pck'"
|
||||||
|
|
||||||
mkdir -p $tmpextractdir/$i 2>/dev/null
|
mkdir -p $tmpextractdir/$i 2>/dev/null
|
||||||
[ $? -eq 0 ] || notify.error $"\
|
[ $? -eq 0 ] || notify.error $"\
|
||||||
|
@ -2343,7 +2343,6 @@ $pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.noarch.rpm"
|
|||||||
notify.error $"package not found"": \`$pcknew_name'"
|
notify.error $"package not found"": \`$pcknew_name'"
|
||||||
echo "rpmpkg_name[$i]=\"$rpms_dir/noarch/$pcknew_name\"" \
|
echo "rpmpkg_name[$i]=\"$rpms_dir/noarch/$pcknew_name\"" \
|
||||||
>> $tmpextractdir/rpmpkg.info
|
>> $tmpextractdir/rpmpkg.info
|
||||||
notify.note " * $pcknew_name"
|
|
||||||
else
|
else
|
||||||
pcknew_name="\
|
pcknew_name="\
|
||||||
$pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.$target_cpu.rpm"
|
$pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.$target_cpu.rpm"
|
||||||
@ -2351,7 +2350,6 @@ $pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.$target_cpu.rpm"
|
|||||||
notify.error $"package not found"": \`$pcknew_name'"
|
notify.error $"package not found"": \`$pcknew_name'"
|
||||||
echo "rpmpkg_name[$i]=\"$rpms_dir/$target_cpu/$pcknew_name\"" \
|
echo "rpmpkg_name[$i]=\"$rpms_dir/$target_cpu/$pcknew_name\"" \
|
||||||
>> $tmpextractdir/rpmpkg.info
|
>> $tmpextractdir/rpmpkg.info
|
||||||
notify.note " $pcknew_name"
|
|
||||||
fi
|
fi
|
||||||
notify.debug "$FUNCNAME: pcknew_name[$i] = $pcknew_name"
|
notify.debug "$FUNCNAME: pcknew_name[$i] = $pcknew_name"
|
||||||
let "i += 1"
|
let "i += 1"
|
||||||
@ -2362,11 +2360,17 @@ $pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.$target_cpu.rpm"
|
|||||||
exit 1; }
|
exit 1; }
|
||||||
. @libdir@/libtest.lib
|
. @libdir@/libtest.lib
|
||||||
|
|
||||||
|
# execute all the available tests...
|
||||||
|
|
||||||
|
notify.note " ${NOTE}"\
|
||||||
|
$"checking the specfile for common mistakes""${NORM}""..."
|
||||||
|
test.runall --specfile="$SRPM_SPECFILE_WITH_PATH"
|
||||||
|
|
||||||
|
notify.note " ${NOTE}"\
|
||||||
|
$"checking packages for common mistakes""${NORM}""..."
|
||||||
test.rpms_extract \
|
test.rpms_extract \
|
||||||
--infofile "$tmpextractdir/rpmpkg.info" \
|
--infofile "$tmpextractdir/rpmpkg.info" \
|
||||||
--tmpdir "$tmpextractdir" || exit 1
|
--tmpdir "$tmpextractdir" || exit 1
|
||||||
|
|
||||||
# execute all the available tests...
|
|
||||||
test.runall --packages
|
test.runall --packages
|
||||||
|
|
||||||
# temporary files cleanup
|
# temporary files cleanup
|
||||||
|
@ -531,3 +531,8 @@ msgstr "specfile con fine linea CR"
|
|||||||
msgid "specfile with an unsupported format"
|
msgid "specfile with an unsupported format"
|
||||||
msgstr "specfile in formato non supportato"
|
msgstr "specfile in formato non supportato"
|
||||||
|
|
||||||
|
msgid "checking the specfile for common mistakes"
|
||||||
|
msgstr "controllo dello specfile alla ricerca di comuni errori"
|
||||||
|
|
||||||
|
msgid "checking packages for common mistakes"
|
||||||
|
msgstr "controllo dei pacchetti alla ricerca di comuni errori"
|
||||||
|
@ -25,7 +25,6 @@ for tool in cat chmod cpio date file find fold ftp getopt grep \
|
|||||||
done
|
done
|
||||||
|
|
||||||
function alltests() {
|
function alltests() {
|
||||||
# FIXME: add to 'po' file
|
|
||||||
notify.note " ${NOTE}"$"performing quality checks""${NORM}""..."
|
notify.note " ${NOTE}"$"performing quality checks""${NORM}""..."
|
||||||
|
|
||||||
TEMP=`LC_ALL=C getopt \
|
TEMP=`LC_ALL=C getopt \
|
||||||
|
Loading…
Reference in New Issue
Block a user