diff options
author | Tobias Fella <fella@posteo.de> | 2021-12-25 16:01:32 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-25 16:01:32 +0100 |
commit | 43470ab005512acb5f137aa6b9026ebcf3fcc142 (patch) | |
tree | 95a276e26f88757cd286ffcf30cbce0dae402394 /autotests | |
parent | f4d6a08811b0bf3a10a23ff703fc5a8ff1fcc624 (diff) | |
download | libquotient-43470ab005512acb5f137aa6b9026ebcf3fcc142.tar.gz libquotient-43470ab005512acb5f137aa6b9026ebcf3fcc142.zip |
Move run-tests.sh
Diffstat (limited to 'autotests')
-rwxr-xr-x | autotests/run-tests.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/autotests/run-tests.sh b/autotests/run-tests.sh new file mode 100755 index 00000000..b49f37a1 --- /dev/null +++ b/autotests/run-tests.sh @@ -0,0 +1,23 @@ +mkdir -p data +chmod 0777 data +docker run -v `pwd`/data:/data --rm \ + -e SYNAPSE_SERVER_NAME=localhost -e SYNAPSE_REPORT_STATS=no matrixdotorg/synapse:v1.24.0 generate +./.ci/adjust-config.sh +docker run -d \ + --name synapse \ + -p 1234:8008 \ + -p 8448:8008 \ + -p 8008:8008 \ + -v `pwd`/data:/data matrixdotorg/synapse:v1.24.0 +echo Waiting for synapse to start... +until curl -s -f -k https://localhost:1234/_matrix/client/versions; do echo "Checking ..."; sleep 2; done +echo Register alice +docker exec synapse /bin/sh -c 'register_new_matrix_user --admin -u alice -p secret -c /data/homeserver.yaml https://localhost:8008' +echo Register bob +docker exec synapse /bin/sh -c 'register_new_matrix_user --admin -u bob -p secret -c /data/homeserver.yaml https://localhost:8008' +echo Register carl +docker exec synapse /bin/sh -c 'register_new_matrix_user --admin -u carl -p secret -c /data/homeserver.yaml https://localhost:8008' + +cd build/ && GTEST_COLOR=1 ctest --verbose +rm -rf ./data/* +docker rm -f synapse 2>&1>/dev/null |