commit monitoring-plugins-zypper for openSUSE:Factory
Hello community, here is the log from the commit of package monitoring-plugins-zypper for openSUSE:Factory checked in at 2015-10-08 08:24:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-zypper (Old) and /work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "monitoring-plugins-zypper" Changes: -------- --- /work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes 2015-08-28 08:27:52.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes 2015-10-08 08:24:50.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Sep 28 15:18:21 UTC 2015 - lars@linux-schulserver.de + +- run a simple test during %%check + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ monitoring-plugins-zypper.spec ++++++ --- /var/tmp/diff_new_pack.RiRJno/_old 2015-10-08 08:24:50.000000000 +0200 +++ /var/tmp/diff_new_pack.RiRJno/_new 2015-10-08 08:24:50.000000000 +0200 @@ -38,6 +38,7 @@ %endif Requires: zypper BuildArch: noarch +BuildRequires: distribution-release BuildRequires: nagios-rpm-macros Provides: nagios-plugins-zypper = %{version}-%{release} Obsoletes: nagios-plugins-zypper < %{version}-%{release} @@ -77,6 +78,14 @@ install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper %endif +%check +# generic test if check_zypper is working at all +%buildroot/%{nagios_plugindir}/check_zypper --help +if [ "$?" != "0" ]; then + echo "Test failed: check_zypper can not print help text" >&2 + exit 1 +fi + %clean rm -rf %buildroot
participants (1)
-
root@hilbert.suse.de