fakechroot: Add tests.nixos-etc
This commit is contained in:
parent
9809e1575b
commit
f6e41af1e4
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, perl }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, nixosTests, perl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fakechroot";
|
pname = "fakechroot";
|
||||||
|
@ -44,6 +44,13 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
tests = {
|
||||||
|
# A lightweight *unit* test that exercises fakeroot and fakechroot together:
|
||||||
|
nixos-etc = nixosTests.etc.test-etc-fakeroot;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/dex4er/fakechroot";
|
homepage = "https://github.com/dex4er/fakechroot";
|
||||||
description = "Give a fake chroot environment through LD_PRELOAD";
|
description = "Give a fake chroot environment through LD_PRELOAD";
|
||||||
|
|
Loading…
Reference in a new issue