Skip to content

Commit 976d195

Browse files
committed
make: include bip322 and other packages in tests
1 parent 7aa4086 commit 976d195

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ unit:
9797
@$(call print, "Running unit tests.")
9898
$(GOTEST_DEV) ./... -test.timeout=20m
9999
cd address && $(GOTEST_DEV) ./... -test.timeout=20m
100+
cd bip322 && $(GOTEST_DEV) ./... -test.timeout=20m
100101
cd btcec && $(GOTEST_DEV) ./... -test.timeout=20m
101102
cd btcutil && $(GOTEST_DEV) ./... -test.timeout=20m
102103
cd chaincfg && $(GOTEST_DEV) ./... -test.timeout=20m
103104
cd chainhash && $(GOTEST_DEV) ./... -test.timeout=20m
104-
cd txscript && $(GOTEST_DEV) ./... -test.timeout=20m
105105
cd psbt && $(GOTEST_DEV) ./... -test.timeout=20m
106+
cd txscript && $(GOTEST_DEV) ./... -test.timeout=20m
107+
cd v2transport && $(GOTEST_DEV) ./... -test.timeout=20m
106108
cd wire && $(GOTEST_DEV) ./... -test.timeout=20m
107109

108110
#? unit-cover: Run unit coverage tests
@@ -113,25 +115,29 @@ unit-cover:
113115
# We need to remove the /v2 pathing from the module to have it work
114116
# nicely with the CI tool we use to render live code coverage.
115117
cd address && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
118+
cd bip322 && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
116119
cd btcec && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
117120
cd btcutil && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
118121
cd chaincfg && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
119122
cd chainhash && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
120-
cd txscript && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
121123
cd psbt && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
124+
cd txscript && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
125+
cd v2transport && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
122126
cd wire && $(GOTEST) $(COVER_FLAGS) ./... && sed -i.bak 's/v2\///g' coverage.txt
123127

124128
#? unit-race: Run unit race tests
125129
unit-race:
126130
@$(call print, "Running unit race tests.")
127131
env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
128132
cd address && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
133+
cd bip322 && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
129134
cd btcec && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
130135
cd btcutil && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
131136
cd chaincfg && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
132137
cd chainhash && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
133-
cd txscript && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
134138
cd psbt && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
139+
cd txscript && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
140+
cd v2transport && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
135141
cd wire && env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOTEST) -race -test.timeout=20m ./...
136142

137143
# =========

0 commit comments

Comments
 (0)