Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a2020455
Commit
a2020455
authored
May 05, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
May 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify & enforce that the challenge test is run separately
parent
7240ceb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
Makefile
Makefile
+1
-0
challenge_test.js
test/challenge_test.js
+2
-0
No files found.
Makefile
View file @
a2020455
...
...
@@ -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
...
...
test/challenge_test.js
View file @
a2020455
...
...
@@ -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
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment