mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Rename more testfiles
This commit is contained in:
parent
2c382d8c7f
commit
e2d9aa9a42
|
|
@ -2,16 +2,17 @@
|
||||||
|
|
||||||
Dendrite uses [SyTest](https://github.com/matrix-org/sytest) for its
|
Dendrite uses [SyTest](https://github.com/matrix-org/sytest) for its
|
||||||
integration testing. When creating a new PR, add the test IDs (see below) that
|
integration testing. When creating a new PR, add the test IDs (see below) that
|
||||||
your PR should allow to pass to `testfile` in dendrite's root directory. Not all
|
your PR should allow to pass to `sytest-whitelist` in dendrite's root
|
||||||
PRs need to make new tests pass. If we find your PR should be making a test pass
|
directory. Not all PRs need to make new tests pass. If we find your PR should
|
||||||
we may ask you to add to that file, as generally Dendrite's progress can be
|
be making a test pass we may ask you to add to that file, as generally
|
||||||
tracked through the amount of SyTest tests it passes.
|
Dendrite's progress can be tracked through the amount of SyTest tests it
|
||||||
|
passes.
|
||||||
|
|
||||||
## Finding out which tests to add
|
## Finding out which tests to add
|
||||||
|
|
||||||
We recommend you run the tests locally by manually setting up SyTest or using a
|
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 `sytest-whitelist`.
|
||||||
|
|
||||||
You should proceed after you see no build problems for dendrite after running:
|
You should proceed after you see no build problems for dendrite after running:
|
||||||
|
|
||||||
|
|
@ -50,16 +51,16 @@ EOF
|
||||||
Run the tests:
|
Run the tests:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./run-tests.pl -I Dendrite::Monolith -d ../dendrite/bin -W ../dendrite/testfile -O tap --all | tee results.tap
|
./run-tests.pl -I Dendrite::Monolith -d ../dendrite/bin -W ../dendrite/sytest-whitelist -O tap --all | tee results.tap
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
||||||
any newly passing test names to `testfile` in the project's root directory:
|
any newly passing test names to `sytest-whitelist` in the project's root directory:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
../dendrite/show-expected-fail-tests.sh results.tap ../dendrite/testfile ../dendrite/sytest-blacklist
|
../dendrite/show-expected-fail-tests.sh results.tap ../dendrite/sytest-whitelist ../dendrite/sytest-blacklist
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
|
|
@ -75,4 +76,4 @@ docker run --rm -v /path/to/dendrite/:/src/ matrixdotorg/sytest-dendrite
|
||||||
|
|
||||||
where `/path/to/dendrite/` should be replaced with the actual path to your
|
where `/path/to/dendrite/` should be replaced with the actual path to your
|
||||||
dendrite source code. The output should tell you if you need to add any tests to
|
dendrite source code. The output should tell you if you need to add any tests to
|
||||||
`testfile`.
|
`sytest-whitelist`.
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#
|
#
|
||||||
# For each of these files, lines starting with '#' are ignored.
|
# For each of these files, lines starting with '#' are ignored.
|
||||||
#
|
#
|
||||||
# Usage ./show-expected-fail-tests.sh results.tap testfile [blacklist_file]
|
# Usage ./show-expected-fail-tests.sh results.tap whitelist [blacklist]
|
||||||
|
|
||||||
results_file=$1
|
results_file=$1
|
||||||
whitelist_file=$2
|
whitelist_file=$2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue