Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
libstore-network.hh File Reference
#include <gtest/gtest.h>

Go to the source code of this file.

Classes

class  nix::testing::LibStoreNetworkTest

Functions

void nix::testing::setupNetworkTests ()

Variables

bool nix::testing::networkTestsAvailable = false

Function Documentation

◆ setupNetworkTests()

void nix::testing::setupNetworkTests ( )

Set up network tests and, if on linux, create a new network namespace for tests with a loopback interface. This is to avoid binding to ports in the host's namespace.

Variable Documentation

◆ networkTestsAvailable

bool nix::testing::networkTestsAvailable = false

Whether to run network tests. This is global so that the test harness can enable this by default if we can run tests in isolation.