# Run a test in an air gap?

**URL:** https://discourse.cmake.org/t/run-a-test-in-an-air-gap/6799
**Category:** Usage
**Created:** [November 5, 2022, 8:41pm UTC](https://discourse.cmake.org/t/run-a-test-in-an-air-gap/6799 "2022-11-05T20:41:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![benthevining](https://discourse.cmake.org/user_avatar/discourse.cmake.org/benthevining/32/1924_2.png) [@benthevining](https://discourse.cmake.org/u/benthevining)
#### Post date: [November 5, 2022, 8:41pm UTC](https://discourse.cmake.org/t/run-a-test-in-an-air-gap/6799/1 "2022-11-05T20:41:35Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 6, 2022, 1:13pm UTC](https://discourse.cmake.org/t/run-a-test-in-an-air-gap/6799/2 "2022-11-06T13:13:24Z")

</div>

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