summaryrefslogtreecommitdiffstats
path: root/tests/cram/test_ucilua_testcases.t
blob: 6a0216b3ded8d83dc7a0d0adcc5c9b1488b79b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set LUA_CPATH and ucilua for convenience:

  $ [ -n "$UCI_LUA" ] && export LUA_CPATH="$(dirname "$UCI_LUA")/?.so"
  $ alias ucilua="valgrind --quiet --leak-check=full lua -luci"

check that changes method doesnt leak memory:

  $ cp -R "$TESTDIR/config" .
  $ export CONFIG_DIR=$(pwd)/config
  $ ucilua $TESTDIR/lua/test_cases/changes_doesnt_leak.lua

check that set method with empty table value doesn't leak memory:

  $ cp -R "$TESTDIR/config" .
  $ export CONFIG_DIR=$(pwd)/config
  $ ucilua $TESTDIR/lua/test_cases/set_with_empty_table_doesnt_leak.lua
  false\tCannot set an uci option to an empty table value (esc)