\index{Bacula Regression Testing}
\addcontentsline{toc}{section}{Bacula Regression Testing}
-\section{General}
-\index{General}
-\addcontentsline{toc}{section}{General}
+\section{Setting up Regession Testing}
+\index{Setting up Regession Testing}
+\addcontentsline{toc}{section}{Setting up Regression Testing}
This document is intended mostly for developers who wish to ensure that their
changes to Bacula don't introduce bugs in the base code. However, you
\footnotesize
\begin{verbatim}
-cd
-git clone git://bacula.git.sourceforge.net/gitroot/bacula bacula
+git clone git://bacula.git.sourceforge.net/gitroot/bacula/bacula bacula
\end{verbatim}
\normalsize
\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}
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}