core-admin/qubes/tests
Marek Marczykowski-Górecki 8dab298b89
tests: create testcases on module import if environment variable is set
If QUBES_TEST_TEMPLATES or QUBES_TEST_LOAD_ALL is set, create testcases
on modules import, instead of waiting until `load_tests` is called.
The `QUBES_TEST_TEMPLATES` doesn't require `qubes.xml` access, so it
should be safe to do regardless of the environment. The
`QUBES_TEST_LOAD_ALL` force loading tests (and reading `qubes.xml`)
regardless.

This is useful for test runners not supporting load_tests protocol. Or
with limited support - for example both default `unittest` runner and
`nose2` can either use load_tests protocol _or_ select individual tests.
Setting any of those variable allow to run a single test with those
runners.

With this feature used together load_tests protocol, tests could be
registered twice. Avoid this by not listing already defined test classes
in create_testcases_for_templates (according to load_tests protocol,
those should already be registered).
2018-10-10 00:08:29 +02:00
..
integ tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
tools Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
vm Add default_qrexec_timeout to qubes-prefs 2018-09-16 18:42:48 +00:00
__init__.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
api_admin.py app: uncouple pool setup from loading initial configuration 2018-09-11 23:50:25 +00:00
api_misc.py Update windows-related feature requests 2018-07-16 22:02:58 +02:00
api.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
app.py tests/app: test varlibqubes pool driver selection 2018-09-11 23:50:33 +00:00
devices_block.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
devices.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
events.py events: add support for wildcard event handlers 2018-01-06 00:40:19 +01:00
ext.py Update windows-related feature requests 2018-07-16 22:02:58 +02:00
extra.py Merge remote-tracking branch 'qubesos/pr/228' 2018-09-07 01:06:59 +02:00
firewall.py tests: fix firewall tests after 6e8e48e3 "Avoid UTC datetime" 2018-03-22 01:47:41 +01:00
init.py remove unused netid code 2017-11-11 02:37:37 +01:00
run.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
storage_file.py Merge branch 'devel-storage-fixes' 2018-03-21 02:06:25 +01:00
storage_kernels.py storage/kernel: skip modules.img block device if kernel dir doesn't have it 2018-02-27 04:35:05 +01:00
storage_lvm.py tests: fix handling app.pools iteration 2018-07-15 21:31:48 +02:00
storage_reflink.py tests/storage_reflink: test some file-reflink helpers 2018-09-11 23:50:32 +00:00
storage.py app: create /var/lib/qubes as file-reflink if supported 2018-09-11 23:50:26 +00:00
tarwriter.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00