this exemple suppose :
- you clone the project in the directory
/home/user1
- you have an Android standalone located at
/home/user1/x-tools/NDKr17/arm64
update those path accordingly and check this page for reference https://github.com/snipsco/dinghy/blob/master/docs/android.md
Clone the snips-nlu-rs
project and the submodule, then enter the snips-nlu-lib
folder
git clone https://github.com/snipsco/snips-nlu-rs
cd snips-nlu-rs
git submodule update --init --recursive
cd snips-nlu-lib
while being in the snips-nlu-lib
, create a .dinghy
folder in the project top directory and edit the dinghy.toml
file
mkdir ../.dinghy
vi ../.dinghy/dinghy.toml
with the content :
[test_data]
data = "/home/user1/git/ML/snips-nlu-rs/data"
[platforms.android-arm64]
rustc_triple='aarch64-linux-android'
toolchain='/home/user1/x-tools/NDKr17/arm64'
cargo dinghy -v --platform android-arm64 test
the output will show test result: ok. 69 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out