mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-05-21 00:59:25 +00:00
add second mem only tests
This commit is contained in:
parent
18e83ca662
commit
c36de9f5fc
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -134,3 +134,9 @@ jobs:
|
|||||||
nim --version
|
nim --version
|
||||||
echo
|
echo
|
||||||
nimble --verbose test
|
nimble --verbose test
|
||||||
|
|
||||||
|
- name: Run memory tests
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
source "${HOME}/.bash_env"
|
||||||
|
nim c -r tests/datastore/testthreadproxyds2.nim
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import pkg/chronicles
|
|||||||
|
|
||||||
import pkg/datastore/sql
|
import pkg/datastore/sql
|
||||||
import pkg/datastore/fsds
|
import pkg/datastore/fsds
|
||||||
|
import pkg/datastore/memoryds
|
||||||
import pkg/datastore/threads/threadproxyds {.all.}
|
import pkg/datastore/threads/threadproxyds {.all.}
|
||||||
|
|
||||||
import ./dscommontests
|
import ./dscommontests
|
||||||
@ -23,7 +24,7 @@ import ./querycommontests
|
|||||||
|
|
||||||
const NumThreads = 200 # IO threads aren't attached to CPU count
|
const NumThreads = 200 # IO threads aren't attached to CPU count
|
||||||
|
|
||||||
proc testBasic() =
|
proc testBasicSqllite() =
|
||||||
|
|
||||||
suite "Test Basic ThreadDatastore with SQLite":
|
suite "Test Basic ThreadDatastore with SQLite":
|
||||||
|
|
||||||
@ -48,10 +49,10 @@ proc testBasic() =
|
|||||||
GC_fullCollect()
|
GC_fullCollect()
|
||||||
|
|
||||||
for i in 1..100:
|
for i in 1..100:
|
||||||
testBasic()
|
testBasicSqllite()
|
||||||
GC_fullCollect()
|
GC_fullCollect()
|
||||||
|
|
||||||
proc testQuery() =
|
proc testQuerySqllite() =
|
||||||
suite "Test Query ThreadDatastore with SQLite":
|
suite "Test Query ThreadDatastore with SQLite":
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -74,9 +75,9 @@ proc testQuery() =
|
|||||||
queryTests(ds, true)
|
queryTests(ds, true)
|
||||||
GC_fullCollect()
|
GC_fullCollect()
|
||||||
|
|
||||||
for i in 1..100:
|
# for i in 1..100:
|
||||||
testQuery()
|
# testQuerySqllite()
|
||||||
GC_fullCollect()
|
# GC_fullCollect()
|
||||||
|
|
||||||
proc testFsDs() =
|
proc testFsDs() =
|
||||||
suite "Test Basic ThreadDatastore with fsds":
|
suite "Test Basic ThreadDatastore with fsds":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user