15 Commits (c159ffe491bb46921e5754e8e2c579a3bf889a3a)

Author SHA1 Message Date
Adriaan de Groot c159ffe491 [machineid] Polish up the tests
- create dirs as needed (this will normally be done by
  unsquash, but for tests with paths it needs to be done
  by hand)
- log what file is being checked
- filePath() doesn't like the absolute paths we have
  (they're absolute in the chroot, and existing code
  just sticks rootMountPoint in front)
6 years ago
Adriaan de Groot 5f7c9a00a0 [machineid] Test that random-files are created 6 years ago
Adriaan de Groot a5887e6dda [machineid] Test config-settings for entropy files 6 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.
6 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 6 years ago
Adriaan de Groot 6a02f2cfec [machineid] Fix tests
- Make tests more resilient: do them in a temp-dir, and clean it
  up after successful tests. This was prompted by tests failing
  because of things hanging around in /tmp.
7 years ago
Adriaan de Groot 371fe267b1 Merge branch 'better-hostname' 7 years ago
Adriaan de Groot b42520b0ef [machineid] Apply new STATICTEST specifier, hide implementation details 7 years ago
Adriaan de Groot 274115c727 [libcalamares] Update tests to reflect changed API 7 years ago
Adriaan de Groot 110a84344b [machineid] Test job function
- Create a job and ask it to create dbus files -- either directly,
   or as a symlink. Since the target chroot isn't viable, this will
   fail but we can at least see that directories are created, etc.
7 years ago
Adriaan de Groot 4cdcb48de6 [machineid] Functionality moved to libcalamares 7 years ago
Adriaan de Groot 8b4bd52a26 [machineid][hostinfo] Reduce warnings
- stray ;
 - clang-tidy had re-ordered the moc-warnings.h header, needs to go
   **before** the .moc so split into its own group
7 years ago
Adriaan de Groot 12107b3113 [machineid] Turn back the change in tests
- the *mount* module inserts a rootMountPoint without trailing /
   into global storage, so we can't assume that here. On the other
   hand, the paths passed in to the Worker functions are absolute
   paths -- adjust the tests to follow that.
7 years ago
Adriaan de Groot dd47201f27 [machineid] Fix tests by appending a /
- The code in Workers.cpp assumes that rootMountPoint ends in a /
   so that it can have filenames appended easily; make the tests
   fit that assumption, but still need to check that it is so in
   production.
7 years ago
Adriaan de Groot 2b9e1d6231 [machineid] Add tests
- Testing some of the functionality that's been added just now:
   - copyfile fails, buggy implementation
   - poolsize fails, buggy implementation
   - removefile not tested
7 years ago