1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00
Files
opencryptoki/testcases/misc_tests/misc_tests.mk
Ingo Franzki ce11cba0bb CI: Run tok2tok_transport on all slot combination in the CI
Discovers all available, initialized tokens and runs tok2tok_transport
for every combination of slots (including same-slot). When multiple
slots carry tokens of the same type/model, only the first one is used
to avoid redundant runs.

Each run is spawned as a background process. Its combined stdout and
stderr are redirected to log-tok2tok-slots_X_Y.txt where X and Y are
the two slot numbers used. Run only up to 4 concurrent jobs to not run
into out-of-memory situations.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2026-09-09 08:14:11 +02:00

137 lines
6.1 KiB
Makefile

noinst_PROGRAMS += \
testcases/misc_tests/obj_mgmt_tests \
testcases/misc_tests/obj_mgmt_lock_tests \
testcases/misc_tests/speed testcases/misc_tests/threadmkobj \
testcases/misc_tests/tok_obj testcases/misc_tests/tok_rsa \
testcases/misc_tests/tok_des \
testcases/misc_tests/fork testcases/misc_tests/multi_instance \
testcases/misc_tests/obj_lock testcases/misc_tests/tok2tok_transport \
testcases/misc_tests/obj_lock testcases/misc_tests/reencrypt \
testcases/misc_tests/cca_ep11_export_import_test \
testcases/misc_tests/events testcases/misc_tests/dual_functions \
testcases/misc_tests/always_auth
EXTRA_DIST += testcases/misc_tests/dh-key.pem \
testcases/misc_tests/dsa-key.pem \
testcases/misc_tests/dsa-param.pem \
testcases/misc_tests/ec-key-prime256v1.pem \
testcases/misc_tests/ec-key-secp521r1.pem \
testcases/misc_tests/ed25519-private-key.pem \
testcases/misc_tests/ed25519-public-key.pem \
testcases/misc_tests/ed448-private-key.pem \
testcases/misc_tests/ed448-public-key.pem \
testcases/misc_tests/x25519-private-key.pem \
testcases/misc_tests/x25519-public-key.pem \
testcases/misc_tests/x448-private-key.pem \
testcases/misc_tests/x448-public-key.pem \
testcases/misc_tests/ibm-dilithium-r2-65-key.pem \
testcases/misc_tests/ibm-dilithium-r3-65-key.pem \
testcases/misc_tests/ibm-kyber-r2-768-key.pem \
testcases/misc_tests/p11sak_dsa3072cert.pem \
testcases/misc_tests/p11sak_dsa4096cert.pem \
testcases/misc_tests/p11sak_ecp256cert.pem \
testcases/misc_tests/p11sak_ecp384cert.pem \
testcases/misc_tests/p11sak_ecp521cert.pem \
testcases/misc_tests/p11sak_rsa2048cert.pem \
testcases/misc_tests/p11sak_rsa4096cert.pem \
testcases/misc_tests/p11sak_ed25519cert.pem \
testcases/misc_tests/p11sak_ed448cert.pem \
testcases/misc_tests/rsa-key.pem \
testcases/misc_tests/aes.key \
testcases/misc_tests/p11sak_dsa3072cert.crt \
testcases/misc_tests/p11sak_dsa4096cert.crt \
testcases/misc_tests/p11sak_ecp256cert.crt \
testcases/misc_tests/p11sak_ecp384cert.crt \
testcases/misc_tests/p11sak_ecp521cert.crt \
testcases/misc_tests/p11sak_rsa2048cert.crt \
testcases/misc_tests/p11sak_rsa4096cert.crt \
testcases/misc_tests/p11sak_ed25519cert.crt \
testcases/misc_tests/p11sak_ed448cert.crt \
testcases/misc_tests/migration.sh \
testcases/misc_tests/pkcstok_migrate_test.sh \
testcases/misc_tests/p11sak_test.sh \
testcases/misc_tests/pkcsconf_test.sh \
testcases/misc_tests/spinlock_tests.sh \
testcases/misc_tests/spinlock_child.sh \
testcases/misc_tests/tok2tok_test.sh
testcases_misc_tests_obj_mgmt_tests_CFLAGS = ${testcases_inc}
testcases_misc_tests_obj_mgmt_tests_LDADD = \
testcases/common/libcommon.la
testcases_misc_tests_obj_mgmt_tests_SOURCES = \
testcases/misc_tests/obj_mgmt.c
testcases_misc_tests_obj_mgmt_lock_tests_CFLAGS = ${testcases_inc}
testcases_misc_tests_obj_mgmt_lock_tests_LDADD = \
testcases/common/libcommon.la
testcases_misc_tests_obj_mgmt_lock_tests_SOURCES = \
testcases/misc_tests/obj_mgmt_lock.c
testcases_misc_tests_speed_CFLAGS = ${testcases_inc}
testcases_misc_tests_speed_LDADD = testcases/common/libcommon.la
testcases_misc_tests_speed_SOURCES = \
usr/lib/common/p11util.c testcases/misc_tests/speed.c
testcases_misc_tests_threadmkobj_CFLAGS = ${testcases_inc}
testcases_misc_tests_threadmkobj_LDADD = testcases/common/libcommon.la
testcases_misc_tests_threadmkobj_SOURCES = \
usr/lib/common/p11util.c testcases/misc_tests/threadmkobj.c
testcases_misc_tests_tok_obj_CFLAGS = ${testcases_inc}
testcases_misc_tests_tok_obj_LDADD = testcases/common/libcommon.la
testcases_misc_tests_tok_obj_SOURCES = \
usr/lib/common/p11util.c testcases/misc_tests/tok_obj.c
testcases_misc_tests_tok_rsa_CFLAGS = ${testcases_inc}
testcases_misc_tests_tok_rsa_LDADD = testcases/common/libcommon.la
testcases_misc_tests_tok_rsa_SOURCES = testcases/misc_tests/tok_rsa.c
testcases_misc_tests_tok_des_CFLAGS = ${testcases_inc}
testcases_misc_tests_tok_des_LDADD = testcases/common/libcommon.la
testcases_misc_tests_tok_des_SOURCES = testcases/misc_tests/tok_des.c
testcases_misc_tests_fork_CFLAGS = ${testcases_inc}
testcases_misc_tests_fork_LDADD = testcases/common/libcommon.la
testcases_misc_tests_fork_SOURCES = testcases/misc_tests/fork.c
testcases_misc_tests_multi_instance_CFLAGS = ${testcases_inc}
testcases_misc_tests_multi_instance_LDADD = testcases/common/libcommon.la
testcases_misc_tests_multi_instance_SOURCES = \
testcases/misc_tests/multi_instance.c
testcases_misc_tests_obj_lock_CFLAGS = ${testcases_inc}
testcases_misc_tests_obj_lock_LDADD = testcases/common/libcommon.la
testcases_misc_tests_obj_lock_SOURCES = \
testcases/misc_tests/obj_lock.c
testcases_misc_tests_tok2tok_transport_CFLAGS = ${testcases_inc}
testcases_misc_tests_tok2tok_transport_LDADD = testcases/common/libcommon.la
testcases_misc_tests_tok2tok_transport_SOURCES = \
testcases/misc_tests/tok2tok_transport.c
testcases_misc_tests_reencrypt_CFLAGS = ${testcases_inc}
testcases_misc_tests_reencrypt_LDADD = testcases/common/libcommon.la
testcases_misc_tests_reencrypt_SOURCES = \
testcases/misc_tests/reencrypt.c
testcases_misc_tests_cca_ep11_export_import_test_CFLAGS = ${testcases_inc}
testcases_misc_tests_cca_ep11_export_import_test_LDADD = \
testcases/common/libcommon.la
testcases_misc_tests_cca_ep11_export_import_test_SOURCES = \
testcases/misc_tests/cca_ep11_export_import_test.c
testcases_misc_tests_events_CFLAGS = ${testcases_inc}
testcases_misc_tests_events_LDADD = testcases/common/libcommon.la
testcases_misc_tests_events_SOURCES = testcases/misc_tests/events.c \
usr/lib/common/event_client.c
testcases_misc_tests_dual_functions_CFLAGS = ${testcases_inc}
testcases_misc_tests_dual_functions_LDADD = testcases/common/libcommon.la
testcases_misc_tests_dual_functions_SOURCES = \
testcases/misc_tests/dual_functions.c
testcases_misc_tests_always_auth_CFLAGS = ${testcases_inc}
testcases_misc_tests_always_auth_LDADD = testcases/common/libcommon.la
testcases_misc_tests_always_auth_SOURCES = \
testcases/misc_tests/always_auth.c