summaryrefslogtreecommitdiff
path: root/scripts/run_all_with_tests.sh
diff options
context:
space:
mode:
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