]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/clean/server/test.sh
Begin advanced search
[github/Chocobozzz/PeerTube.git] / scripts / clean / server / test.sh
index 42651d3a8291da65069e3b582db6e6e4436e918a..3b8fe39edee1222897581fb1537c533eeab4fd68 100755 (executable)
@@ -3,10 +3,14 @@
 set -eu
 
 for i in $(seq 1 6); do
-  dropdb --if-exists "peertube_test$i"
+  dbname="peertube_test$i"
+
+  dropdb --if-exists "$dbname"
   rm -rf "./test$i"
   rm -f "./config/local-test.json"
   rm -f "./config/local-test-$i.json"
-  createdb -O peertube "peertube_test$i"
+  createdb -O peertube "$dbname"
+  psql -c "CREATE EXTENSION pg_trgm;" "$dbname"
+  psql -c "CREATE EXTENSION unaccent;" "$dbname"
   redis-cli KEYS "bull-localhost:900$i*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL
 done