Merge #45774: linux_testing_bcachefs: upgrade, add tests
This commit is contained in:
commit
9b0649ae3e
@ -422,6 +422,7 @@ in rec {
|
|||||||
tests.yabar = callTest tests/yabar.nix {};
|
tests.yabar = callTest tests/yabar.nix {};
|
||||||
tests.zookeeper = callTest tests/zookeeper.nix {};
|
tests.zookeeper = callTest tests/zookeeper.nix {};
|
||||||
tests.morty = callTest tests/morty.nix { };
|
tests.morty = callTest tests/morty.nix { };
|
||||||
|
tests.bcachefs = callTest tests/bcachefs.nix { };
|
||||||
|
|
||||||
/* Build a bunch of typical closures so that Hydra can keep track of
|
/* Build a bunch of typical closures so that Hydra can keep track of
|
||||||
the evolution of closure sizes. */
|
the evolution of closure sizes. */
|
||||||
|
38
nixos/tests/bcachefs.nix
Normal file
38
nixos/tests/bcachefs.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import ./make-test.nix ({ pkgs, ... }: {
|
||||||
|
name = "bcachefs";
|
||||||
|
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ chiiruno ];
|
||||||
|
|
||||||
|
machine = { pkgs, ... }: {
|
||||||
|
virtualisation.emptyDiskImages = [ 4096 ];
|
||||||
|
networking.hostId = "deadbeef";
|
||||||
|
boot.supportedFilesystems = [ "bcachefs" ];
|
||||||
|
environment.systemPackages = with pkgs; [ parted ];
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
$machine->succeed("modprobe bcachefs");
|
||||||
|
$machine->succeed("bcachefs version");
|
||||||
|
$machine->succeed("ls /dev");
|
||||||
|
|
||||||
|
$machine->succeed(
|
||||||
|
"mkdir /tmp/mnt",
|
||||||
|
|
||||||
|
"udevadm settle",
|
||||||
|
"parted --script /dev/vdb mklabel msdos",
|
||||||
|
"parted --script /dev/vdb -- mkpart primary 1024M -1s",
|
||||||
|
"udevadm settle",
|
||||||
|
|
||||||
|
# Due to #32279, we cannot use encryption for this test yet
|
||||||
|
# "echo password | bcachefs format --encrypted /dev/vdb1",
|
||||||
|
# "echo password | bcachefs unlock /dev/vdb1",
|
||||||
|
"bcachefs format /dev/vdb1",
|
||||||
|
"mount -t bcachefs /dev/vdb1 /tmp/mnt",
|
||||||
|
"udevadm settle",
|
||||||
|
|
||||||
|
"bcachefs fs usage /tmp/mnt",
|
||||||
|
|
||||||
|
"umount /tmp/mnt",
|
||||||
|
"udevadm settle"
|
||||||
|
);
|
||||||
|
'';
|
||||||
|
})
|
@ -1,13 +1,13 @@
|
|||||||
{ stdenv, buildPackages, fetchgit, perl, buildLinux, ... } @ args:
|
{ stdenv, buildPackages, fetchgit, perl, buildLinux, ... } @ args:
|
||||||
|
|
||||||
buildLinux (args // rec {
|
buildLinux (args // rec {
|
||||||
version = "4.16.2018.08.03";
|
version = "4.18.2018.08.31";
|
||||||
modDirVersion = "4.16.0";
|
modDirVersion = "4.18.0";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://evilpiepirate.org/git/bcachefs.git";
|
url = "https://evilpiepirate.org/git/bcachefs.git";
|
||||||
rev = "e7a00a52b57336c04d1043c6fa0a67a7c8301cfb";
|
rev = "9c08efd02b827e6ee2a6e5a751045c6c6bd484d4";
|
||||||
sha256 = "1a0kvpazvvh0rfb9hkyr4zw55ndh060j95fvhf2aaaj9qyc7p7wp";
|
sha256 = "0xnkg0fpilmwckyb1drspggv3ibx8vkqic9ai53d5vx2rrnvvafw";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = "BCACHEFS_FS m";
|
extraConfig = "BCACHEFS_FS m";
|
||||||
@ -16,6 +16,7 @@ buildLinux (args // rec {
|
|||||||
branch = "master";
|
branch = "master";
|
||||||
hydraPlatforms = []; # Should the testing kernels ever be built on Hydra?
|
hydraPlatforms = []; # Should the testing kernels ever be built on Hydra?
|
||||||
maintainers = with stdenv.lib.maintainers; [ davidak chiiruno ];
|
maintainers = with stdenv.lib.maintainers; [ davidak chiiruno ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
} // (args.argsOverride or {}))
|
} // (args.argsOverride or {}))
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
, liburcu, zlib, libaio, zstd, lz4 }:
|
, liburcu, zlib, libaio, zstd, lz4 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "bcachefs-tools-unstable-2018-07-21";
|
name = "bcachefs-tools-unstable-2018-08-22";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
||||||
rev = "cecf7e05e151499a3e96dc05f97f37c14162e94b";
|
rev = "ebf97e8e01a8e76ff4bec23f29106430852c3081";
|
||||||
sha256 = "18vmyrjwza1iv0apkykbqsnnic5lrqlwfsrj85pgrpwzii36i8i0";
|
sha256 = "0f2ycin0gmi1a4fm7qln0c10zn451gljfbc2piy1fm768xqqrmld";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user