zephyr/samples/net/sockets/tcp
Torsten Rasmussen 407b49b35c cmake: use find_package to locate Zephyr
Using find_package to locate Zephyr.

Old behavior was to use $ENV{ZEPHYR_BASE} for inclusion of boiler plate
code.

Whenever an automatic run of CMake happend by the build system / IDE
then it was required that ZEPHYR_BASE was defined.
Using ZEPHYR_BASE only to locate the Zephyr package allows CMake to
cache the base variable and thus allowing subsequent invocation even
if ZEPHYR_BASE is not set in the environment.

It also removes the risk of strange build results if a user switchs
between different Zephyr based project folders and forgetting to reset
ZEPHYR_BASE before running ninja / make.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-03-27 16:23:46 +01:00
..
src
CMakeLists.txt
README.rst
overlay-debug.conf
overlay-e1000.conf
overlay-log-extra.conf
overlay-log-extra2.conf
overlay-log-pkt.conf
overlay-log.conf
overlay-max-stacks.conf
overlay-nommu.conf
overlay-slip.conf
prj.conf
sample.yaml

README.rst

.. _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 experimental TCP (TCP2).

Building, Running and executing TTCN-3 based Sanity Check for TCP2
******************************************************************

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 TCP2 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