Created by: DannyIsFunny
An example of adding unit test for lite/core/tensor.cc
to test the function of DDimLite
How to compile and use this unit test :
Compile:
./lite/tools/build.sh --arm_os=android --arm_abi=armv8 --arm_lang=gcc test
(you can interrupt it after cmake and cd build.lite.android.armv8.gcc && make test_tensor
to accerate this procedure)
Compiling result : build.lite.android.armv8.gcc/lite/core/test_tensor
Test: (with mobilephone connected in developer mode)
chmod +x test_tensor && adb push test_tensor /data/local/tmp
adb shell `cd /data/local/tmp && ./test_tensor`