From 46088fe50dfb65b2815f093559c964c3636feac7 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 22 May 2013 12:37:14 -0400 Subject: [PATCH] Add %check --- pesign-test-app.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pesign-test-app.spec b/pesign-test-app.spec index a60b2a0..6a82b75 100644 --- a/pesign-test-app.spec +++ b/pesign-test-app.spec @@ -1,7 +1,7 @@ Summary: Simple pesign test target Name: pesign-test-app Version: 0.4 -Release: 1%{?dist} +Release: 2%{?dist} Group: Development/System License: GPLv2 URL: https://github.com/vathpela/pesign-test-app @@ -29,14 +29,19 @@ deployments of new pesign versions into build infrastructure have succeeded. %build make LIBDIR=%{_libdir} DATADIR=%{_datadir} +cp %{name}.efi %{name}-unsigned.efi +%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.efi %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_libdir} make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \ install -cp %{name}.efi %{name}-unsigned.efi -%pesign -s -i %{name}-unsigned.efi -o %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi +mv %{name}-signed.efi %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi + +%check +pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | grep -c -q "^Signing time: $(date +%%a\ %%b\ %%d,\ %%Y)$" +pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | grep -c -q '^The signer.s common name is Fedora Secure Boot Signer$' %clean rm -rf %{buildroot} @@ -49,6 +54,9 @@ rm -rf %{buildroot} %{_datadir}/%{name}-%{version}/%{name}-signed.efi %changelog +* Wed May 22 2013 Peter Jones - 0.4-2 +- Add %%check + * Tue May 21 2013 Peter Jones - 0.4-1 - Make it build on i686.