1 set LUA_CPATH and ucilua for convenience:
4 $ [ -n "$UCI_LUA" ] && export LUA_CPATH="$(dirname "$UCI_LUA")/?.so"
5 $ alias ucilua="valgrind --quiet --leak-check=full lua -luci"
7 check available methods:
9 $ ucilua -e 'table.foreach(uci,function(m) print(m) end)'
37 $ cp -R "$TESTDIR/config" .
38 $ export CONFIG_DIR=$(pwd)/config
39 $ ucilua $TESTDIR/lua/basic.lua
59 nil\tuci: Parse error (EOF with unterminated ') at line 1, byte 18 (esc)