summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-04-14 11:47:26 +0000
committerLudovic Courtès <ludo@gnu.org>2008-04-14 11:47:26 +0000
commitf875c682d4e64e58f99b54d2d91c17ffe598b0f7 (patch)
tree3e6e2fbb8bbf0bcd7a0bd857480919af88fc6ef2 /pkgs
parent2086656c45cd0f08eb87a7b4f5a0cb3a7681080b (diff)
downloadnixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.tar
nixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.tar.gz
nixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.tar.bz2
nixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.tar.lz
nixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.tar.xz
nixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.tar.zst
nixlib-f875c682d4e64e58f99b54d2d91c17ffe598b0f7.zip
Add DejaGNU, a testing framework.
svn path=/nixpkgs/trunk/; revision=11623
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/misc/dejagnu/default.nix37
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/dejagnu/default.nix b/pkgs/development/tools/misc/dejagnu/default.nix
new file mode 100644
index 000000000000..0c7cad6424af
--- /dev/null
+++ b/pkgs/development/tools/misc/dejagnu/default.nix
@@ -0,0 +1,37 @@
+{ fetchurl, stdenv, expect, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "dejagnu-1.4.4";
+
+  src = fetchurl {
+    url = "mirror://gnu/dejagnu/${name}.tar.gz";
+    sha256 = "13841q6pfwd9d1sdw48yxdyb4xhiccii0mb0ilql627v43pyvyyh";
+  };
+
+  buildInputs = [ expect makeWrapper ];
+
+  doCheck = true;
+
+  postInstall = ''
+    wrapProgram "$out/bin/runtest" \
+                --prefix PATH ":" "${expect}/bin"
+  '';
+
+  meta = {
+    description = "The DejaGNU testing framework";
+    
+    longDescription = ''
+      DejaGnu is a framework for testing other programs.  Its purpose
+      is to provide a single front end for all tests.  Think of it as a
+      custom library of Tcl procedures crafted to support writing a
+      test harness.  A test harness is the testing infrastructure that
+      is created to support a specific program or tool.  Each program
+      can have multiple testsuites, all supported by a single test
+      harness.  DejaGnu is written in Expect, which in turn uses Tcl --
+      Tool command language.
+    '';
+
+    homepage = http://www.gnu.org/software/dejagnu/;
+    license = "GPLv2+";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 5fe4cdbb8be2..93032f0b45e0 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1959,6 +1959,10 @@ let pkgs = rec {
     inherit fetchurl stdenv replace;
   };
 
+  dejagnu = import ../development/tools/misc/dejagnu {
+    inherit fetchurl stdenv expect makeWrapper;
+  };
+
   elfutilsFun = lib.sumArgs 
     (selectVersion ../development/tools/misc/elfutils "0.131") {
       inherit fetchurl stdenv;