add second mem only tests

This commit is contained in:
Jaremy Creechley 2023-09-19 15:06:28 -07:00
parent 18e83ca662
commit c36de9f5fc
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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":