summaryrefslogtreecommitdiffstats
path: root/server/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'server/test.sh')
-rwxr-xr-xserver/test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/test.sh b/server/test.sh
new file mode 100755
index 00000000..9a8e445b
--- /dev/null
+++ b/server/test.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
+diesel migration run
+export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
+RUST_TEST_THREADS=1 cargo test --workspace