aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/csit/README.txt
blob: 0f91dbb55435e2ea521cd87dcde8a20254651df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#################################################
# Considerations:

  1. Considers each file inside the path "dmm/scripts/csit/run/" as a single test case.
  2. Considers all files inside "dmm/scripts/csit/run/" as Test scripts,
     So any helper files can be written in the path "dmm/scripts/csit/"
  3. Considers a test case as SUCCESS only when both the client and server echoes
     DMM_CSIT_TEST_PASSED during verification.

#################################################
# Call stack of each test script from CSIT script:

===============================================================================
./test_script.sh  action  which_node     interface_name      dut1_ip   dut2_ip
===============================================================================
./test_script.sh  setup      0        dut1_to_dut2_if_name   dut1_ip   dut2_ip
./test_script.sh  setup      1        dut2_to_dut1_if_name   dut1_ip   dut2_ip
./test_script.sh  run        0        dut1_to_dut2_if_name   dut1_ip   dut2_ip
./test_script.sh  run        1        dut2_to_dut1_if_name   dut1_ip   dut2_ip
./test_script.sh  verify     0
./test_script.sh  verify     1
./test_script.sh  log        0
./test_script.sh  log        1
./test_script.sh  cleanup    0
./test_script.sh  cleanup    1

[0-dut1, 1-dut2]

#################################################
# Want to write a new Test case ?

  1. make a new script in "dmm/scripts/csit/run/" with the help of
     "dmm/scripts/csit/template.sh".
  2. And handle all the actions in it(can go through existing scripts for reference).