040_add 317 B

12345678
  1. test_add_section()
  2. {
  3. touch ${CONFIG_DIR}/add
  4. section_name=$(${UCI} add add type)
  5. assertNotNull "uci add does not return a section name." $section_name
  6. sed 's/section/'$section_name'/' ${REF_DIR}/add_section.result > ${TMP_DIR}/add_section.result
  7. assertSameFile ${TMP_DIR}/add_section.result ${CHANGES_DIR}/add
  8. }