Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/nixos/tests/simple.nix

12 lines
191 B
Nix
Raw Normal View History

Make it easier to run the tests 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.)
2014-04-14 14:02:44 +02:00
import ./make-test.nix {
* Add a trivial test that just starts a machine and shuts it down. svn path=/nixos/trunk/; revision=23765
2010-09-13 16:06:07 +00:00
machine = { config, pkgs, ... }: { };
testScript =
''
startAll;
Make it easier to run the tests 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.)
2014-04-14 14:02:44 +02:00
$machine->waitForUnit("multi-user.target");
* Add a trivial test that just starts a machine and shuts it down. svn path=/nixos/trunk/; revision=23765
2010-09-13 16:06:07 +00:00
$machine->shutdown;
'';
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 223ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API