git clone git@github.com:LeafScript/LeafPython.git
cd LeafPython
git submodule update --init --recursive
cd build
source completion.sh
./leafpy_test.sh -h
# example:
# ./leafpy_test.sh build -t demo -c file_mode
# ./leafpy_test.sh run -t demo -c file_mode
- First, install the
C++ TestMate
extension. - append the following code to your
settings.json
file:
{
"testMate.cpp.test.advancedExecutables": [
{
"name": "lib_test",
"pattern": "test/**/lib_test/**/*{test,Test,TEST}*",
},
{
"name": "testcore_test",
"pattern": "test/**/testcore_test/**/*{test,Test,TEST}*",
},
{
"name": "leafpy_test",
"pattern": "test/**/leafpy_test/**/*{test,Test,TEST}*",
},
]
}
- enter
build
directory - run command:
./leafpy_test.sh build -t <llt/hlt/benchmark> -c <case>
where <test_dir_name>
is one of the following: lib_test
, core_test/testcore_test
, core_test/leafpy_test