anchor.diff:          machine.succeed("systemctl status systemd-cryptsetup@luks1.service")
           machine.succeed("mkdir -p /tmp/luks1")
           machine.succeed("mount /dev/mapper/luks1 /tmp/luks1")
  +
  +    # Do some IP traffic
  +    output_ping = machine.succeed(
  +        "systemd-run --wait -- /run/wrappers/bin/ping -c 1 127.0.0.1 2>&1"
  +    )
  +
  +    with subtest("systemd reports accounting data on system.slice"):
  +        output = machine.succeed("systemctl status system.slice")
  +        assert "CPU:" in output
  +        assert "Memory:" in output
  +
  +        assert "IP:" in output
  +        assert "0B in, 0B out" not in output
  +
  +        assert "IO:" in output
  +        assert "0B read, 0B written" not in output
  +
  +    with subtest("systemd per-unit accounting works"):
  +        assert "IP traffic received: 84B" in output_ping
  +        assert "IP traffic sent: 84B" in output_ping
     '';
   })
  
positive.code:             "systemd-run --pty --property=Type=oneshot --property=DynamicUser=yes --property=User=iamatest whoami"
          )
  
      # Regression test for https://github.com/NixOS/nixpkgs/issues/35268
      with subtest("file system with x-initrd.mount is not unmounted"):
          machine.succeed("mountpoint -q /test-x-initrd-mount")
  
negative.code:         machine.wait_for_unit("multi-user.target")
          assert "fq_codel" in machine.succeed("sysctl net.core.default_qdisc")
  
      # Test systemd is configured to manage a watchdog
      with subtest("systemd manages hardware watchdog"):
          machine.wait_for_unit("multi-user.target")
  