• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/uci/tests/shunit2/tests.d/100_changes

  1 test_changes_tailing_parts()
  2 {
  3         local c val
  4         for c in + '' @ ^ '|' '~'; do
  5                 touch ${CONFIG_DIR}/network
  6                 cat >${CHANGES_DIR}/network <<-EOF
  7                         ${c}network.foo bar
  8                         ${c}network.foo bar=baz
  9                         ${c}network.foo.bar baz
 10                         ${c}network.foo.bar baz=bazz
 11                 EOF
 12                 val=$(${UCI} changes)
 13                 assertNotSegFault "$?"
 14                 assertNull "$val"
 15         done
 16 }
 17 
 18 test_changes_missing_value()
 19 {
 20         local c val
 21         for c in + '' @ ^ '|' '~'; do
 22                 touch ${CONFIG_DIR}/network
 23                 mkdir -p ${CHANGES_DIR}
 24                 cat >${CHANGES_DIR}/network <<-EOF
 25                         ${c}network.foo
 26                         ${c}network.foo.bar
 27                 EOF
 28                 val=$(${UCI} changes)
 29                 assertNotSegFault "$?"
 30                 assertNull "$val"
 31         done
 32 }

This page was automatically generated by LXR 0.3.1.  •  OpenWrt