Commit a2020455 authored by Nicolas "Norswap" Laurent's avatar Nicolas "Norswap" Laurent Committed by norswap

clarify & enforce that the challenge test is run separately

parent 7240ceb0
......@@ -65,6 +65,7 @@ test_minigeth:
minigeth/go-ethereum 13303075
test_contracts:
$(call clear_cache)
npx hardhat test
test: test_challenge test_mipsevm test_minigeth
......
......@@ -2,6 +2,8 @@ const { expect } = require("chai")
const fs = require("fs")
const { deploy, getTrieNodesForCall } = require("../scripts/lib")
// This test needs preimages to run correctly.
// It is skipped when running `make test_contracts`, but can be run with `make test_challenge`.
describe("Challenge contract", function () {
if (!fs.existsSync("/tmp/cannon/golden.json")) {
console.log("golden file doesn't exist, skipping test")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment