[Spice-devel] [cacard 1/2] tests: Add cert.cfg to EXTRA_DIST

Christophe Fergeau cfergeau at redhat.com
Tue Aug 14 08:48:46 UTC 2018


On Mon, Aug 13, 2018 at 07:12:24PM +0200, Marc-André Lureau wrote:
> On Mon, Aug 13, 2018 at 6:11 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> > Without it, make check from tarballs will fail.
> 
> Actually make distcheck passes, but the tests are skipped, right?

When running make check from a tarball in rpmbuild, the test reports
some errors, but make check is successful nonetheless:

(cd tests/ && /builddir/build/BUILD/libcacard-2.6.0/tests/setup-softhsm2.sh)
The token has been initialized.
Using slot 0 with a present token (0x0)
Key pair generated:
[...]
configFileLoad: No such file or directory
Error loading template: /builddir/build/BUILD/libcacard-2.6.0/tests/cert.cfg
unable to load certificate
140737354057616:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:Expecting: TRUSTED CERTIFICATE
Using slot 0 with a present token (0x0)
error: Couldn't open file "RSA:1024.cert.der"
Aborting.
rm: cannot remove 'RSA:1024.cert.der': No such file or directory
Token 'SC test' with URL 'pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=3b61b1ca25aaa5c2;token=SC%20test' requires user PIN
Object 0:
[...]
Using slot 0 with a present token (0x0)
[...]
configFileLoad: No such file or directory
Error loading template: /builddir/build/BUILD/libcacard-2.6.0/tests/cert.cfg
unable to load certificate
140737354057616:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:Expecting: TRUSTED CERTIFICATE
Using slot 0 with a present token (0x0)
error: Couldn't open file "RSA:1024.cert.der"
Aborting.
rm: cannot remove 'RSA:1024.cert.der': No such file or directory
Token 'SC test' with URL 'pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=3b61b1ca25aaa5c2;token=SC%20test' requires user PIN
Object 0:
[...]
Module "SoftHSM PKCS#11" added to database.

(yep, one more thing which would be nice to fix..)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180814/6e6b6608/attachment.sig>


More information about the Spice-devel mailing list