fuse: make tests run, but disable
This commit is contained in:
parent
c8baf7cc0c
commit
662756bb6d
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
, fusePackages, utillinux, gettext
|
, fusePackages, utillinux, gettext
|
||||||
, meson, ninja, pkgconfig
|
, meson, ninja, pkgconfig
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
, python3Packages, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -58,6 +59,14 @@ in stdenv.mkDerivation rec {
|
||||||
./makeconf.sh
|
./makeconf.sh
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
checkInputs = [ which ] ++ (with python3Packages; [ python pytest ]);
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
python3 -m pytest test/
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = false; # v2: no tests, v3: all tests get skipped in a sandbox
|
||||||
|
|
||||||
postFixup = "cd $out\n" + (if isFuse3 then ''
|
postFixup = "cd $out\n" + (if isFuse3 then ''
|
||||||
install -D -m444 etc/fuse.conf $common/etc/fuse.conf
|
install -D -m444 etc/fuse.conf $common/etc/fuse.conf
|
||||||
install -D -m444 etc/udev/rules.d/99-fuse3.rules $common/etc/udev/rules.d/99-fuse.rules
|
install -D -m444 etc/udev/rules.d/99-fuse3.rules $common/etc/udev/rules.d/99-fuse.rules
|
||||||
|
|
Loading…
Reference in a new issue