@@ -0,0 +1,24 @@
1+# Teach the kernel how to run armv7l and aarch64-linux binaries,
2+# and run GNU Hello for these architectures.
3+import ./make-test-python.nix ({ pkgs, ... }: {
4+ name = "systemd-binfmt";
5+ machine = {
6+ boot.binfmt.emulatedSystems = [
7+ "armv7l-linux"
8+ "aarch64-linux"
9+ ];
10+ };
11+
12+ testScript = let
13+ helloArmv7l = pkgs.pkgsCross.armv7l-hf-multiplatform.hello;
14+ helloAarch64 = pkgs.pkgsCross.aarch64-multiplatform.hello;
15+ in ''
16+ machine.start()
17+ assert "world" in machine.succeed(
18+ "${helloArmv7l}/bin/hello"
19+ )
20+ assert "world" in machine.succeed(
21+ "${helloAarch64}/bin/hello"
22+ )
23+ '';
24+})