Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,15 @@ Most of the functions that we have re-exported expected `*chaincfg.Params` as an
1. Install Docker
2. Install Docker Compose
3. Run Docker
4. Run `./test.sh`
4. Clone with submodules, or initialize them in an existing checkout:

```sh
git submodule update --init --recursive
```

5. Run `./test.sh`

The test script also initializes submodules when it is run inside a Git checkout.

Example output:

Expand Down
11 changes: 9 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail

if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
git submodule update --init --recursive
fi

source ./infra/.env
docker-compose -f ./infra/docker-compose.yaml up --build -d
trap 'docker-compose -f ./infra/docker-compose.yaml down' EXIT
echo "Waiting for multichain to boot..."
sleep 30
go test -v ./...
docker-compose -f ./infra/docker-compose.yaml down
echo "Done!"
echo "Done!"