README.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. INTRODUCTION
  2. ------------
  3. The ipanattest allow its user to drive NAT testing. It is run thusly:
  4. # ipanattest [-d -r N -i N -e N -m mt]
  5. Where:
  6. -d Each test is discrete (create table, add rules, destroy table)
  7. If not specified, only one table create and destroy for all tests
  8. -r N Where N is the number of times to run the inotify regression test
  9. -i N Where N is the number of times (iterations) to run test
  10. -e N Where N is the number of entries in the NAT
  11. -m mt Where mt is the type of memory to use for the NAT
  12. Legal mt's: DDR, SRAM, or HYBRID (ie. use SRAM and DDR)
  13. -g M-N Run tests M through N only
  14. More about each command line option:
  15. -d Makes each test discrete; meaning that, each test will create a
  16. table, add rules, then destory the table.
  17. Conversely, when -d not specified, each test will not create
  18. and destroy a table. Only one table create and destroy at the
  19. start and end of the run...with all test being run in between.
  20. -r N Will cause the inotify regression test to be run N times.
  21. -i N Will cause each test to be run N times
  22. -e N Will cause the creation of a table with N entries
  23. -m mt Will cause the NAT to live in either SRAM, DDR, or both
  24. (ie. HYBRID)
  25. -g M-N Will cause test M to N to be run. This allows you to skip
  26. or isolate tests
  27. When run with no arguments (ie. defaults):
  28. 1) The tests will be non-discrete
  29. 2) With only one iteration of the tests
  30. 3) On a DDR based table with one hundred entries
  31. 4) No inotify regression will be run
  32. EXAMPLE COMMAND LINES
  33. ---------------------
  34. To execute discrete tests (create, add rules, and delete table for
  35. each test) one time on a table with one hundred entries:
  36. # ipanattest -d -i 1 -e 100
  37. To execute non-discrete (create and delete table only once) tests five
  38. times on a table with thirty-two entries:
  39. # ipanattest -i 5 -e 32
  40. To execute inotify regression test 5 times
  41. # ipanattest -r 5
  42. ADDING NEW TESTS
  43. ----------------
  44. In main.c, please see and embellish nt_array[] and use the following
  45. file as a model: ipa_nat_testMODEL.c