[ADD] Add a script to install all the modules in a trunk database with the tests
authorStephane Wirtel <stw@openerp.com>
Sat, 1 Sep 2012 14:17:19 +0000 (16:17 +0200)
committerStephane Wirtel <stw@openerp.com>
Sat, 1 Sep 2012 14:17:19 +0000 (16:17 +0200)
bzr revid: stw@openerp.com-20120901141719-zsc2ow2u93kovri7

scripts/run_all_with_tests.sh [new file with mode: 0755]

diff --git a/scripts/run_all_with_tests.sh b/scripts/run_all_with_tests.sh
new file mode 100755 (executable)
index 0000000..4103b62
--- /dev/null
@@ -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