Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Integration tests setup #1196

Merged
merged 19 commits into from
Jul 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
send tests to tests folder
  • Loading branch information
crypto-facs committed Jul 22, 2022
commit 2742034dad6203b6c2ca2eeb684b82b9ad7cb472
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -321,7 +321,7 @@ test-integration:
./scripts/integration-test-all.sh -t "integration" -q 1 -z 1 -s 2 -m "integration" -r "true"

run-integration-tests:
@nix-shell ./integration_tests/shell.nix --run ./scripts/run-integration-tests.sh
@nix-shell ./tests/integration_tests/shell.nix --run ./scripts/run-integration-tests.sh

.PHONY: run-integration-tests

2 changes: 1 addition & 1 deletion nix/testenv.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ pkgs }:
pkgs.poetry2nix.mkPoetryEnv {
projectDir = ../integration_tests;
projectDir = ../tests/integration_tests;
python = pkgs.python39;
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: {
eth-bloom = super.eth-bloom.overridePythonAttrs {
2 changes: 1 addition & 1 deletion scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ cd "$(dirname "$0")"
export TMPDIR=/tmp

echo "build test contracts"
cd ../integration_tests/contracts
cd ../tests/integration_tests/contracts
HUSKY_SKIP_INSTALL=1 npm install
npm run typechain
cd ..
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
dotenv: '../../scripts/.env',
dotenv: '../../../scripts/.env',
'ethermintd_777-1': {
cmd: 'ethermintd',
'start-flags': '--trace',
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ def __init__(self, w3):


def setup_ethermint(path, base_port):
cfg = Path(__file__).parent / "../scripts/ethermint-devnet.yaml"
cfg = Path(__file__).parent / "../../scripts/ethermint-devnet.yaml"
yield from setup_custom_ethermint(path, base_port, cfg)

def setup_geth(path, base_port):
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ system ? builtins.currentSystem, pkgs ? import ../nix { inherit system; } }:
{ system ? builtins.currentSystem, pkgs ? import ../../nix { inherit system; } }:
pkgs.mkShell {
buildInputs = [
pkgs.jq
(pkgs.callPackage ../. { }) # ethermintd
(pkgs.callPackage ../../. { }) # ethermintd
pkgs.start-scripts
pkgs.go-ethereum
pkgs.cosmovisor
File renamed without changes.
File renamed without changes.