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

Light Client model-based testing #529

Closed
wants to merge 62 commits into from

Commits on Jul 31, 2020

  1. Configuration menu
    Copy the full SHA
    d9c6b5e View commit details
    Browse the repository at this point in the history
  2. #414: lite_tests: add Command/CommandRun wrapper for running external…

    … commands (e.g. apalache, jsonatr)
    andrey-kuprianov committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    0ac86a3 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2020

  1. Configuration menu
    Copy the full SHA
    e435ae3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f0e7599 View commit details
    Browse the repository at this point in the history
  3. #414: add first model-based test

    * defined structure for model-based single-step light client tests
    * added a simple driver for such tests modeled after original one in
    tests/lite.rs
    * add the first auto-generated model-based test
    * add symlinks to the TLA+ model
    
    The important change in the test structure is that now each input block
    carries with it the expected verdict, not a single expected result for the whole
    input array: the latter is unclear how to interpret in case of failures.
    
    Besides, having such more fine-grained verdicts allows to differentialte
    between different types of errors returned by the light client.
    andrey-kuprianov committed Aug 4, 2020
    Configuration menu
    Copy the full SHA
    b361b51 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2020

  1. Configuration menu
    Copy the full SHA
    08450a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2020

  1. Configuration menu
    Copy the full SHA
    04ab1aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f7b3165 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb478f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d65a72e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a720487 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    49ef36d View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2020

  1. Configuration menu
    Copy the full SHA
    b80159c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a3831b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e36ba00 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    368975c View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2020

  1. Configuration menu
    Copy the full SHA
    da11fc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ff0f93 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4715e18 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d223773 View commit details
    Browse the repository at this point in the history
  5. #414: Blockchain_A_1.tla: fix discrepancy between the model and the …

    …implementation
    
    In the current model (Blockchain_A_1.tla) the check InTrustingPeriod
    treats the edge case now = header.time + TRUSTING_PERIOD as valid,
    while the implementation treats it as invalid.
    `
    Changed the model to follow the implementation.
    andrey-kuprianov committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    ec2ba4c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0df4320 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e9a099f View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2020

  1. Configuration menu
    Copy the full SHA
    f04a163 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b860976 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    119088c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9932a1d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    249a24f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0ff0b99 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2f03aef View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2020

  1. Configuration menu
    Copy the full SHA
    0f9f187 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2020

  1. Configuration menu
    Copy the full SHA
    ae847f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43706ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c4d6cf View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2020

  1. #414 move files around

    andrey-kuprianov committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    e8a897e View commit details
    Browse the repository at this point in the history
  2. #414 cargo fmt

    andrey-kuprianov committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    3074bde View commit details
    Browse the repository at this point in the history
  3. #414: testgen/Tester: better handling of test environments

    * various utility functions for TestEnv
    * use temporary directories to run tests
    andrey-kuprianov committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    f440ed4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    377d6f2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4a0a27a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3a7d486 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    af36c98 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d432816 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2020

  1. Configuration menu
    Copy the full SHA
    6efc959 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99e51a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    67c1b1b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2673138 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6e5b91 View commit details
    Browse the repository at this point in the history
  6. #414 adapt LightClient model to implementation: headers with equal ti…

    …me are considered invalid
    andrey-kuprianov committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    64b10e0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ba4349d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    380c33b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    aac7970 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d049a07 View commit details
    Browse the repository at this point in the history
  11. #414 cargo fmt

    andrey-kuprianov committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    e6ae06c View commit details
    Browse the repository at this point in the history
  12. #414 cargo clippy

    andrey-kuprianov committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    c1cb954 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. Configuration menu
    Copy the full SHA
    f63a7e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2fbe20 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e3c83a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f271177 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    389de68 View commit details
    Browse the repository at this point in the history
  6. #414 cargo fmt

    andrey-kuprianov committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    47875aa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    935f785 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dbee1c9 View commit details
    Browse the repository at this point in the history