-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Copy pathjustfile
49 lines (40 loc) · 1.28 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import '../justfiles/go.just'
# Build ldflags string
_LDFLAGSSTRING := "'" + trim(
"-X main.GitCommit=" + GITCOMMIT + " " + \
"-X main.GitDate=" + GITDATE + " " + \
"-X github.com/ethereum-optimism/optimism/op-node/version.Version=" + VERSION + " " + \
"-X github.com/ethereum-optimism/optimism/op-node/version.Meta=" + VERSION_META + " " + \
"") + "'"
BINARY := "./bin/op-node"
# Build op-node binary
op-node: (go_build BINARY "./cmd" "-ldflags" _LDFLAGSSTRING)
# Clean build artifacts
clean:
rm -f {{BINARY}}
# Run tests
test: (go_test "./...")
# Generate mocks
generate-mocks: (go_generate "./...")
# Update readme
readme:
doctoc README.md
[private]
node_fuzz_task FUZZ TIME='10s': (go_fuzz FUZZ TIME "./rollup/derive")
# Run fuzz tests
fuzz:
printf "%s\n" \
"FuzzL1InfoBedrockRoundTrip" \
"FuzzL1InfoEcotoneRoundTrip" \
"FuzzL1InfoAgainstContract" \
"FuzzUnmarshallLogEvent" \
"FuzzParseFrames" \
"FuzzFrameUnmarshalBinary" \
"FuzzBatchRoundTrip" \
"FuzzDeriveDepositsRoundTrip" \
"FuzzDeriveDepositsBadVersion" \
"FuzzParseL1InfoDepositTxDataValid" \
"FuzzParseL1InfoDepositTxDataBadLength" \
"FuzzRejectCreateBlockBadTimestamp" \
"FuzzDecodeDepositTxDataToL1Info" \
| parallel -j {{PARALLEL_JOBS}} {{just_executable()}} node_fuzz_task {}