imramakrishnak / net-test-suites

TCP protocol test suite written for titan.core (open source TTCN-3 compiler and runtime).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Net-test-suites

Net-test-suites include a few 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 an example TCP suite using black box testing approach.
tcp2_check.ttcnpp This is a sanity check suite for experimental TCP (TCP2) realizing a white box testing model with the help of JSON based test protocol.

Both suites will be merged and use a hybrid approach, i.e. black box model with optionally enablable white box features.

Test protocol will be transformed into reusable component (at both sides), suitable for testing of other network protocols/technologies.

1 Build and Run

1.1 Install Dependencies

Ubuntu: # sudo apt-get install g++ libxml2-dev libssl-dev expect

Fedora: # sudo dnf install gcc-c++ libxml2-devel openssl-devel expect

1.2 Install titan.core

Options to install titan.core onto your Linux host:

  • Install with the supplied script (~/titan): # . titan-install.sh
  • Get a suitable version from project's download page.
  • Install from the source.
  • Ubuntu's default titan.core (packaged incorrectly, not recommended): # sudo apt-get install eclipse-titan

1.3 Set the Environment

# . titan-env.sh

For Ubuntu's packaged titan.core, TTCN3_DIR=/usr.

1.4 Build

# cd src
# . make.sh

1.5 Run

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 any single test from the suite:

# ttcn3_start test_suite tcp2_check_3_runs.cfg tcp2_check.test_tcp_connect_data_close

2 Description

Test suites send Ethernet frames over UDP/IPv4 to net-test-tools that support:

SUT interface Default Encapsulation
AF_UNIX /tmp/slip.sock SLIP
PTY - SLIP
TAP - -

2.1 Endpoints

IPv4/UDP Endpoint Purpose
localhost:7771 net-test-tools interfaced to system under test
localhost:7777 Test suite
Ethernet MAC TCP Endpoint Purpose Manual
00:00:00:00:00:01 192.0.2.1:4242 System under test 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.

Reporting a Security Issue

If you have information about a security issue or vulnerability, please follow the process.

About

TCP protocol test suite written for titan.core (open source TTCN-3 compiler and runtime).

License:GNU Lesser General Public License v2.1


Languages

Language:C++ 87.1%Language:Shell 12.9%