Net-test-suites include TCP test suites written in TTCN-3 for Eclipse titan.core (open source TTCN-3 compiler and runtime).
Test Suite | Description |
---|---|
tcp_suite.ttcn | This is a sample TCP suite using a black-box testing approach |
tcp2_check.ttcnpp | This is a sanity check suite for the experimental TCP that additionally uses a white-box testing with JSON-based test protocol |
Ubuntu: # sudo apt install g++ libxml2-dev libssl-dev expect
Fedora: # sudo dnf install gcc-c++ libxml2-devel openssl-devel expect
1.2 Install titan.core
To install titan.core onto the Linux host:
- Install through the package manager (Ubuntu):
# sudo apt install --no-install-recommends eclipse-titan
- Get a version from the project's download page
- Install from the source
# cd src
# ./make.sh
Test Suite | Command |
---|---|
tcp_suite.ttcn | # ttcn3_start test_suite tcp_suite.cfg |
tcp2_check.ttcnpp | # ttcn3_start test_suite tcp2_check_3_runs.cfg |
To run a single test:
# ttcn3_start test_suite tcp2_check_3_runs.cfg tcp2_check.test_tcp_connect_data_close
Test suites send Ethernet frames over UDP/IPv4 to the net-test-tools that support:
SUT interface | Default | Encapsulation |
---|---|---|
AF_UNIX | /tmp/slip.sock | SLIP |
PTY | - | SLIP |
TAP | - | - |
IPv4/UDP Endpoint | Purpose |
---|---|
localhost:7771 | net-test-tools interfaced to the SUT |
localhost:7777 | Test suite |
Ethernet MAC | TCP Endpoint | Purpose | Manual |
---|---|---|---|
00:00:00:00:00:01 | 192.0.2.1:4242 | SUT | Zephyr echo app manual, TCP2 manual |
00:00:00:00:00:02 | 192.0.2.2:4242 | Test suite | tcp_suite.ttcn, tcp2_check.ttcnpp |
All endpoints are configurable.
If you have an information about a security issue or vulnerability, please follow the process.