2022-08-22 11:43:09 +00:00
|
|
|
package pilorama
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
"strconv"
|
|
|
|
"testing"
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/internal/storagetest"
|
2022-08-22 11:43:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGeneric(t *testing.T) {
|
|
|
|
defer func() { _ = os.RemoveAll(t.Name()) }()
|
|
|
|
|
|
|
|
var n int
|
|
|
|
newPilorama := func(t *testing.T) storagetest.Component {
|
|
|
|
n++
|
|
|
|
dir := filepath.Join(t.Name(), strconv.Itoa(n))
|
|
|
|
return NewBoltForest(
|
|
|
|
WithPath(dir))
|
|
|
|
}
|
|
|
|
|
|
|
|
storagetest.TestAll(t, newPilorama)
|
|
|
|
}
|