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

Latest commit

 

History

History

integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Start integration tests

Preconditions

  • install Ckb (compile and install with the latest develop branch)
  • install and start PostgreSQL
  • create new database mercury-dev, if it already exists, delete it first and then re-create it
  • create tables and indexes
psql -h localhost -U postgres -d mercury-dev -f devtools/create_table/create_table.sql

Import Ckb initial data

Note: only needs to be executed once at initialization and reinitialization.

cd integration
rm -rf ./dev_chain/dev/data  ./free-space
ckb import -C dev data/ckb_dev.json

Run integration tests

cd integration
cargo run

or

cd integration
cargo run -- -t test_generate_blocks