Author: eelco
Date: Mon Sep 13 16:06:07 2010
New Revision: 23765
URL: https://svn.nixos.org/websvn/nix/?rev=23765&sc=1

Log:
* Add a trivial test that just starts a machine and shuts it down.

Added:
   nixos/trunk/tests/simple.nix
Modified:
   nixos/trunk/tests/default.nix

Modified: nixos/trunk/tests/default.nix
==============================================================================
--- nixos/trunk/tests/default.nix       Mon Sep 13 16:02:54 2010        (r23764)
+++ nixos/trunk/tests/default.nix       Mon Sep 13 16:06:07 2010        (r23765)
@@ -18,6 +18,7 @@
   proxy = makeTest (import ./proxy.nix);
   quake3 = makeTest (import ./quake3.nix);
   remote_builds = makeTest (import ./remote-builds.nix);
+  simple = makeTest (import ./simple.nix);
   subversion = makeTest (import ./subversion.nix);
   trac = makeTest (import ./trac.nix);
 }

Added: nixos/trunk/tests/simple.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixos/trunk/tests/simple.nix        Mon Sep 13 16:06:07 2010        (r23765)
@@ -0,0 +1,11 @@
+{ pkgs, ... }:
+
+{
+  machine = { config, pkgs, ... }: { };
+
+  testScript =
+    ''
+      startAll;
+      $machine->shutdown;
+    '';
+}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to