Skip to content

ProvableHQ/aleo-setup-integration-test

Repository files navigation

Aleo Setup Integration Test

This repository contains the integration test for aleo-setup (setup1-contributor and setup1-verifier binaries), and the aleo-setup-coordinator.

Prerequisites

Before running, you need to have the following installed:

  • rustup, and the required linker for you system. (on Ubuntu this involves installing build-essential most likely).
  • openssl development headers (libssl-dev and pkg-config on Ubuntu).
  • Python 3 with pip (if you want to use the aleo-setup-state-monitor).

Install the stable version of rust to compile this integration testing software:

rustup install stable

Building/Running

You can run a integration tests with the following command where test.ron is the test specification:

cargo run -- test.ron

See example-config.ron in the repository root for an example of the configuration format. They use the Rusty Object Notation (RON) format, there are editor extensions available. This format was chosen because it allows structured/nested data (like JSON) but also allows comments and looser formatting for handwritten files (like TOML).

Using Local Repositories

If you wish to use repositories checked out on your local computer you can supply the following configuration options (replacing the existing ones) at the beginning of the ron test file:

aleo_setup_repo: (
    type: "Local",
    dir: "../aleo-setup",
),
aleo_setup_coordinator_repo: (
    type: "Local",
    dir: "../aleo-setup-coordinator",
),
aleo_setup_state_monitor_repo: (
    type: "Local",
    dir: "../aleo-setup-state-monitor",
),

dir is the relative path to where you have the git repository checked out.

About

Integration testing for aleo-setup and aleo-setup-coordinator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages