Add %check to run test
This commit is contained in:
parent
6961ae9b18
commit
606914dabd
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Name: mod_auth_openidc
|
Name: mod_auth_openidc
|
||||||
Version: 1.8.8
|
Version: 1.8.8
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: OpenID Connect auth module for Apache HTTP Server
|
Summary: OpenID Connect auth module for Apache HTTP Server
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -42,8 +42,8 @@ an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# workaround rpm-buildroot-usage
|
# workaround rpm-buildroot-usage
|
||||||
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
|
|
||||||
export MODULES_DIR=%{_httpd_moddir}
|
export MODULES_DIR=%{_httpd_moddir}
|
||||||
|
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
|
||||||
autoreconf
|
autoreconf
|
||||||
%configure \
|
%configure \
|
||||||
%{?_with_hiredis} \
|
%{?_with_hiredis} \
|
||||||
@ -51,6 +51,10 @@ autoreconf
|
|||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export MODULES_DIR=%{_httpd_moddir}
|
||||||
|
make %{?_smp_mflags} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_httpd_moddir}
|
mkdir -p $RPM_BUILD_ROOT%{_httpd_moddir}
|
||||||
make install MODULES_DIR=$RPM_BUILD_ROOT%{_httpd_moddir}
|
make install MODULES_DIR=$RPM_BUILD_ROOT%{_httpd_moddir}
|
||||||
|
Loading…
Reference in New Issue
Block a user