summaryrefslogtreecommitdiff
path: root/tools/start-fake-mode.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/start-fake-mode.sh')
-rwxr-xr-xtools/start-fake-mode.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/start-fake-mode.sh b/tools/start-fake-mode.sh
new file mode 100755
index 00000000..a4fbf952
--- /dev/null
+++ b/tools/start-fake-mode.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Arguments: Use --pid_file to specify a pid file location.
+
+
+if [ ! -d ".tox/py26" ]; then
+ tox -epy26
+fi
+
+function run() {
+ .tox/py26/bin/python $@
+}
+run bin/trove-manage \
+ --config-file=etc/trove/trove.conf.test db_wipe \
+ trove_test.sqlite mysql fake
+run bin/trove-fake-mode \
+ --fork --config-file=etc/trove/trove.conf.test \
+ $@
+