Compare commits

...

2 Commits

Author SHA1 Message Date
Richard van der Hoff
2f6cf12255 fixes 2024-04-23 12:05:37 +01:00
Richard van der Hoff
769e9b11cf complement.sh: run tests from all test packages
... to save us remembering to add them to the list each time a new one is
added.
2024-04-23 11:42:20 +01:00
2 changed files with 8 additions and 4 deletions

1
changelog.d/17115.misc Normal file
View File

@@ -0,0 +1 @@
`complement.sh`: run tests from all test packages.

View File

@@ -214,8 +214,6 @@ fi
extra_test_args=()
test_packages="./tests/csapi ./tests ./tests/msc3874 ./tests/msc3890 ./tests/msc3391 ./tests/msc3930 ./tests/msc3902 ./tests/msc3967"
# Enable dirty runs, so tests will reuse the same container where possible.
# This significantly speeds up tests, but increases the possibility of test pollution.
export COMPLEMENT_ENABLE_DIRTY_RUNS=1
@@ -278,7 +276,12 @@ fi
export PASS_SYNAPSE_LOG_TESTING=1
# Run the tests!
echo "Images built; running complement with ${extra_test_args[@]} $@ $test_packages"
cd "$COMPLEMENT_DIR"
go test -v -tags "synapse_blacklist" -count=1 "${extra_test_args[@]}" "$@" $test_packages
# This isn't whitespace-safe but *does* work on the prehistoric version of bash
# on OSX.
test_packages=( $(find ./tests -type d) )
echo "Images built; running complement with ${extra_test_args[@]} $@ ${test_packages[@]}"
go test -v -tags "synapse_blacklist" -count=1 "${extra_test_args[@]}" "$@" "${test_packages[@]}"