* Start of a GNU integration test (i.e. a variant of the NixOS

ISOs/tests that use the latest tarballs for GNU packages to provide
  a regression test for those GNU projects).

svn path=/nixos/trunk/; revision=20488
This commit is contained in:
Eelco Dolstra 2010-03-09 12:21:26 +00:00
parent a8aefffa09
commit cfcb5a1544
2 changed files with 21 additions and 0 deletions

View file

@ -7,6 +7,7 @@ with import ../lib/testing.nix { inherit nixpkgs services system; };
{
firefox = apply (import ./firefox.nix);
gnuIntegration = apply (import ./gnu-integration.nix);
installer = pkgs.lib.mapAttrs (name: complete) (call (import ./installer.nix));
kde4 = apply (import ./kde4.nix);
login = apply (import ./login.nix);

20
tests/gnu-integration.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
machine =
{ config, pkgs, ... }:
{
nixpkgs.config.packageOverrides = origPkgs: {
cpio = pkgs.lib.overrideDerivation origPkgs.cpio (origAttrs: {
src = /home/eelco/Dev/nixpkgs/cpio-2.10.91.tar.bz2;
patches = [];
});
};
};
testScript =
''
$machine->mustSucceed("cpio --help");
'';
}