Commit Graph

7 Commits

Author SHA1 Message Date
David Wilson 6614d17021 tests: explicit sudo rules to require password from sudo_nopw
This account is used on Travis. It needs to be forced to type passwords
in some cases
2018-04-17 12:41:49 +01:00
David Wilson ba8022424b tests: more work to standardize user accounts. 2018-04-16 18:35:13 +01:00
David Wilson 6390e36a4e tests: document selecting a target distribution. 2018-04-16 14:27:55 +01:00
David Wilson f203a91e1a tests: support CentOS Docker images.
- namespace & document test accounts in README.md
- standardize the password format everywhere, and ensure the passwords
  differ everywhere.
- Add MITOGEN_TEST_DISTRO environment variable.
2018-04-16 14:24:39 +01:00
Alex Willmer dc60f05a40 tests: Switch to unit2 test runner, with coverage
This means test files are imported as modules, not run as scripts. THey
can still be run individually if so desired. Test coverage is measured,
and an html report generated in htmlcov/. Test cases are automativally
discovered, so they need not be listed twice. An overall
passed/failed/skipped summary is printed, rather than for each file.

Arguments passed to ./test are passed on to unit2. For instance

    ./test -v

will print each test name as it is run.
2018-04-01 01:43:45 +01:00
David Wilson 23f78ca5a2 README: move testing bits into tests directory. 2018-03-19 21:58:32 +05:45
David Wilson 40e2e6eb4c Add README.md to tests subdir. 2018-03-19 21:35:36 +05:45