- Install Docker or Podman.
- Install
libudev-dev
(dpkg) orlibudev-devel
(rpm) package. - Install protobuf compiler, so
protoc
is available in your PATH. - Download ZCash params files: Windows, Unix/Linux
- Create
.env.client
file with the following contentPASSPHRASE=spice describe gravity federal blast come thank unfair canal monkey style afraid
- Create
.env.seed
file with the following contentPASSPHRASE=also shoot benefit prefer juice shell elder veteran woman mimic image kidney
- MacOS specific: run script (required after each reboot)
Please note that you have to run it again after each reboot
#!/bin/bash for ((i=2;i<256;i++)) do sudo ifconfig lo0 alias 127.0.0.$i up done sudo ifconfig lo0 inet6 -alias ::1 sudo ifconfig lo0 inet6 -alias fe80::1%lo0
- Linux specific:
- for Docker users:
sudo groupadd docker sudo usermod -aG docker $USER
- for Podman users:
sudo ln -s $(which podman) /usr/bin/docker
- for Docker users:
- Try
cargo test --features native --all -- --test-threads=16
.
- Set up WASM Build Environment
- Install Firefox.
- Download Gecko driver for your OS
- Set environment variables required to run WASM tests
# wasm-bindgen specific variables export WASM_BINDGEN_TEST_TIMEOUT=180 export GECKODRIVER=PATH_TO_GECKO_DRIVER_BIN # MarketMaker specific variables export BOB_PASSPHRASE="also shoot benefit prefer juice shell elder veteran woman mimic image kidney" export ALICE_PASSPHRASE="spice describe gravity federal blast come thank unfair canal monkey style afraid"
- Run WASM tests
- for Linux users:
wasm-pack test --firefox --headless mm2src/mm2_main
- for OSX users (Intel):
CC=/usr/local/opt/llvm/bin/clang AR=/usr/local/opt/llvm/bin/llvm-ar wasm-pack test --firefox --headless mm2src/mm2_main
- for OSX users (M1):
Please noteCC=/opt/homebrew/opt/llvm/bin/clang AR=/opt/homebrew/opt/llvm/bin/llvm-ar wasm-pack test --firefox --headless mm2src/mm2_main
CC
andAR
must be specified in the same line aswasm-pack test mm2src/mm2_main
.
PS If you notice that this guide is outdated, please submit a PR.