Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package keylime for openSUSE:Factory checked in at 2026-12-02 16:58:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/keylime (Old) and /work/SRC/openSUSE:Factory/.keylime.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "keylime" Wed Dec 2 16:58:50 2026 rev:57 rq:1401751 version:7.14.3 Changes: -------- --- /work/SRC/openSUSE:Factory/keylime/keylime.changes 2026-11-04 19:43:00.349247872 +0100 +++ /work/SRC/openSUSE:Factory/.keylime.new.1340718/keylime.changes 2026-12-02 16:58:53.654072230 +0100 @@ -1,0 +2,10 @@ +Mon Nov 30 13:54:03 UTC 2026 - Zoltan Balogh <[email protected]> + +- Enable the upstream unit tests: run test/ with pytest in %check + for every python flavor (suse_version > 1500 only). Skip + test_create_mb_policy.py, test_mba_parsing.py and + test_tenant_timeout_initialization (18 tests), they need + tpm2.0-tools, which is not built for i586. Add the test + BuildRequires. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ keylime.spec ++++++ --- /var/tmp/diff_new_pack.D5Zw96/_old 2026-12-02 16:58:54.978128134 +0100 +++ /var/tmp/diff_new_pack.D5Zw96/_new 2026-12-02 16:58:54.980128219 +0100 @@ -76,6 +76,31 @@ Requires: tpm2.0-tools Conflicts: rust-keylime BuildArch: noarch +# Test only dependencies. Not available on SLE 15 and Leap 15. +%if 0%{?suse_version} > 1500 +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module SQLAlchemy} +BuildRequires: %{python_module alembic} +BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module gpg} +BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module lark} +BuildRequires: %{python_module libarchive-c} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pyasn1-modules} +BuildRequires: %{python_module pyasn1} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pyzmq} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module rpm} +BuildRequires: %{python_module tornado} +BuildRequires: createrepo_c +BuildRequires: gpg2 +BuildRequires: openssl +BuildRequires: rpm-build +%endif %if %{with libalternatives} BuildRequires: alts Requires: alts @@ -208,8 +233,29 @@ install -p -m 0644 ./tpm_cert_store/* %{buildroot}%{_prefix}/lib/%{srcname}/tpm_cert_store/ %fdupes %{buildroot}%{_prefix}/lib/%{srcname}/ -# %%check -# %%pyunittest -v +%if 0%{?suse_version} > 1500 +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +export KEYLIME_CONF_DIR=$PWD/test-conf-$python +mkdir -p $KEYLIME_CONF_DIR +export KEYLIME_VERIFIER_CONFIG=$KEYLIME_CONF_DIR/verifier.conf +export KEYLIME_TENANT_CONFIG=$KEYLIME_CONF_DIR/tenant.conf +export KEYLIME_REGISTRAR_CONFIG=$KEYLIME_CONF_DIR/registrar.conf +export KEYLIME_CA_CONFIG=$KEYLIME_CONF_DIR/ca.conf +export KEYLIME_LOGGING_CONFIG=$KEYLIME_CONF_DIR/logging.conf +export KEYLIME_DIR=$PWD/test-keylime-dir-$python +$python -m keylime.cmd.convert_config --defaults --out $KEYLIME_CONF_DIR --templates templates +# tpm2.0-tools is not built for i586 and a noarch package cannot +# require it on some architectures only. Leave out the tests that run +# tpm2_eventlog and tpm2_startup: the two files, and the tenant test +# whose Tenant() loads the tpm2_eventlog parser. +$python -m pytest -v -rs \ + --ignore=test/test_create_mb_policy.py \ + --ignore=test/test_mba_parsing.py \ + --deselect=test/test_request_timeout.py::TestTenantTimeout::test_tenant_timeout_initialization \ + test +} +%endif %pre %python_libalternatives_reset_alternative %{srcname}_attest
