GithubHelp home page GithubHelp logo

0tech / planetarium Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 87 KB

Test fixtures for cosmos/cosmos-sdk based apps

License: GNU Affero General Public License v3.0

CMake 18.70% Shell 58.24% Python 19.95% Dockerfile 2.62% Jinja 0.48%

planetarium's Introduction

planetarium

license cosmos-sdk rolling upgrades cosmos-sdk in-place migrations gaia rolling upgrades gaia in-place migrations

Introduction

You can use this project for:

  1. testing cosmos-sdk based applications - test
  2. launching & maintaining validator subnet - playbook

Prerequisites

While this project does almost of its jobs in Docker instances, there is a few additional requirements (other than the basic packages on Debian GNU/Linux).

You can install the requirements by:

sudo apt install docker-compose cmake jq

Usage

Configure

At first, you need to configure the project by:

build_dir=build  # the folder which you want to output the artifacts into
cmake -S . -B $build_dir

After that, you may change some variables by:

variable_name=TEST_NUM_REGIONS  # the name of variable
variable_value=7                # set the value of variable to
cmake -S . -B $build_dir -D$variable_name=$variable_value

You can provide as many changes as you want, and the changes would be accumulated. The changes are cached so it persists forever until you override the change or remove your build directory.

You can see the list of variables which you may want to set:

cmake -S . -B $build_dir -L

You may also want to read the descriptions:

cmake -S . -B $build_dir -LH

Build

Now you may trigger some target. The core targets would be:

  • build: build the project and make the binaries (e.g. daemon and cosmovisor)

You can trigger a target by:

target_name=build
cmake --build $build_dir --target $target_name

Test

You can trigger all the tests by:

ctest --test-dir $build_dir

Or, a certain test by:

test_name=upgrade_chain_auto
ctest --test-dir $build_dir -R $test_name

planetarium's People

Contributors

0tech avatar

Watchers

 avatar

planetarium's Issues

Use ansible

It would allow us to deploy the chain not only on the containers, but also on various scenes, including the real environments.

Add IBC test prototype

For the IBC tests, we must refactor the fixtures so we can run different types of chains together:

  • Refactor the CMake variables used for selecting app
  • Refactor the app binary preparation script
  • Refactor the chain fixture

After the refactor, we need to add an IBC test:

  • Add a relayer fixture
  • Add an IBC test using the fixture

Add IBC tests

IBC is one of the most important features of cosmos-sdk. We should add relevant fixtures & tests into this project.

  • #7
  • Refactor relayer node setup
  • Add a IBC test between different chains

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.