• source navigation  • identifier search  • freetext search  • 

Sources/uci/tests/shunit2/

Back Parent directory
Folder config/
Folder references/
Folder shunit2/
Folder tests.d/
File CMakeLists.txt 176 bytes
File Makefile 20 bytes
File README 976 bytes
File tests.sh 1636 bytes

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

This page was automatically generated by LXR 0.3.1.  •  OpenWrt