diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-02-18 10:44:38 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-02-18 10:44:38 +0100 |
commit | 120524a139dbac5d55c952de5dba0e23ba1025f8 (patch) | |
tree | 0a0e12c4ca5755d39c6b828af6278394a098a1ab /autotests/run-tests.sh | |
parent | 6a7e21cfc542588d6bcf7efe839439bf9b632600 (diff) | |
download | libquotient-120524a139dbac5d55c952de5dba0e23ba1025f8.tar.gz libquotient-120524a139dbac5d55c952de5dba0e23ba1025f8.zip |
CI: setup mock Synapse before running ctest
To use this in CI required extending/fixing autotests/run-tests.sh:
it can now accept arguments that are further passed to ctest invocation,
and it no more cd's to the build directory because build directories
can be in all kinds of places, expecting the caller to pick
the directory upfront.
Diffstat (limited to 'autotests/run-tests.sh')
-rwxr-xr-x | autotests/run-tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autotests/run-tests.sh b/autotests/run-tests.sh index b49f37a1..adfb4ec1 100755 --- a/autotests/run-tests.sh +++ b/autotests/run-tests.sh @@ -18,6 +18,6 @@ docker exec synapse /bin/sh -c 'register_new_matrix_user --admin -u bob -p secre 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 +GTEST_COLOR=1 ctest --verbose "$@" rm -rf ./data/* docker rm -f synapse 2>&1>/dev/null |