-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (22 loc) · 872 Bytes
/
justfile
File metadata and controls
28 lines (22 loc) · 872 Bytes
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
import '../justfiles/go.just'
# Build ldflags string
_VERSION_META_STR := if VERSION_META != "" { "+" + VERSION_META } else { "" }
_LDFLAGSSTRING := "'" + trim(
"-X main.GitCommit=" + GITCOMMIT + " " + \
"-X main.GitDate=" + GITDATE + " " + \
"-X github.com/ethereum-optimism/optimism/op-challenger/version.Version=" + VERSION + " " + \
"-X github.com/ethereum-optimism/optimism/op-challenger/version.Meta=" + _VERSION_META_STR + " " + \
"") + "'"
BINARY := "./bin/op-challenger"
# Build op-challenger binary
op-challenger: (go_build BINARY "./cmd" "-ldflags" _LDFLAGSSTRING)
# Run fuzzing tests
fuzz: (go_fuzz "FuzzKeccak" "10s" "./game/keccak/matrix")
# Clean build artifacts
clean:
rm -f {{BINARY}}
# Run tests
test:
# Required for cannon/provider_test TestLastStepCacheAccuracy
cd ../cannon && make cannon elf
@just go_test "./..."