eos icon indicating copy to clipboard operation
eos copied to clipboard

Crypto API tests

Open gleehokie opened this issue 8 years ago • 7 comments

gleehokie avatar Apr 27 '18 20:04 gleehokie

Hi @gleehokie

I saw that test_api/test_crypto unit test is working on slim branch and it has covered all the APIs defined in eosiolib/crypto.h. Can we have more explanation about what's missing here? Thanks!

andriantolie avatar Apr 30 '18 06:04 andriantolie

@andriantolie please check the code coverage report to validate the crypto functions are being tested.

gleehokie avatar May 02 '18 01:05 gleehokie

Okay

andriantolie avatar May 02 '18 03:05 andriantolie

Based on the latest code coverage report in build kite, all unit tests for wavm and binaryen pass. These unit tests include crypto_tests, so I'm going to close this ticket.

andriantolie avatar May 02 '18 03:05 andriantolie

When I run it locally,

  • tests/chain_test --run_test=api_tests/crypto_tests --report_level=detailed -- --verbose --binaryen passes
  • but tests/chain_test --run_test=api_tests/crypto_tests --report_level=detailed -- --verbose --wavm fails with 3030010 checktime_exceeded: allotted processing time was exceeded

I'm going to put this ticket back to TODO first for further checking

andriantolie avatar May 02 '18 03:05 andriantolie

Ah found it, it's actually now unittests/unit_test instead of tests/chain_test. Running it locally also produces the same result. I'm going to close this ticket

andriantolie avatar May 02 '18 07:05 andriantolie

@andriantolie how make contracts/test_api work? i don't know how push action what to this contracts

wangyilin1987 avatar Oct 22 '18 08:10 wangyilin1987