Skip to content

Fix pkcs11 test

Michal Nowak requested to merge mnowak/pkcs11-test-fix into master

The definition of SLOT environmental variable, which needs to be defined otherwise slot 0 is expected, is the main culprit here.

Other fixes along the way:

  • system test expect PIN to be 1234 but bin/tests/prepare-softhsm2.sh sets it to 0000, I opted to change the PIN from bin/tests/prepare-softhsm2.sh
  • I moved the content of bin/tests/system/pkcs11/prereq.sh to bin/tests/system/pkcs11/setup.sh as prereq.sh does not seems to be required and, more importantly, prereq.sh creates supported file but clean.sh, which is run before setup.sh, removes it and thus setup.sh can't use it
  • there was a typo in have_ecx

Fixes #1496 (closed).

Edited by Michal Nowak

Merge request reports