SPECS: mysql-proxy.spec - tests pass if requirements made
glen
glen at pld-linux.org
Wed Nov 21 23:43:52 CET 2007
Author: glen Date: Wed Nov 21 22:43:52 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- tests pass if requirements made
---- Files affected:
SPECS:
mysql-proxy.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/mysql-proxy.spec
diff -u SPECS/mysql-proxy.spec:1.8 SPECS/mysql-proxy.spec:1.9
--- SPECS/mysql-proxy.spec:1.8 Wed Nov 21 23:24:43 2007
+++ SPECS/mysql-proxy.spec Wed Nov 21 23:43:47 2007
@@ -3,7 +3,7 @@
# - initscript probably
#
# Conditional build:
-%bcond_without tests # build without tests
+%bcond_with tests # build with tests. needs mysql server on localhost:3306
#
Summary: MySQL Proxy
Summary(pl.UTF-8): Proxy MySQL
@@ -18,12 +18,14 @@
URL: http://forge.mysql.com/wiki/MySQL_Proxy
BuildRequires: autoconf
BuildRequires: automake
-%{?with_tests:BuildRequires: check}
BuildRequires: glib2-devel >= 1:2.4.0
BuildRequires: libevent-devel
BuildRequires: lua51-devel
-%{?with_tests:BuildRequires: lua51}
BuildRequires: mysql-devel
+%if %{with tests}
+BuildRequires: check
+BuildRequires: lua51
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -53,7 +55,15 @@
%configure \
--with-lua=lua51
%{__make}
-%{?with_tests:%{__make} check}
+
+%if %{with tests}
+export MYSQL_USER=mysql
+export MYSQL_PASSWORD=
+export MYSQL_HOST=localhost
+export MYSQL_PORT=3306
+export MYSQL_DB=test
+%{__make} -C tests/suite check
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -78,6 +88,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2007-11-21 22:43:47 glen
+- tests pass if requirements made
+
Revision 1.8 2007-11-21 22:24:43 glen
- autoregen works now
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mysql-proxy.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list