[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

summarizing current "make test" invocation for SVN trunk as of rev 2934



Summarizing IRC chat from earlier tonight, the current way to invoke the tests (these should be all on one line, sorry if the formatting is messed up for you):

LSMB_TEST_DB=1		# run database tests	\
LSMB_NEW_DB=lsmb		# create new database with this name	\
# PGDATABASE=lsmb		# otherwise use existing database	\
PG_CONTRIB_DIR=/usr/share/postgresql-8.4/contrib	# PostgreSQL contrib scripts, required	\
PGUSER=postgres		# PostgreSQL system userid	\
LSMB_INSTALL_DB=1		# Don't drop DB after running tests	\
LSMB_ADMIN_FNAME=Adam		# Create an admin user	\
LSMB_ADMIN_LNAME=Thompson	\
LSMB_ADMIN_USERNAME=userid	\
LSMB_ADMIN_PASSWORD=password	\
LSMB_COUNTRY_CODE=CA		# used to select the appropriate Chart of Accounts	\
LSMB_LOAD_COA=English_General	# used to select the appropriate Chart of Accounts	\
LSMB_LOAD_GIFI=English	# used to select the appropriate GIFI data	\
LSMB_BASE_URL=http://localhost/ledgersmb/	# for LWP tests	\
LSMB_USER=userid		# for LWP tests	\
LSMB_PASS=password		# for LWP tests	\
make test

The LWP tests currently won't run simultaneously with creation of a new database due to the fact that t/40-dbsetup.t doesn't create (AFAIK) an LSMB user with enough permissions to run the LWP tests successfully. Run them afterward with PGDATABASE instead of LSMB_NEW_DB, as far as I can tell.

It's safe to say this area is changing rapidly :-)

--
Thank you,
-Adam Thompson
 <..hidden..>
 (204) 291-7950