mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Currently our test database is backed by sqlite; this commit moves us to using postgres for our all database needs. This, in conjunction with the patched django on github, allow us to have fewer hacks and more true-to-life tests. It also sets the stage for testing the bulk_create and schema search_path patches made to django. Developers will need to run: ./tools/postgres-init-test-db ./tools/do-destroy-rebuild-test-database this is assuming that they have already run: ./tools/postgres-init-db ./tools/do-destroy-rebuild-database at some point on this pg_cluster. (The ordering is important; it will other- wise complain about the south_migration table). (imported from commit c56c6f27e13df7ae10b2e643e65d669dde61af3d)
15 lines
225 B
Bash
Executable File
15 lines
225 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
target='zephyr'
|
|
|
|
case "$1" in
|
|
zephyr*)
|
|
target="$1"
|
|
shift
|
|
;;
|
|
esac
|
|
|
|
cd "$(dirname "$0")"/..
|
|
./zephyr/tests/generate-fixtures
|
|
./manage.py test "$target" --settings=humbug.test_settings "$@"
|