Run a test in an air gap?

Using CTest, is it possible to run a single test case in an air gapped environment (not allowing any network access)? I’m assuming this would actually involve running some kind of wrapper script or tool that sets up the air gapped environment and then executes the actual command. Does anyone know of such a tool, or how to write such a wrapper script?

nsenter could work. Using a container with --network=none and the appropriate directories made through mounts should also suffice.

1 Like