ipld-eth-db-validator/test
2022-05-31 13:09:45 +05:30
..
contract Add instructions to run integration tests 2022-05-20 16:47:48 +05:30
integration_suite_test.go Add integration test and dynamic txn unit test. 2022-01-20 18:52:01 +05:30
integration_test.go Merge changes to make validation process perpetual 2022-05-31 13:09:45 +05:30
README.md Update instructions to run tests 2022-05-23 19:43:21 +05:30

Test Instructions

Setup

  • For running integration tests:

    • Clone stack-orchestrator and go-ethereum repositories.

    • Checkout v4 release in go-ethereum repo.

      # In go-ethereum repo.
      git checkout v1.10.17-statediff-4.0.1-alpha
      
    • Checkout working commit in stack-orchestrator repo.

      # In stack-orchestrator repo.
      git checkout 42af57a2963bb6ca55fb5fcb16ed75b39fae60f9
      

Run

  • Run unit tests:

    # In ipld-eth-db-validator root directory.
    ./scripts/run_unit_test.sh
    
  • Run integration tests:

    • In stack-orchestrator repo:

      • Create config file:

        cd helper-scripts
        
        ./create-config.sh
        

        A config.sh will be created in the root directory.

      • Update/Edit the config file config.sh:

        #!/bin/bash
        
        # Path to go-ethereum repo.
        vulcanize_go_ethereum=~/go-ethereum
        
        # Path to contract folder.
        vulcanize_test_contract=~/ipld-eth-db-validator/test/contract
        
        db_write=true
        
      • Run stack-orchestrator:

        # In stack-orchestrator root directory.
        cd helper-scripts
        
        ./wrapper.sh \
        -e docker \
        -d ../docker/latest/docker-compose-db.yml \
        -d ../docker/local/docker-compose-go-ethereum.yml \
        -d ../docker/local/docker-compose-contract.yml \
        -v remove \
        -p ../config.sh
        
    • Run tests:

      # In ipld-eth-db-validator root directory.
      ./scripts/run_integration_test.sh