1 import ./make-test-python.nix (
10 allowedUDPPorts = [ 4791 ]; # open RoCE port
11 allowedTCPPorts = [ 4800 ]; # port for test utils
15 interfaces = [ "eth1" ];
19 environment.systemPackages = with pkgs; [
35 # Test if rxe interface comes up
36 server.wait_for_unit("default.target")
37 server.succeed("systemctl status rxe.service")
38 server.succeed("ibv_devices | grep rxe_eth1")
40 client.wait_for_unit("default.target")
43 for proto in "rc", "uc", "ud", "srq":
45 "screen -dmS {0}_pingpong ibv_{0}_pingpong -p 4800 -s 1024 -g0".format(proto)
47 client.succeed("sleep 2; ibv_{}_pingpong -p 4800 -s 1024 -g0 server".format(proto))
49 server.succeed("screen -dmS rping rping -s -a server -C 10")
50 client.succeed("sleep 2; rping -c -a server -C 10")