query.py and web.py were moved from the project root and http/ into the
elixir/ package directory, but the find_program() calls in
TestEnvironment.pm were not updated to follow.
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
* Run pytest only for t, do not run tests for other libraries
* Add email and name git options to test repo init
* Change test repo permissions to avoid "dubious ownership" error
- Add sanity tests of line_mark_string
- Update TestHelpers::_parseq() to handle HTML section headers as
well as query.py section headers
- Add tests of web.py
- Note: don't look for 200 since web.py doesn't send an HTTP Status-Line.
- In web.py, update the shebang to use env(1). The hard-coded path
caused test failures on Travis, which runs Python in a virtualenv.
- Documentation fix: TestEnvironment::build_db() doesn't take a parameter
- t/100: check for the temporary directory automatically created, not
for t/db/.
- Remove .gitignore of t/db/
- Instead of creating standalone temporary data and repo dirs, create a
temporary LXR_PROJ_DIR and put the data and repo dirs under it.
- Change API test project name to match that now used in TestEnvironment
This is the beginning of the test infrastructure for web.py.
- find-file-doc-comments.pl: new file
- data.py: Add database to store doc-comment locations
- script.sh: Add parse-docs subcommand
- update.py:
- Add code to process doc comments
- Update some variable names in hopes of reducing confusion
- query.py:
- Add code to report doc comments
- Update some variable names in hopes of reducing confusion
Also:
- t/TestEnvironment.pm: Add find_doc attribute
- t/interact.pl: Don't die if update.py fails
- t/TestHelpers.pm: Permit checking specific sections of query.py output
- t/300: update regexes per the preceding
- gitignore tags (ctags output) and .cache (api_test.py output)
Run `./t/interact.pl` and it will build a database from `t/tree` and
leave you in a shell so you can experiment. When you exit the shell,
the temporary repo and database will be cleaned up.
Also:
- TestEnvironment: add report() function to produce a human-readable
summary of the environment
- TestHelpers: turn on `strict` and `warnings` so the caller doesn't
have to manually `use strict` and `use warnings`.
- Create new class t/TestEnvironment.pm. A TestEnvironment instance
owns a temporary Git repo and a temporary Elixir database directory.
- Update t/100-basic.t to use TestEnvironment.
- Add constant MUST_SUCCEED so `run_produces_ok()` calls are more
self-documenting