Remove networking test
The two interfaces test is broken. This started when the Nic drivers were raised from the core children to the second-level init.
This commit is contained in:
parent
74ea4d0c12
commit
6cd7fc532c
|
@ -12,7 +12,6 @@ let
|
||||||
./bash.nix
|
./bash.nix
|
||||||
./hello.nix
|
./hello.nix
|
||||||
./log.nix
|
./log.nix
|
||||||
./networking.nix
|
|
||||||
./vmm_x86.nix
|
./vmm_x86.nix
|
||||||
./x86.nix
|
./x86.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
{
|
|
||||||
name = "networking";
|
|
||||||
nodes = {
|
|
||||||
|
|
||||||
a = { pkgs, ... }: { };
|
|
||||||
|
|
||||||
b = { config, pkgs, lib, ... }: {
|
|
||||||
networking.interfaces.eth1.genode.stack = null;
|
|
||||||
genode.init.children.ping = {
|
|
||||||
inputs = with pkgs.genodePackages; [ ping ];
|
|
||||||
|
|
||||||
routeToNics = [ "eth1" ];
|
|
||||||
|
|
||||||
configFile = let
|
|
||||||
ipA = builtins.head config.networking.interfaces.eth1.ipv4.addresses;
|
|
||||||
ipAddrB = with builtins;
|
|
||||||
head (attrNames
|
|
||||||
(lib.attrsets.filterAttrs (name: (any (host: host == "a")))
|
|
||||||
config.networking.hosts));
|
|
||||||
in pkgs.writeText "ping.dhall" ''
|
|
||||||
let Genode = env:DHALL_GENODE
|
|
||||||
|
|
||||||
let Init = Genode.Init
|
|
||||||
|
|
||||||
let Child = Init.Child
|
|
||||||
|
|
||||||
in Child.flat
|
|
||||||
Child.Attributes::{
|
|
||||||
, binary = "ping"
|
|
||||||
, resources = Init.Resources::{ ram = Genode.units.MiB 8 }
|
|
||||||
, config = Init.Config::{
|
|
||||||
, attributes = toMap
|
|
||||||
{ interface = "${ipA.address}/${
|
|
||||||
toString ipA.prefixLength
|
|
||||||
}"
|
|
||||||
, dst_ip = "${ipAddrB}"
|
|
||||||
, period_sec = "1"
|
|
||||||
, count = "10"
|
|
||||||
, verbose = "yes"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
testScript = ''
|
|
||||||
a.start()
|
|
||||||
a.wait_until_serial_output('lwIP Nic interface up address=192.168.1.1')
|
|
||||||
b.start()
|
|
||||||
b.wait_until_serial_output('child "ping" exited with exit value 0')
|
|
||||||
'';
|
|
||||||
}
|
|
Loading…
Reference in New Issue