From cfcb5a1544159febc61de491530bea561b07b553 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Mar 2010 12:21:26 +0000 Subject: [PATCH] * 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 --- tests/default.nix | 1 + tests/gnu-integration.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 tests/gnu-integration.nix diff --git a/tests/default.nix b/tests/default.nix index a6a7b27fe2a..6806ca64adf 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -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); diff --git a/tests/gnu-integration.nix b/tests/gnu-integration.nix new file mode 100644 index 00000000000..199df9538d5 --- /dev/null +++ b/tests/gnu-integration.nix @@ -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"); + ''; +}