Media-Transport-Library

Test Script Helper

1. Prepare the test resource files, copy to current folder

2. Loop test

Loop test with all JSON files under loop_json directory.

2.1. Customize the port and IP(Optional)

cd loop_json/

Edit the port in change_port.sh as the setup, then run:

./change_port.sh

Use the random IP for JSON config file, run:

./random_ip.sh

2.2. Run the loop test

./loop_test.sh

Run below cmd for the software timing parser test with loop mode.

./loop_TP_test.sh

3. AFXDP loop test

AFXDP loop test with all JSON files under afxdp_json directory.

3.1. Setup the env(Optional)

cd afxdp_json/

Edit the setup.sh as the setup and also the JSON files, then run:

./setup.sh

3.2. Run the AFXDP loop test

./afxdp_test.sh

4. Dual core redundant test

./redundant_test.sh

5. Header split test(PF PMD mode only)

5.1. Bind to PF pmd mode with root

export PATH=$PATH:/usr/local/bin/
../../script/nicctl.sh bind_pmd 0000:af:00.0
../../script/nicctl.sh bind_pmd 0000:af:00.1

5.2. Run the test with loop JSON

./hdr_split_test.sh

6. Sample test

Customize sample_test.sh as the setup and run

./sample_test.sh