Hi All,

I recently started running nightly bacula regression tests and publishing the results to http://regress.bacula.org/ Whilst setting my environment up I noticed a few areas of the regression testing documentation that seem to need a few tweaks. Attached are 3 git patches that document what I needed to do to get the regression running in my environment. I hope these are helpful. Note I haven't been able to test the documentation build and hopefully my tex/latex skills are not too rusty.

For reference I'm regression testing sqlite3, mysql and postgresql on Ubuntu 10.04 x86_64. I also run Bacula in production on a couple of Debian sparc and arm machines too. I'll see if I can run tests against those at somepoint in the future but I probably will not be able to run those on a daily basis.

Regards

Richard

P.S. I've got another issue with one of the postgresql scripts but I'll follow that up in another thread.
>From f9fad3b3451a4de51ea720e031fdc7791f839646 Mon Sep 17 00:00:00 2001
From: Richard Mortimer <[email protected]>
Date: Tue, 14 Sep 2010 22:28:39 +0100
Subject: [PATCH 3/3] Add instructions for providing ~/.my.cnf and ~/.pgpass 
files to provide
 database authentication to the regression scripts.

---
 docs/manuals/en/developers/regression.tex |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/docs/manuals/en/developers/regression.tex 
b/docs/manuals/en/developers/regression.tex
index 525651a..0f3606d 100644
--- a/docs/manuals/en/developers/regression.tex
+++ b/docs/manuals/en/developers/regression.tex
@@ -261,6 +261,25 @@ Generally, to do the above, you will need to run under 
root to
 be able to create databases and modify permissions within MySQL and
 PostgreSQL.
 
+It is possible to configure MySQL access for database accounts that
+require a password to be supplied. This can be done by creating a ~/.my.cnf
+file which supplies the credentials by default to the MySQL commandline
+utilities.
+
+\begin{verbatim}
+[client]
+host     = localhost
+user     = regress
+password = asecret
+\end{verbatim}
+
+A similar technique can be used PostgreSQL regression testing where the
+database is configured to require a password. The ~/.pgpass file should
+contain a line with the database connection properties.
+
+\begin{verbatim}
+hostname:port:database:username:password
+\end{verbatim}
 
 \subsection{Running the Disk Only Regression}
 \index{Regression!Running the Disk Only}
-- 
1.7.0.4

>From ae7fbac0b518c7380402426d9836f3fc0e253c59 Mon Sep 17 00:00:00 2001
From: Richard Mortimer <[email protected]>
Date: Tue, 14 Sep 2010 22:23:46 +0100
Subject: [PATCH 1/3] Correct git repository URL in clone instructions.

---
 docs/manuals/en/developers/regression.tex |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/docs/manuals/en/developers/regression.tex 
b/docs/manuals/en/developers/regression.tex
index 1dda490..1999b98 100644
--- a/docs/manuals/en/developers/regression.tex
+++ b/docs/manuals/en/developers/regression.tex
@@ -39,7 +39,7 @@ are working in your home directory in a non-root account):
 
 \footnotesize
 \begin{verbatim}
-git clone git://bacula.git.sourceforge.net/gitroot/bacula bacula
+git clone git://bacula.git.sourceforge.net/gitroot/bacula/bacula bacula
 \end{verbatim}
 \normalsize
 
-- 
1.7.0.4

>From ceb5c9c8c1d4197daf459cf6dc2f2176215a6212 Mon Sep 17 00:00:00 2001
From: Richard Mortimer <[email protected]>
Date: Tue, 14 Sep 2010 22:26:36 +0100
Subject: [PATCH 2/3] Update regression test setup instructions.

---
 docs/manuals/en/developers/regression.tex |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/docs/manuals/en/developers/regression.tex 
b/docs/manuals/en/developers/regression.tex
index 1999b98..525651a 100644
--- a/docs/manuals/en/developers/regression.tex
+++ b/docs/manuals/en/developers/regression.tex
@@ -225,18 +225,17 @@ HOST="localhost"
 \index{Bacula!Building the Test}
 \addcontentsline{toc}{subsection}{Building the Test Bacula}
 
-Once the above variables are set, you can build the Makefile by entering: 
+Once the above variables are set, you can build the setup by entering:
 
 \footnotesize
 \begin{verbatim}
-./config xxx.conf
+make setup
 \end{verbatim}
 \normalsize
 
-Where xxx.conf is the name of the conf file containing your system parameters.
-This will build a Makefile from Makefile.in, and you should not need to
+This will setup the regression testing and you should not need to
 do this again unless you want to change the database or other regression
-configuration parameter.
+configuration parameters.
 
 
 \subsection{Setting up your SQL engine}
-- 
1.7.0.4

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to