core-admin/qubes/tests/integ
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
..
tools Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
__init__.py qubes: port core to python3 2017-01-20 16:42:51 +01:00
backup.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
backupcompatibility.py tests: improve handling backups in core3 2018-10-07 19:51:55 +02:00
basic.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
devices_pci.py tests: set virt_mode='hvm' for PCI tests 2018-01-26 23:49:11 +01:00
dispvm.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
dom0_update.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
mime.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
network.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
pvgrub.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
salt.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
storage.py tests/integ/storage: add file-reflink integration tests 2018-09-11 23:50:31 +00:00
vm_qrexec_gui.py tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00