Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

fix: test #5

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions boltdb/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build boltdb

package boltdb

import (
Expand Down
2 changes: 2 additions & 0 deletions cleveldb/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build cleveldb

package cleveldb

import (
Expand Down
2 changes: 2 additions & 0 deletions goleveldb/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build goleveldb

package goleveldb

import (
Expand Down
10 changes: 7 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: lint test
## By default this will only test memdb & goleveldb
test:
@echo "--> Running go test"
@go test $(PACKAGES) -v
@go test $(PACKAGES) -tags memdb,goleveldb -v

test-memdb:
@echo "--> Running go test"
Expand All @@ -36,13 +36,17 @@ test-badgerdb:
@echo "--> Running go test"
@go test $(PACKAGES) -tags badgerdb -v

test-remotedb:
@echo "--> Running go test"
@go test $(PACKAGES) -tags goleveldb,remotedb -v

test-all:
@echo "--> Running go test"
@go test $(PACKAGES) -tags memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb -v
@go test $(PACKAGES) -tags memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb,remotedb -v

test-all-docker:
@echo "--> Running go test"
@docker run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-tm-db-testing go test $(PACKAGES) -tags memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb -v
@docker run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-tm-db-testing go test $(PACKAGES) -tags memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb,remotedb -v
.PHONY: test-all-docker

lint:
Expand Down
2 changes: 2 additions & 0 deletions memdb/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build memdb

package memdb

import (
Expand Down
2 changes: 2 additions & 0 deletions remotedb/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build remotedb

package remotedb_test

import (
Expand Down
2 changes: 2 additions & 0 deletions rocksdb/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build rocksdb

package rocksdb

// TODO: Add tests for rocksdb