diff --git a/tpm2.0-tools.changes b/tpm2.0-tools.changes index 48adc72..4b50390 100644 --- a/tpm2.0-tools.changes +++ b/tpm2.0-tools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 8 09:07:05 UTC 2021 - Matthias Gerstner + +- prepare running the test suite via %check, but leave it commented out, + because it is broken due to LTO linking. + ------------------------------------------------------------------- Mon Jun 28 09:09:46 UTC 2021 - Fabian Vogt diff --git a/tpm2.0-tools.spec b/tpm2.0-tools.spec index a34caf5..e29eff9 100644 --- a/tpm2.0-tools.spec +++ b/tpm2.0-tools.spec @@ -50,6 +50,14 @@ BuildRequires: pandoc BuildRequires: pkgconfig BuildRequires: tpm2-0-tss-devel BuildRequires: tpm2.0-abrmd-devel +# requirements for unit test suite (configure --enable-unit) +BuildRequires: expect +BuildRequires: ibmswtpm2 +BuildRequires: libcmocka-devel +BuildRequires: python38-pyaml +BuildRequires: tpm2.0-abrmd +# for xxd, which is also required by the tests +BuildRequires: vim Recommends: tpm2.0-abrmd %description @@ -63,7 +71,9 @@ associated interfaces. %autosetup -p1 -n tpm2-tools-%{version} %build -%configure --disable-static +# help configure find required executables for testing +export PATH=$PATH:/usr/sbin:/usr/libexec/ibmtss +%configure --disable-static --enable-unit make %{?_smp_mflags} %install @@ -82,4 +92,9 @@ find %{buildroot} -type f -name "*.la" -delete -print %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/* +# the test suite does not currently work, because it conflicts with our LTO +# linking (see bsc#1188085). +#%%check +#make check + %changelog