diff options
author | Artturi <Artturin@artturin.com> | 2022-03-06 11:19:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 11:19:48 +0200 |
commit | 0ba426a4757b603c8ea5da8dfba10e566844f51b (patch) | |
tree | 202e42ceb075349fe7aca7c84a02af2f9d256d40 /pkgs/tools/filesystems/e2fsprogs | |
parent | a13a62d93d8a3ea41b49aa72fd29b4182163ab9b (diff) | |
parent | ca20993e76da9d1b8b45752ccdc0ccbfa56eebee (diff) |
Merge pull request #156605 from kampka/e2fsprogs-test
e2fsprogs: Add test
Diffstat (limited to 'pkgs/tools/filesystems/e2fsprogs')
-rw-r--r-- | pkgs/tools/filesystems/e2fsprogs/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/e2fsprogs/default.nix b/pkgs/tools/filesystems/e2fsprogs/default.nix index d630c7d43f61c..6fbc0b9b45f28 100644 --- a/pkgs/tools/filesystems/e2fsprogs/default.nix +++ b/pkgs/tools/filesystems/e2fsprogs/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, buildPackages, fetchurl, fetchpatch, pkg-config, libuuid, gettext, texinfo , shared ? !stdenv.hostPlatform.isStatic +, e2fsprogs, runCommand }: stdenv.mkDerivation rec { @@ -65,6 +66,15 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + passthru.tests = { + simple-filesystem = runCommand "e2fsprogs-create-fs" {} '' + mkdir -p $out + truncate -s10M $out/disc + ${e2fsprogs}/bin/mkfs.ext4 $out/disc | tee $out/success + ${e2fsprogs}/bin/e2fsck -n $out/disc | tee $out/success + [ -e $out/success ] + ''; + }; meta = with lib; { homepage = "http://e2fsprogs.sourceforge.net/"; changelog = "http://e2fsprogs.sourceforge.net/e2fsprogs-release.html#${version}"; |