• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

data/14-Jan-2024-12,01912,008

static/14-Jan-2024-291203

templates/14-Jan-2024-5852

tests/14-Jan-2024-521445

BUILDD14-Jan-20241.3 KiB7263

README.mdD14-Jan-20241 KiB4938

WORKSPACED14-Jan-2024816 3023

app.pyD14-Jan-20244.2 KiB12694

json.luaD14-Jan-20248.4 KiB366280

lua.BUILDD14-Jan-2024764 3937

lua_engine.ccD14-Jan-202418.3 KiB501249

lua_engine.hD14-Jan-20247.7 KiB18740

package-lock.jsonD14-Jan-202417.6 KiB412411

package.jsonD14-Jan-2024314 1313

requirements.txtD14-Jan-2024155 99

rollup.config.jsD14-Jan-2024195 66

README.md

1Lua Interpreter
2=====
3
4The Lua Interpreter is a web-based IDE tool that can run Lua scripts with the specific Android Auto telemetry callbacks.
5
6## Prerequisites
7***
8Install the required node dependencies using npm with
9```
10sudo apt install nodejs
11npm install
12```
13
14Install Bazel with
15```
16sudo apt install bazel
17```
18
19Change the LUA_SRC inside the WORKSPACE file to point to the directory containing the headers
20of the Lua C API which should be in $ANDROID_BUILD_TOP/external/lua/src.
21
22## Running
23***
24Run the following commands on the command line to start the server:
25```
26npm run build; bazel run server
27```
28
29Open the link provided from starting the server to access the tool (the link is accessible from the terminal window).
30
31## Testing
32***
33The following commands assume you are at the root directory.
34
35To test everything, run:
36```
37bazel test --test_output=all //tests:lua_interpreter_tests
38```
39
40To test the server, run:
41```
42bazel test --test_output=all //tests:app_test
43```
44
45To test the Lua Engine, run:
46```
47bazel test --test_output=all //tests:lua_engine_test
48```
49