how to run rpmtest

Chuck Tuffli ctuffli at gmail.com
Wed Nov 16 20:05:29 UTC 2016


On Wed, Nov 16, 2016 at 12:01 AM, Panu Matilainen
<pmatilai at laiskiainen.org> wrote:
> On 11/16/2016 02:12 AM, Chuck Tuffli wrote:
>>
>> I've downloaded rpm-4.13.0, built it, and am trying to verify the
>> build worked by running rpmtest in the tests directory. Most of the
>> tests fail, which leads me to suspect a either problem with the way
>> I've setup my environment or with the way I'm running the tests.
>>
>> The system is Ubuntu 14.04. Any ideas where I goofed?
...
>
> Run "make check" to run the tests, that'll prepare the environment.
> After that has been done it's possible to use ./rpmtests too.

Panu

Thanks, that enabled a few more tests to run, but I'm still seeing the
majority of the tests fail. For example, test 3 ("rpm --showrc") fails
with:

3. rpmgeneral.at:40: testing rpm --showrc ...
./rpmgeneral.at:42: runroot rpm --showrc
--- /dev/null    2016-11-14 14:44:22.573942890 -0800
+++ /home/ctuffli/dev/rpm-4.13.0/tests/rpmtests.dir/at-groups/3/stderr
   2016-11-16 07:35:09.773034366 -0800
@@ -0,0 +1 @@
+error: Failed to initialize NSS library
stdout:
./rpmgeneral.at:42: exit code was 1, expected 0
3. rpmgeneral.at:40: 3. rpm --showrc (rpmgeneral.at:40): FAILED
(rpmgeneral.at:42)

Running strace shows:
...
[pid 22865] rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER,
0x7f63b6f16330}, NULL, 8) = 0
[pid 22865] getcwd("/home/ctuffli/dev/rpm-4.13.0/tests/testing", 4096) = 43
[pid 22865] open("/home/ctuffli/dev/rpm-4.13.0/tests/testing/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 22865] getcwd("/home/ctuffli/dev/rpm-4.13.0/tests/testing", 4096) = 43
[pid 22865] open("/home/ctuffli/dev/rpm-4.13.0/tests/testing/usr/lib/x86_64-linux-gnu/libsoftokn3.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 22865] getcwd("/home/ctuffli/dev/rpm-4.13.0/tests/testing", 4096) = 43
[pid 22865] readlink("/home/ctuffli/dev/rpm-4.13.0/tests/testing/usr/lib/x86_64-linux-gnu/libnss3.so",
0x7fff037ec9d0, 4095) = -1 ENOENT (No such file or directory)
[pid 22865] getcwd("/home/ctuffli/dev/rpm-4.13.0/tests/testing", 4096) = 43
[pid 22865] getcwd("/home/ctuffli/dev/rpm-4.13.0/tests/testing", 4096) = 43
[pid 22865] open("/home/ctuffli/dev/rpm-4.13.0/tests/testing/libsoftokn3.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 22865] write(2, "error: ", 7)      = 7
[pid 22865] write(2, "Failed to initialize NSS library\n", 33) = 33
[pid 22865] exit_group(1)               = ?

The system does have both libraries installed, but they aren't in the
testing directory:
$ locate libsoftokn3.so
/usr/lib/firefox/libsoftokn3.so
/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
$ locate libnss3.so
/usr/lib/firefox/libnss3.so
/usr/lib/x86_64-linux-gnu/libnss3.so
/usr/lib/x86_64-linux-gnu/libnss3.so.1d
$ ls testing/usr/lib/
librpmbuild.la*        librpmio.la*        librpm.la*
librpmsign.so.7.0.0*  pkgconfig/
librpmbuild.so@        librpmio.so@        librpmsign.la*
librpm.so@            rpm/
librpmbuild.so.7@      librpmio.so.7@      librpmsign.so@
librpm.so.7@          rpm-plugins/
librpmbuild.so.7.0.0*  librpmio.so.7.0.0*  librpmsign.so.7@  librpm.so.7.0.0*

Thoughts? TIA.

--chuck


More information about the Rpm-list mailing list