test: make source-tests relative to ./test/data/
This moves the `sources_tests` into ./test/data/sources/ and makes the entire test use `locate_test_data()` to get relative paths for their accesses. This further improves our test cases to support running from installments rather than local checkouts. We need access to ./test/data guarded, so we can install packages and still have the tests access the correct paths. This also adjusts the HTTP-Server we use in the test to serve data relative to a path it is handed. I now chose `./test/data`, which will easily allow us to re-use the same HTTP-Server in the future for other tests that require it.
This commit is contained in:
parent
4b85f48b12
commit
6e8562f712
35 changed files with 52 additions and 41 deletions
|
|
@ -28,3 +28,8 @@ do not allow comments, this file shortly describes their purpose.
|
|||
then stored in the same directory with the `mpp-*` prefix dropped. The
|
||||
generated files are committed to the repository. Nevertheless, if you need to
|
||||
regenerate them, use `make test-data`.
|
||||
|
||||
* `./sources/`:
|
||||
This directory contains test-data for runtime tests of the source-engines. It
|
||||
contains a directory that is served via HTTP in the tests, and a directory of
|
||||
test-cases what to expect when using the attached `sources.json`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue