Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None of the functional test run in VS2019 #8

Open
Darveesh opened this issue Sep 18, 2020 · 0 comments
Open

None of the functional test run in VS2019 #8

Darveesh opened this issue Sep 18, 2020 · 0 comments

Comments

@Darveesh
Copy link

Darveesh commented Sep 18, 2020

Describe the bug
I have cloned the repo. Am able to compile the solution fine. All the tests in the tests project fail except the LIbraryTests. All the other tests result in the test host crashing. Stepping through the test, the error / crash happens when the KhivaArray Reference property is accessed. Not sure why this would be the case. See screen shot below.

To Reproduce
Using Visual Studio 2019 in the khiva install.bat script (in tools folder). Changed line:
cmake .. -DCMAKE_TOOLCHAIN_FILE="%path_to_vpkg%/scripts/buildsystems/vcpkg.cmake" -DKHIVA_USE_CONAN=OFF -DKHIVA_BUILD_JNI_BINDINGS=OFF -DKHIVA_BUILD_DOCUMENTATION=OFF -G "Visual Studio 16 2019"

Expected behavior
All tests should pass.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Environment information:

  • OS: Windows 10 x64
  • Version 1909
    image
  • Visual Studio 2019
  • Khiva dependencies versions : I ran the install.bat in the khiva tools director. Seems latest was downloaded. ArrayFire 3.6.2. Not sure how to tell the Boost version.

Additional context
When I run the test binaries in the khiva build\bin folder, the tests all pass. So the c/c++ khiva library seems fine as far as I can tell.
PS C:\Users\hooman\source\repos\khiva\build\bin> .\polynomial.exe
Running main() from C:\Users\hooman\source\repos\vcpkg\buildtrees\gtest\src\ase-1.10.0-7231afa423.clean\googletest\src\gtest_main.cc
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from PolynomialTests
[ RUN ] PolynomialTests.Polyfit1
�[32m[----------]�[0m CPU backend, device: Intel CPU
[ OK ] PolynomialTests.Polyfit1 (866 ms)
[ RUN ] PolynomialTests.Polyfit3
�[32m[----------]�[0m CPU backend, device: Intel CPU
[ OK ] PolynomialTests.Polyfit3 (1 ms)
[ RUN ] PolynomialTests.Roots
�[32m[----------]�[0m CPU backend, device: Intel CPU
[ OK ] PolynomialTests.Roots (6 ms)
[----------] 3 tests from PolynomialTests (876 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test suite ran. (878 ms total)
[ PASSED ] 3 tests.

@Darveesh Darveesh changed the title None of the functional test run None of the functional test run in VS2019 Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant