forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
36 lines (29 loc) · 966 Bytes
/
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
import '../just/go.just'
# Build ldflags string
_LDFLAGSSTRING := "'" + trim(
"-X main.GitCommit=" + GITCOMMIT + " " + \
"-X main.GitDate=" + GITDATE + " " + \
"-X main.Version=" + VERSION + " " + \
"") + "'"
BINARY := "./bin/op-batcher"
# Build op-batcher binary
op-batcher: (go_build BINARY "./cmd" "-ldflags" _LDFLAGSSTRING)
# Clean build artifacts
clean:
rm -f {{BINARY}}
# Run tests
test: (go_test "./...")
[private]
batcher_fuzz_task FUZZ TIME='10s': (go_fuzz FUZZ TIME "./batcher")
# Run fuzzing tests
fuzz:
printf "%s\n" \
"FuzzChannelConfig_CheckTimeout" \
"FuzzDurationZero" \
"FuzzDurationTimeoutMaxChannelDuration" \
"FuzzDurationTimeoutZeroMaxChannelDuration" \
"FuzzChannelCloseTimeout" \
"FuzzChannelZeroCloseTimeout" \
"FuzzSeqWindowClose" \
"FuzzSeqWindowZeroTimeoutClose" \
| parallel -j {{PARALLEL_JOBS}} {{just_executable()}} batcher_fuzz_task {}