In order to bring consistency in-tree, migrate all samples to the use
the new prefix <zephyr/...>. Note that the conversion has been scripted:
```python
from pathlib import Path
import re
EXTENSIONS = ("c", "h", "cpp", "rst")
for p in Path(".").glob("samples/**/*"):
if not p.is_file() or p.suffix and p.suffix[1:] not in EXTENSIONS:
continue
content = ""
with open(p) as f:
for line in f:
m = re.match(r"^(.*)#include <(.*)>(.*)$", line)
if (m and
not m.group(2).startswith("zephyr/") and
(Path(".") / "include" / "zephyr" / m.group(2)).exists()):
content += (
m.group(1) +
"#include <zephyr/" + m.group(2) +">" +
m.group(3) + "\n"
)
else:
content += line
with open(p, "w") as f:
f.write(content)
```
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
|
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| overlay-debug.conf | ||
| overlay-e1000.conf | ||
| overlay-log-extra2.conf | ||
| overlay-log-extra.conf | ||
| overlay-log-pkt.conf | ||
| overlay-log.conf | ||
| overlay-max-stacks.conf | ||
| overlay-nommu.conf | ||
| overlay-slip.conf | ||
| prj.conf | ||
| README.rst | ||
| sample.yaml | ||
.. _sockets-tcp-sample: TCP Sample for TTCN-3 based Sanity Check ######################################## Overview ******** This application is used together with the TTCN-3 based sanity check to validate the functionality of the TCP. Building, Running and executing TTCN-3 based Sanity Check for TCP ***************************************************************** Compile and start the `net-test-tools`_: .. code-block:: console ./autogen.sh make ./loop-slipcat.sh Build the TCP sample app: .. code-block:: console cd samples/net/sockets/tcp mkdir build && cd build cmake -DBOARD=qemu_x86 -DOVERLAY_CONFIG="overlay-slip.conf" .. make run Compile and run the TCP sanity check `net-test-suites`_: .. code-block:: console . titan-install.sh . titan-env.sh cd src . make.sh ttcn3_start test_suite tcp2_check_3_runs.cfg .. _`net-test-tools`: https://github.com/intel/net-test-tools .. _`net-test-suites`: https://github.com/intel/net-test-suites