Skip to content

Commit

Permalink
Modified %check for SPEC files - 8
Browse files Browse the repository at this point in the history
Change-Id: I553302023ad793b1e3c9762db81169e7d1807443
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1400
Tested-by: gerrit-photon <[email protected]>
Reviewed-by: aditij <[email protected]>
  • Loading branch information
Chang authored and aditij committed Sep 28, 2016
1 parent 3553e8b commit 2f3e37e
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 10 deletions.
4 changes: 4 additions & 0 deletions SPECS/gtk-doc/gtk-doc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ specially formatted comments from the code to create API documentation.
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} sysconfdir=%{_sysconfdir} datadir=%{_datadir} install

%check
cd tests && make check-TESTS

%files
%defattr(-,root,root)
%{_bindir}/*
Expand Down
4 changes: 3 additions & 1 deletion SPECS/gzip/gzip.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ install -vdm 755 %{buildroot}%{_bindir}
mv -v %{buildroot}/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} %{buildroot}%{_bindir}
mv -v %{buildroot}/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_infodir}

%check
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
make %{?_smp_mflags} check

%files
%defattr(-,root,root)
/bin/*
Expand Down
2 changes: 1 addition & 1 deletion SPECS/haveged/haveged.spec
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Headers and shared object symbolic links for the HAVEGE algorithm
make

%check
make check
make %{?_smp_mflags} check


%install
Expand Down
4 changes: 4 additions & 0 deletions SPECS/iana-etc/iana-etc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ The Iana-Etc package provides data for network services and protocols.
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install

%check
make %{?_smp_mflags} test

%files
%defattr(-,root,root)
%config %_sysconfdir/protocols
Expand Down
3 changes: 1 addition & 2 deletions SPECS/inetutils/inetutils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ make SUIDMODE="-o root -m 755" DESTDIR=%{buildroot} install
install -vd %{buildroot}%{_sbindir}
mv -v %{buildroot}%{_bindir}/ifconfig %{buildroot}%{_sbindir}/ifconfig
rm -rf %{buildroot}%{_infodir}
%check
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}

%files
%defattr(-,root,root)
%{_bindir}/*
Expand Down
2 changes: 2 additions & 0 deletions SPECS/inotify-tools/inotify-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ make
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != '/' ] && rm -rf $RPM_BUILD_ROOT
%makeinstall

%check
make %{?_smp_mflags} check

%post -p /sbin/ldconfig

Expand Down
4 changes: 3 additions & 1 deletion SPECS/intltool/intltool.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -v -Dm644 doc/I18N-HOWTO %{buildroot}/%{_docdir}/%{name}-%{version}/I18N-HOWTO

%check
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
make %{?_smp_mflags} check

%files
%defattr(-,root,root)
%{_docdir}/%{name}-%{version}/I18N-HOWTO
Expand Down
3 changes: 3 additions & 0 deletions SPECS/iperf/iperf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ make %{?_smp_mflags}
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make DESTDIR=%{buildroot} install

%check
make %{?_smp_mflags} check

%files
%defattr(-,root,root)
%{_bindir}/iperf3
Expand Down
2 changes: 0 additions & 2 deletions SPECS/iptables/iptables.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ chmod 755 %{buildroot}/etc/systemd/scripts/iptables
find %{buildroot} -name '*.a' -delete
find %{buildroot} -name '*.la' -delete
%{_fixperms} %{buildroot}/*
%check
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}

%preun
%systemd_preun iptables.service
Expand Down
3 changes: 0 additions & 3 deletions SPECS/iputils/iputils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ iconv -f ISO88591 -t UTF8 RELNOTES -o RELNOTES.tmp
touch -r RELNOTES RELNOTES.tmp
mv -f RELNOTES.tmp RELNOTES

%check
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}

%files
%defattr(-,root,root)
%doc RELNOTES
Expand Down

0 comments on commit 2f3e37e

Please sign in to comment.