16 Commits (21d24eeb8d5948124be865f9fc5d6ae299dcd85b)

Author SHA1 Message Date
Adriaan de Groot 21d24eeb8d [netinstall] Add tests for fallback loading
- first success that has data is kept
4 years ago
Adriaan de Groot 4dd6ecd54e [netinstall] Edge cases of zero, or unset, groups urls
- consumers may wait for loadingDone(), so always emit that
  even if no URL list is set.
4 years ago
Adriaan de Groot 9569105575 [netinstall] Extend tests with YAML syntax error and no-files-at-all 4 years ago
Adriaan de Groot 67effe4214 [netinstall] check in test that loading did not time out 4 years ago
Adriaan de Groot dfedc0fb21 [netinstall] Extend tests
- add an "empty" groups file
- run an event loop to give the loader the opportunity to load
4 years ago
Adriaan de Groot 5af37b0be3 [netinstall] Stub of tests for fallback-loading 4 years ago
Adriaan de Groot 7d5a209dd0 [modules] Warnings-- in tests (~Test() override) 5 years ago
Adriaan de Groot 1cd9b93a22 REUSE: Giant boilerplate cleanup
- point to main Calamares site in the 'part of' headers instead
  of to github (this is the "this file is part of Calamares"
  opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
  this is the 3-paragraph summary of the GPL-3.0-or-later, which has
  a meaning entirely covered by the SPDX tag.
5 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 5 years ago
Adriaan de Groot 960008b124 [netinstall] Allow rich descriptions of packages
- the *packages* list can now be package-names, or
  package-names-and-a-description.
5 years ago
Adriaan de Groot 938536c0c3 [netinstall] Allow post-creation loading of model data
- Instead of loading all in the constructor, provide a public
  setupModelData().
- This allows creating the model and setting it for UI, before
  the load completes.
5 years ago
Adriaan de Groot ebc1db6a7b [netinstall] Test loading of a whole (example) file 5 years ago
Adriaan de Groot f592a3f373 [netinstall] Expand tests to include group-checking
- Check groups
- Check whole treemodels recursively (this is not in PackageTreeItem,
  because that explicitly ignores the tree structure).
- Also a stub of checking example files (from the src dir)
5 years ago
Adriaan de Groot f7191ac29e [netinstall] Compare two PackageTreeItems
- Packages and groups check different fields for equality.
- Selected-state is **not** part of equality.
- Also operator !=
5 years ago
Adriaan de Groot 52d3f4417f [netinstall] Add explicit isGroup()
- Previously you would either need to know where in the tree a
  PackageTreeItem was, or guess that an empty packageName() means that
  it's a group.
5 years ago
Adriaan de Groot bca316299e [netinstall] Add tests
- Just some simple tests for the Items
- Test creation of package group from variant
- This needs Qt5::Gui to link because QStandardItem is a GUI class,
  although we can run the tests without a GUI.
5 years ago