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

Commit

Permalink
fix: test (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsan-line authored Mar 29, 2021
1 parent a048b3b commit f246ff6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
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

0 comments on commit f246ff6

Please sign in to comment.