From Fedora Project Wiki
This test case will show if modularity is enabled and that the system provides basic information about the available modules.
- Install Fedora. Modularity is available for all varieties of Fedora and it should be switched on by default. For the start, you could choose Fedora Workstation or Fedora Server.
- Log onto the system.
- Run a terminal application, such as gnome-terminal, or switch to a virtual console (Ctrl-Alt-F3). The following test will use dnf to work with the modules.
Note: For the time's being, users can work with modules using dnf. In the future, other package managers will be able to deal with it. Until then, do not attempt to test this approach using tools other than dnf.
How to test
- Check that dnf provides you with a list of all modules available to the system:
To do so, execute
dnf module list. You can also use the
--alloption, the results should be the same.
- Check that enabled modules can be listed.
dnf module list --enabledto get the list.
- Check disabled modules can be listed.
dnf module list --disabledto get the list.
- Check that dnf provides you with a list of modules that are installed on the system.
dnf module list --installedto get the list.
- Modularity and modular repositories should be enabled by default. If it for does not work for any reason, the test should be considered a fail.
- All above commands must run without any errors and they should provide the needed info. If they throw any error, report a bug, and the test fails.
dnf module list (--all)lists all modules and provides details, such as stream, version and profile. If this command returns an empty list, the test should be considered a fail.
dnf module list --enabledlists all enabled modules. The result can be an empty list, if there are no enabled modules.
dnf module list --disabledlists all disabled modules. The result can be an empty list, if there are no disabled modules.
dnf module list --installedlists all installed modules. The result can be an empty list, if there are no installed modules.