mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Refine sytest.md
This commit is contained in:
parent
e51d9838a3
commit
39110cd254
|
|
@ -13,7 +13,7 @@ We recommend you run the tests locally by manually setting up sytest or using a
|
||||||
sytest docker image. After running the tests, a script will print the tests you
|
sytest docker image. After running the tests, a script will print the tests you
|
||||||
need to add to `testfile` for you.
|
need to add to `testfile` for you.
|
||||||
|
|
||||||
You should proceed after you see no build problems for dendrite by running:
|
You should proceed after you see no build problems for dendrite after running:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
@ -21,8 +21,10 @@ You should proceed after you see no build problems for dendrite by running:
|
||||||
|
|
||||||
### Manually Setting up sytest
|
### Manually Setting up sytest
|
||||||
|
|
||||||
Get a copy of sytest on the `develop` branch next to your dendrite
|
Make sure you have Perl v5+ installed, and get sytest with:
|
||||||
directory, and run the setup script:
|
|
||||||
|
(Note that this guide assumes your `sytest` checkout is next to your
|
||||||
|
`dendrite` checkout.)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone -b develop https://github.com/matrix-org/sytest
|
git clone -b develop https://github.com/matrix-org/sytest
|
||||||
|
|
@ -38,9 +40,9 @@ sudo -u postgres psql -c "CREATE DATABASE sytest_template OWNER dendrite"
|
||||||
mkdir -p "server-0"
|
mkdir -p "server-0"
|
||||||
cat > "server-0/database.yaml" << EOF
|
cat > "server-0/database.yaml" << EOF
|
||||||
args:
|
args:
|
||||||
user: $PGUSER
|
user: dendrite
|
||||||
database: $PGUSER
|
database: dendrite
|
||||||
host: $PGHOST
|
host: 127.0.0.1
|
||||||
type: pg
|
type: pg
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
@ -54,7 +56,7 @@ Run the tests:
|
||||||
where `tee` lets you see the results while they're being piped to the file.
|
where `tee` lets you see the results while they're being piped to the file.
|
||||||
|
|
||||||
Once the tests are complete, run the helper script to see if you need to add
|
Once the tests are complete, run the helper script to see if you need to add
|
||||||
anything, and add them as needed:
|
any newly passing test names to `testfile` in the project's root directory:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
../dendrite/show-expected-fail-tests.sh results.tap
|
../dendrite/show-expected-fail-tests.sh results.tap
|
||||||
|
|
@ -62,7 +64,7 @@ anything, and add them as needed:
|
||||||
|
|
||||||
If the script prints nothing/exits with 0, then you're good to go.
|
If the script prints nothing/exits with 0, then you're good to go.
|
||||||
|
|
||||||
### Using a sytest Docker Image
|
### Using a sytest Docker image
|
||||||
|
|
||||||
Ensure you have the latest image for sytest, then run the tests:
|
Ensure you have the latest image for sytest, then run the tests:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue