[ADD] Add a script to install all the modules in a trunk database with the tests

bzr revid: stw@openerp.com-20120901141719-zsc2ow2u93kovri7
This commit is contained in:
Stephane Wirtel 2012-09-01 16:17:19 +02:00
parent 77e92aeaad
commit 703ba01954
1 changed files with 17 additions and 0 deletions

17
scripts/run_all_with_tests.sh Executable file
View File

@ -0,0 +1,17 @@
DATABASE=trunk
dropdb ${DATABASE}
REPOSITORIES=../../addons/trunk
MODULES=`python -c "import os; print ','.join(os.listdir('${REPOSITORIES}'))"`
createdb ${DATABASE}
rm openerp-server.log
./openerp-server \
--log-level=debug \
--addons=${REPOSITORIES},../../web/trunk/addons \
-d ${DATABASE} \
-i ${MODULES} \
--stop-after-init \
--no-xmlrpc \
--no-xmlrpcs \
--no-netrpc \
--test-enable \
--logfile=openerp-server.log