homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.11k stars 761 forks source link

How to run the GTest #325

Closed Hezer-XIII closed 4 years ago

Hezer-XIII commented 4 years ago

Hello,

I've started using this library yesterday, but I'm not able to ran the GTest. This is what I've done:

But when I want to run the test via ./bin/runTests, there is no bin folder (and no runTests file). Maybe I forgot one step, but which one?

Thanks you, Hezer

olimasters commented 4 years ago

Hi,

This is a bit of a quirk of how our cmake-based build system works. Since you've used the package build option, the easiest way to run the tests is just to run

make test

from inside your build directory. Alternatively, you can use the test runner executable directly, which should have the path build/dependencies/Build/helib_external/tests/runTests.

Hope this helps!

Hezer-XIII commented 4 years ago

Yes, thanks you! Every thing is ok now!