mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
e473320e73
- New package `perform` which contains all `Perform` functions - New package `helpers` which contains helper functions used by both perform and query/input functions. - Perform invite/leave have no idea how to `WriteOutputEvents` and this is now returned from `PerformInvite` or `PerformLeave` respectively. Still to do: - RSAPI is fed into the inviter/joiner/leaver - this introduces circular logic so will need to be removed. - Put query operations in a `query` package. - Put input operations (and output) in an `input` package. - Factor out helper functions as much as possible, possibly rejigging the storage layer in the process.
19 lines
587 B
Bash
Executable file
19 lines
587 B
Bash
Executable file
#! /bin/bash -eu
|
|
# This script is designed for developers who want to test their Dendrite code
|
|
# against Complement.
|
|
#
|
|
# It makes a Dendrite image which represents the current checkout,
|
|
# then downloads Complement and runs it with that image.
|
|
|
|
# Make image
|
|
cd `dirname $0`/../..
|
|
docker build -t complement-dendrite -f build/scripts/Complement.Dockerfile .
|
|
|
|
# Download Complement
|
|
wget https://github.com/matrix-org/complement/archive/master.tar.gz
|
|
tar -xzf master.tar.gz
|
|
|
|
# Run the tests!
|
|
cd complement-master
|
|
COMPLEMENT_BASE_IMAGE=complement-dendrite:latest go test -v -count=1 ./tests
|
|
|