[Rpm-maint] [rpm-software-management/rpm] rpmtests: The testsuites are getting failed on 4.17.0 (Issue #1927)
dharanlinux
notifications at github.com
Mon Feb 21 14:58:20 UTC 2022
I ran the 'make check' and run the ./rpmtests to check all the test were run successfully. I get following results.
```
## ------------- ##
## Test results. ##
## ------------- ##
ERROR: 406 tests were run,
78 failed (3 expected failures).
70 tests were skipped.
## ------------------------- ##
## rpmtests.log was created. ##
## ------------------------- ##
Please send `tests/rpmtests.log' and all information you think might help:
To: <rpm-maint at lists.rpm.org>
Subject: [rpm 4.17.0] rpmtests: 113 247 248 249 250 255 256 257 258 263 264 265 266 267 268 269 272 273 274 275 276 277 278 288 289 292 296 297 304 305 310 311 312 324 325 329 330 331 332 333 334 335 3
37 340 342 343 346 347 348 349 374 375 376 379 402 427 428 430 434 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 failed
```
If I run, some of failed test case in verbose mode I get the following details.
```
# ./rpmtests -v -k "uncompress macro 2"
## ---------------------- ##
## rpm 4.17.0 test suite. ##
## ---------------------- ##
113. rpmmacro.at:225: testing uncompress macro 2 ...
./rpmmacro.at:227:
if ! [ -d testing/ ]; then
cp -aP "${RPMTEST}" .
chmod -R u+w testing/
mkdir -p testing/build
ln -s ../data/SOURCES testing/build/
fi
export RPMTEST="${PWD}/testing"
export TOPDIR="${RPMTEST}/build"
export HOME="${RPMTEST}"
rm -rf "${RPMTEST}"`rpm --eval '%_dbpath'`/*
runroot rpm --initdb
echo xxxxxxxxxxxxxxxxxxxxxxxxx > ${RPMTEST}/tmp/"some%%ath"
runroot rpm \
--eval "%{uncompress:/tmp/some%%%%ath}"
--- - 2022-02-21 20:12:57.074086825 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/113/stdout 2022-02-21 20:12:57.050000283 +0000
@@ -1,2 +1,2 @@
-/usr/bin/cat /tmp/some%%ath
+/bin/cat /tmp/some%%ath
113. rpmmacro.at:225: FAILED (rpmmacro.at:227)
## ------------- ##
## Test results. ##
## ------------- ##
ERROR: 1 test was run,
1 failed unexpectedly.
```
```
# ./rpmtests -v -k "rpmkeys -Kv <corrupted unsigned> 1"
## ---------------------- ##
## rpm 4.17.0 test suite. ##
## ---------------------- ##
247. rpmsigdig.at:55: testing rpmkeys -Kv <corrupted unsigned> 1 ...
./rpmsigdig.at:57:
if ! [ -d testing/ ]; then
cp -aP "${RPMTEST}" .
chmod -R u+w testing/
mkdir -p testing/build
ln -s ../data/SOURCES testing/build/
fi
export RPMTEST="${PWD}/testing"
export TOPDIR="${RPMTEST}/build"
export HOME="${RPMTEST}"
rm -rf "${RPMTEST}"`rpm --eval '%_dbpath'`/*
runroot rpm --initdb
pkg="hello-2.0-1.x86_64.rpm"
cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
# conv=notrunc bs=1 seek=261 count=6 2> /dev/null
dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
conv=notrunc bs=1 seek=333 count=4 2> /dev/null
runroot rpmkeys -Kv /tmp/${pkg}
--- - 2022-02-21 20:16:12.487919223 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/247/stdout 2022-02-21 20:16:12.470000306 +0000
@@ -2,5 +2,5 @@
Header SHA256 digest: OK
Header SHA1 digest: OK
Payload SHA256 digest: OK
- MD5 digest: BAD (Expected 007ca1d8b35cca02a1854ba301c5432e != 137ca1d8b35cca02a1854ba301c5432e)
+ MD5 digest: OK
./rpmsigdig.at:57: exit code was 0, expected 1
247. rpmsigdig.at:55: FAILED (rpmsigdig.at:57)
```
```
# ./rpmtests -v -k "files with no problems"
## ---------------------- ##
## rpm 4.17.0 test suite. ##
## ---------------------- ##
RPM verification
263. rpmverify.at:30: testing files with no problems ...
./rpmverify.at:32:
if ! [ -d testing/ ]; then
cp -aP "${RPMTEST}" .
chmod -R u+w testing/
mkdir -p testing/build
ln -s ../data/SOURCES testing/build/
fi
export RPMTEST="${PWD}/testing"
export TOPDIR="${RPMTEST}/build"
export HOME="${RPMTEST}"
rm -rf "${RPMTEST}"`rpm --eval '%_dbpath'`/*
runroot rpm --initdb
runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
/data/RPMS/hello-1.0-1.i386.rpm
runroot rpm -Va --nodeps --nouser --nogroup
--- /dev/null 1970-01-01 00:00:20.390000002 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/263/stderr 2022-02-21 20:18:58.410000326 +0000
@@ -0,0 +1 @@
+Segmentation fault
./rpmverify.at:32: exit code was 139, expected 0
263. rpmverify.at:30: FAILED (rpmverify.at:32)
264. rpmverify.at:45: testing files with no problems in verbose mode ...
./rpmverify.at:47:
if ! [ -d testing/ ]; then
cp -aP "${RPMTEST}" .
chmod -R u+w testing/
mkdir -p testing/build
ln -s ../data/SOURCES testing/build/
fi
export RPMTEST="${PWD}/testing"
export TOPDIR="${RPMTEST}/build"
export HOME="${RPMTEST}"
rm -rf "${RPMTEST}"`rpm --eval '%_dbpath'`/*
runroot rpm --initdb
runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
/data/RPMS/hello-1.0-1.i386.rpm
runroot rpm -Vva --nodeps --nouser --nogroup
--- /dev/null 1970-01-01 00:00:20.390000002 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/264/stderr 2022-02-21 20:19:05.480000327 +0000
@@ -0,0 +1 @@
+Segmentation fault
--- - 2022-02-21 20:19:05.512662743 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/264/stdout 2022-02-21 20:19:05.490000327 +0000
@@ -1,4 +1 @@
-......... /usr/local/bin/hello
-......... /usr/share/doc/hello-1.0
-......... d /usr/share/doc/hello-1.0/FAQ
./rpmverify.at:47: exit code was 139, expected 0
264. rpmverify.at:45: FAILED (rpmverify.at:47)
```
For the skipped test, couldn't get more details:
```
# ./rpmtests -v -k "module import"
## ---------------------- ##
## rpm 4.17.0 test suite. ##
## ---------------------- ##
157. rpmpython.at:6: testing module import ...
157. rpmpython.at:6: skipped (rpmpython.at:6)
```
Kindly let me know how to fix all of the failed test cases.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1927#issuecomment-1046964891
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1927/1046964891 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220221/7f09f59a/attachment-0001.html>
More information about the Rpm-maint
mailing list