tvm icon indicating copy to clipboard operation
tvm copied to clipboard

Issue with running cpp test

Open gittripley opened this issue 6 years ago • 2 comments

I followed the instruction in https://docs.tvm.ai/install/from_source.html to install the google test.

However, make cpptest failed, because of missing google test header files.

So I have to update the CMakeLists.txt to specify the path. Maybe I missed something.

Here is my changes. -find_path(GTEST_INCLUDE_DIR gtest/gtest.h) +find_path(GTEST_INCLUDE_DIR gtest/gtest.h "/usr/local/include")

If I run tests/scripts/task_cpp_unittest.sh, I got another error. Here is my update. -rm -f build/*_test +rm -f *_test

-for test in build/*_test; do +for test in *_test; do

gittripley avatar Dec 10 '19 06:12 gittripley

Please open a new thread on https://discuss.tvm.ai/ for development and troubleshooting. In your particular case, it depends on the folder you use for the change. Seems you are using the current root folder instead of the build folder.

tqchen avatar Dec 16 '19 16:12 tqchen

Hi have you resolved this problem? I meet the same one.

Sophia0806 avatar May 18 '20 07:05 Sophia0806