Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Feature/cdt tester #317

Closed
wants to merge 26 commits into from
Closed

Feature/cdt tester #317

wants to merge 26 commits into from

Conversation

larryk85
Copy link
Contributor

@larryk85 larryk85 commented Dec 11, 2018

This new functionality allows for contract code to be compiled natively. And a new tester framework to utilize this functionality.

  • eosio-cpp / eosio-ld
    • new flag fnative added to allow for native compiles and linking
  • libnative/cdt tester
    • libc, libcxx, eosiolib are now built for native and wasm versions
    • a new library with a minimal crt and functionality to set and get intrinsics at runtime.
      • eosio_assert*, memcpy/cmp/move, softfloat and builtins are pre-implemented and fixed.
      • print* intrinsics are pre-implemented and allowable to be reset at runtime.
    • a new tester library with REQUIRE_ASSERT, CHECK_ASSERT, REQUIRE_EQUAL, CHECK_EQUAL macros/ functions defined to allow for "catching" assertions and comparing the assert message, and to pass/fail accordingly and to pass/fail based on some predicate. The REQUIRE vs. CHECK versions are much the same as BOOST test framework, as in the REQUIRE variant will kill the test immediately and CHECK will fail the test as a whole but allow for sub checks to evaluate.

@larryk85 larryk85 mentioned this pull request Dec 12, 2018
@larryk85
Copy link
Contributor Author

Superceded by PR #318

@larryk85 larryk85 closed this Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant