diff --git a/readme.md b/readme.md index cf6ed15..94be844 100644 --- a/readme.md +++ b/readme.md @@ -160,10 +160,17 @@ On Windows, `build.sh` expects [cybozulib_ext](https://github.com/herumi/cybozul ## options ``` -cmake .. USE_GMP=OFF ; without GMP +cmake .. MCL_USE_GMP=OFF ; without GMP ``` see `cmake .. -LA`. +## tests +make test binaries in `./bin`. +``` +cmake .. -DBUILD_TESTING=ON +make -j4 +``` + # How to build for wasm(WebAssembly) mcl supports emcc (Emscripten) and `test/bn_test.cpp` runs on browers such as Firefox, Chrome and Edge. diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 98d911c..9a4f635 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,5 @@ # Tests -set(MCL_TEST_BASE fp_test ec_test fp_util_test window_method_test elgamal_test +set(MCL_TEST_BASE fp_test ec_test fp_util_test window_method_test elgamal_test bls12_test fp_tower_test gmp_test bn_test glv_test) foreach(base IN ITEMS ${MCL_TEST_BASE}) add_executable(${base} ${base}.cpp)