about summary refs log tree commit diff
path: root/nixos/tests/misc.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-05-30nixosTests.misc: Remove nix testsArtturin1-25/+0
Moved to `nixosTests.nix-misc`
2024-05-30nixosTests.misc: Revert nix changesArtturin1-185/+161
nix tests now moved to `nixosTests.nix-misc` Revert "nixos/tests/misc: support old and new path-info output structure" This reverts commit 903f315fe520023066de2bcf992404fd5e244ec3. Revert "nixos/tests/misc: call the tester `test` to be `callTest`-ed" This reverts commit b35ccb7fda289490130aa0372af05629174c2c11. Revert "nixos/tests/misc: rework and take ownership" This reverts commit 81854ca60475872c7946f0b70789260fb9c99460.
2024-05-30nixos/tests/misc: support old and new path-info output structureMartin Weinelt1-3/+6
2024-05-12nixos/tests/misc: call the tester `test` to be `callTest`-edRaito Bezarius1-1/+4
Otherwise, this will destroy the release machinery to collect all the systems. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-05-11nixos/tests/misc: rework and take ownershipRaito Bezarius1-161/+179
`nixosTests.misc` is an interesting smoketest as a last (cheap) line of defense against Nix regressions. We rework it to accept any arbitrary package manager for Lix. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2023-10-23nixos/systemd-tmpfiles: add settings optionDavHau1-0/+4
2023-05-12nixos/tests/misc.nix: get rid of `with lib`Anderson Torres1-9/+6
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2022-03-18nixos/tests: fix some evaluation errorsNaïm Favier1-3/+3
Fixes errors caught by "nixos/testing: restrict arguments to makeTest" as well as some unrelated errors and warnings.
2021-11-09nixos/tests/misc: fix nix 2.4 supportBernardo Meurer1-2/+3
2021-02-14nixosTests.*: update to use virtualisation.fileSystemsMaciej Krüger1-1/+1
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2020-12-01nixos/tests/misc: account for cgroupv2Luke Granger-Brown1-2/+2
Since #104094 (d22b3ed4bcd24dcc96fd9f99c75bb568bffe2a8c), NixOS is using the unified cgroup hierarchy by default (aka cgroupv2). This means the blkio controller isn't there, so we should test for something else (e.g. the presence of the io controller). Fixes #105581.
2020-08-15tests/misc: Test mount +s permissionDoron Behar1-0/+32
For #95444 Co-authored-by: Florian Klink <flokli@flokli.de>
2020-02-02nixosTests.misc: fix blkio sub-test with newer kernelsVladimír Čunát1-1/+1
The blkio.sectors file is no longer provided; by quick search: https://issues.apache.org/jira/browse/MESOS-9848 so hopefully it's sufficient to test existence of this other file: https://www.kernel.org/doc/html/v5.4/admin-guide/cgroup-v1/blkio-controller.html#common-files-among-various-policies Originally this sub-test was added in 58e40f84.
2020-02-01nixosTests.misc: port to pythonworldofpeace1-88/+76
2019-02-22Remove myself as maintainer from packagesFlorian Friesdorf1-1/+1
I'm currently not maintaining any packages.
2018-10-03nixos/tests/misc: Fix reboot-wtmp subtestaszlig1-0/+2
From commit b63f65aea0dea11c20e9299210af1d2ee4299b58: I used tmpfiles.d instead of activation snippets to create the logs. It's good enough for upstream and other distros; it's probably good enough for us. The "reboot-wtmp" subtest fails because it it assumes that there is a reboot record even on the initial boot. This is only the case if wtmp is created within the activation script, but the implementation now uses tmpfiles.d, so the creation of the file is done at a much later stage. Apart from that, if you think about the state after the installation as "first boot", using the term "reboot" wouldn't probably make sense either. So in our subtest, we now reboot the machine and check the wtmp record afterwards as we did before. Signed-off-by: aszlig <aszlig@nix.build> Cc: @edolstra, @jameysharp, @Mic92
2018-09-23nixos: doc: move non-service parts of `service.nixosManual` to ↵Jan Malakhovski1-1/+1
`documentation.nixos`
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-1/+1
2018-03-25nixos/tests/misc: Fix on aarch64Tuomas Tynkkynen1-1/+1
The psmouse module is for PS/2 mouse only, which doesn't exist outside x86. But we can test for the mousedev module just as well which is used for the '-device usb-tablet' emulated by QEMU.
2018-02-07VM tests: Initialize the Nix database with correct NAR hashes/sizesEelco Dolstra1-1/+10
2018-01-17sudo: define extra rules in Nix language (#33905)Leon Schuermann1-5/+0
2017-09-16nixos/tests: move kernel-params test to miscJoachim Fasting1-0/+6
2017-09-16nixos/tests: move sysctl test to miscJoachim Fasting1-0/+9
2017-07-11nixos tests.misc: unblock a man-page testVladimír Čunát1-1/+1
I'm not sure what's wrong, but the pages look OK. Discussion: https://github.com/NixOS/nixpkgs/pull/27061#issuecomment-314330032
2017-04-30nixos/tests: add tests for exercising various hardening featuresJoachim Fasting1-9/+0
This test exercises the linux_hardened kernel along with the various hardening features (enabled via the hardened profile). Move hidepid test from misc, so that misc can go back to testing a vanilla configuration.
2017-04-23nixos/tests/misc: check hidepid mount via /proc/mountsJoachim Fasting1-1/+1
2016-04-10nixos: add optional process information hidingJoachim Fasting1-0/+9
This module adds an option `security.hideProcessInformation` that, when enabled, restricts access to process information such as command-line arguments to the process owner. The module adds a static group "proc" whose members are exempt from process information hiding. Ideally, this feature would be implemented by simply adding the appropriate mount options to `fileSystems."/proc".fsOptions`, but this was found to not work in vmtests. To ensure that process information hiding is enforced, we use a systemd service unit that remounts `/proc` after `systemd-remount-fs.service` has completed. To verify the correctness of the feature, simple tests were added to nixos/tests/misc: the test ensures that unprivileged users cannot see process information owned by another user, while members of "proc" CAN. Thanks to @abbradar for feedback and suggestions.
2016-03-25nixos/tests: implement a trivial test for sudoJoachim Fasting1-0/+7
This is an alternative to NixOS/nixpkgs#6721, with improvements suggested by @edolstra
2016-02-06filesystems: use list of strings for fs optionsAneesh Agrawal1-1/+1
Allow usage of list of strings instead of a comma-separated string for filesystem options. Deprecate the comma-separated string style with a warning message; convert this to a hard error after 16.09. 15.09 was just released, so this provides a deprecation period during the 16.03 release. closes #10518 Signed-off-by: Robin Gloster <mail@glob.in>
2015-12-01nixos/tests/misc: start systemd-udev-settle manuallyLuca Bruno1-0/+1
systemd-udev-settle is not started by default anymore. Because checking for psmouse like that is considered legacy, we start systemd-udev-settle manually in the test. cc @edolstra
2015-07-12all tests: added meta.maintainers sectionJoachim Schiele1-3/+5
2015-04-07tests/misc.nix: Ensure that the Nix DB is initialised correctlyEelco Dolstra1-0/+4
2014-07-30Don't require a device for tmpfs filesystemsEelco Dolstra1-2/+1
2014-06-28name nixos tests, close #3078Florian Friesdorf1-0/+1
2014-06-13Set session variables in the shell as wellEelco Dolstra1-0/+4
2014-04-29Add a test for automountingEelco Dolstra1-4/+22
2014-04-25UrghEelco Dolstra1-3/+1
Can't figure out why "hostname -s" keeps failing randomly :-( http://hydra.nixos.org/build/10662142
2014-04-24Make nscd startup synchronousEelco Dolstra1-2/+2
Nscd forks into the background before it's ready to accept connections. So explicitly wait until it's ready. http://hydra.nixos.org/build/10661767
2014-04-24Try againEelco Dolstra1-0/+1
2014-04-24Make the misc test a bit more robustEelco Dolstra1-0/+1
2014-04-17Add option ‘systemd.tmpfiles.rules’Eelco Dolstra1-0/+11
This allows specifying rules for systemd-tmpfiles. Also, enable systemd-tmpfiles-clean.timer so that stuff is cleaned up automatically 15 minutes after boot and every day, *if* you have the appropriate cleanup rules (which we don't have by default).
2014-04-17Fix module loading in systemd-udevdEelco Dolstra1-0/+6
2014-04-14Make it easier to run the testsEelco Dolstra1-3/+1
You can now run a test in the nixos/tests directory directly using nix-build, e.g. $ nix-build '<nixos/tests/login.nix>' -A test This gets rid of having to add the test to nixos/tests/default.nix. (Of course, you still need to add it to nixos/release.nix if you want Hydra to run the test.)
2013-11-26Add a regression test for hostname / nss_myhostnameEelco Dolstra1-0/+6
Issue #1248.
2013-10-13Fix the misc testEelco Dolstra1-1/+2
http://hydra.nixos.org/build/6480163
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra1-0/+63