fakeroot: Add tests.nixos-etc

This commit is contained in:
Robert Hensing 2022-01-20 15:36:53 +01:00
parent f6e41af1e4
commit 7de8ea8ddd

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, getopt, libcap, gnused }:
{ lib, stdenv, fetchurl, fetchpatch, getopt, libcap, gnused, nixosTests }:
stdenv.mkDerivation rec {
version = "1.23";
@ -65,6 +65,13 @@ stdenv.mkDerivation rec {
patch -p1 < ${patch-wraptmpf}
'';
passthru = {
tests = {
# A lightweight *unit* test that exercises fakeroot and fakechroot together:
nixos-etc = nixosTests.etc.test-etc-fakeroot;
};
};
meta = {
homepage = "https://salsa.debian.org/clint/fakeroot";
description = "Give a fake root environment through LD_PRELOAD";