Dear All, We have developed an application for which we would like to check the code coverage. We have used gcov available in android toolchain.
In our Android.mk file we have added the following LOCAL_FLAGS and included the libgcov static library. LOCAL_CFLAGS:= -fprofile-arcs -ftest-coverage LOCAL_STATIC_LIBRARIES := libgcov We got some compilation issues which was resolved by copying the libgcov library from prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/android/libgcov.a using BUILD_PREBUILT make rules. The output executable size is also increased with this and in out folder was can see *.gcno files getting created. When we execute the test *.gcda files are generated on target but when we try to take the code coverage using lcov it is not generating the code coverage report. lcov --directory code_coverage/ --capture --output-file ./code_coverage.info genhtml -o code_coverage/ ./code_coverage.info We have tested the same setup with arm-linux toolchain and it works fine. Please provide some pointer which we can look into. Regards, Manish -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

