README 976 B

12345678910111213141516171819202122232425262728293031323334
  1. This test script uses shunit2 :
  2. http://code.google.com/p/shunit2/
  3. uci-static binary is used during tests.
  4. How to add a test
  5. =================
  6. * Test files are located in './test/tests.d'
  7. * These files contain shell functions beginning with 'test' :
  8. "
  9. test_get_option ()
  10. {
  11. ...
  12. }
  13. ...
  14. "
  15. * shunit2 functions can be used in these functions :
  16. http://shunit2.googlecode.com/svn/trunk/source/2.1/doc/shunit2.html
  17. * Additional environment variables are available :
  18. - ${CONFIG_DIR} : uci search path for config files. This directory is
  19. reset after each test.
  20. - ${CHANGES_DIR} : uci search path for config change files. This directory is
  21. reset after each test.
  22. - ${TMP_DIR} : path to a directory where can be stored temporary files
  23. during tests. This directory is reset after each test.
  24. - ${UCI} : uci static binary called with above config and changes
  25. directories as parameters.
  26. - ${REF_DIR} : path to a directory where can be stored reference files
  27. or data.