2008-04-14 12:47:26 +01:00
|
|
|
{ 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 ];
|
|
|
|
|
2008-10-16 21:11:21 +01:00
|
|
|
# FIXME: Enable when the /dev/pts problem is fixed.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# FIXME: The chroot /dev/pts is currently empty, which causes Expect
|
|
|
|
# to fail: http://www.linuxfromscratch.org//lfs/faq.html#no-ptys .
|
|
|
|
checkPhase = ''
|
|
|
|
# Provide `runtest' with a log name, otherwise it tries to run
|
|
|
|
# `whoami', which fails when in a chroot.
|
|
|
|
LOGNAME="nix-build-daemon" make check
|
|
|
|
'';
|
2008-04-14 12:47:26 +01:00
|
|
|
|
|
|
|
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+";
|
|
|
|
};
|
|
|
|
}
|