b241bf05eb
* Add command to take an in-place snapshot * Add test data for in place snapshot unit test * Implement unit test for inplace snapshot * Add check for storage IPLD * Run unit tests sequentially * Add github workflow for unit test * Add missing checks for state and storage cid fields * Add more storage nodes to test * Update ipld-eth-db version for tests * Add comments for inplace snapshot test data * Add in-place snapshot cmd in readme * Implement defer pattern for db transaction * Log transaction commit or rollback error Co-authored-by: nabarun <nabarun@deepstacksoft.com>
23 lines
449 B
Makefile
23 lines
449 B
Makefile
MOCKS_DIR = $(CURDIR)/mocks
|
|
mockgen_cmd=mockgen
|
|
|
|
.PHONY: mocks test
|
|
|
|
mocks: mocks/snapshot/publisher.go
|
|
|
|
mocks/snapshot/publisher.go: pkg/types/publisher.go
|
|
$(mockgen_cmd) -package snapshot_mock -destination $@ -source $< Publisher Tx
|
|
|
|
clean:
|
|
rm -f mocks/snapshot/publisher.go
|
|
|
|
build:
|
|
go fmt ./...
|
|
go build
|
|
|
|
test: mocks
|
|
go clean -testcache && go test -p 1 -v ./...
|
|
|
|
dbtest: mocks
|
|
go clean -testcache && TEST_WITH_DB=true go test -p 1 -v ./...
|