summaryrefslogtreecommitdiff
path: root/scripts/run_all_with_tests.sh
diff options
context:
space:
mode:
authorStephane Wirtel <stw@openerp.com>2012-09-01 16:17:19 +0200
committerStephane Wirtel <stw@openerp.com>2012-09-01 16:17:19 +0200
commit703ba01954bef5a8a7618e6d38d8e1b1630e0541 (patch)
tree306212997a76725e53a5ecdafc6289b728d26e71 /scripts/run_all_with_tests.sh
parent77e92aeaad00b5ac2500cc9267f9a208577ac14e (diff)
[ADD] Add a script to install all the modules in a trunk database with the tests
bzr revid: stw@openerp.com-20120901141719-zsc2ow2u93kovri7
Diffstat (limited to 'scripts/run_all_with_tests.sh')
-rwxr-xr-xscripts/run_all_with_tests.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/run_all_with_tests.sh b/scripts/run_all_with_tests.sh
new file mode 100755
index 00000000000..4103b6243e2
--- /dev/null
+++ b/scripts/run_all_with_tests.sh
@@ -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