Run the main method to generate the file script_assets_test.json
.
cargo run
Clone Elements Core and switch to the Simplicity branch.
git clone [email protected]:ElementsProject/elements.git
cd elements
git checkout simplicity
Configure your development environment. Cough, there is an easy way using nix, cough.
Then build Elements Core.
./autogen.sh
./configure
make # use "-j N" for N parallel jobs
First, build Elements Core for testing.
Then run the unit test assets using the test runner.
DIR_UNIT_TEST_DATA=../asset-gen ./src/test/test_bitcoin --log_level=warning --run_test=script_tests
The variable DIR_UNIT_TEST_DATA
selects the directory in which the file script_assets_test.json
is located.