This project is a aging project that includes a TCP/Websocket/... for communication over a network. It allows multiple clients to connect to the server and execute defined TestCases.
This project is designed using mutil protocol to split upper layer and lower layer. Upper layer means Tester who decide test case, while lower layer means the objects who were tested.
+-----------------+ +----------------+ +--------------------+ | | | | | | | | TCP/Websocket/... | | TCP/CAN/UART/... | | | Tester +-----------------------+ Aging +-------------------------+ SRC5000 | | | | | | | | | | | | | +-----------------+ +----------------+ +--------------------+
To use this project, follow these steps:
Clone the project repository from git:
git clone https://e.coding.net/seer-group/src5000/aging.git
Install the required dependencies. This project relies on cmake, please install it using your package manager or build it from source.
sudo apt-get install cmake -y --fix-missing
Build the project using a C++ compiler. You can use CMake or any other build system of your choice. Refer to Usage for detailed steps.
Please enable pre-commit if you want to use git commit.
$ bash enable-pre-commit.sh
Compile the project using CMake or any other build system of your choice. Here we provide shell script to build the project.
bash build.sh
Example usage, here will built some bin:
➜ Aging git:(master) ✗ ll build/bin total 6.5M -rwxr-xr-x 1 tinska tinska 1.4M 7月 23 15:39 aging # aging program -rwxr-xr-x 1 tinska tinska 3.1M 7月 23 15:39 aging_gtests # aging gtest -rwxr-xr-x 1 tinska tinska 737K 7月 23 15:39 tcp_tester_demo # tcp tester demo -rwxr-xr-x 1 tinska tinska 1.3M 7月 23 15:39 ws_tester_demo # ws tester demo