1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/tools/misc/dejagnu/default.nix

54 lines
1.7 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, expect, makeWrapper }:
stdenv.mkDerivation rec {
2018-07-21 08:48:59 +01:00
name = "dejagnu-1.6.1";
src = fetchurl {
url = "mirror://gnu/dejagnu/${name}.tar.gz";
2018-07-21 08:48:59 +01:00
sha256 = "14hnq1mh91vqprc43xdy4f15sycw6fbajrh7zi6cw2kyg6xjhnxz";
};
buildInputs = [ expect makeWrapper ];
doCheck = true;
# Note: The test-suite *requires* /dev/pts among the `build-chroot-dirs' of
# the build daemon when building in a chroot. See
# <http://thread.gmane.org/gmane.linux.distributions.nixos/1036> for
# details.
# The test-suite needs to have a non-empty stdin:
# https://lists.gnu.org/archive/html/bug-dejagnu/2003-06/msg00002.html
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 < /dev/zero
'';
postInstall = ''
wrapProgram "$out/bin/runtest" \
2013-09-07 06:55:55 +01:00
--prefix PATH ":" "${expect}/bin"
'';
2015-04-30 19:48:44 +01:00
meta = with stdenv.lib; {
description = "Framework for testing other programs";
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 = https://www.gnu.org/software/dejagnu/;
2015-04-30 19:48:44 +01:00
license = licenses.gpl2Plus;
2018-05-01 04:28:11 +01:00
platforms = platforms.unix;
2016-07-04 02:39:04 +01:00
maintainers = with maintainers; [ wkennington vrthra ];
};
}