From c36de9f5fcb5f8c9db814fa044deac623d7f77e4 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Tue, 19 Sep 2023 15:06:28 -0700 Subject: [PATCH] add second mem only tests --- .github/workflows/tests.yml | 6 ++++++ tests/datastore/testthreadproxyds.nim | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0e2e106..db1c783 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -134,3 +134,9 @@ jobs: nim --version echo nimble --verbose test + + - name: Run memory tests + if: success() || failure() + run: | + source "${HOME}/.bash_env" + nim c -r tests/datastore/testthreadproxyds2.nim diff --git a/tests/datastore/testthreadproxyds.nim b/tests/datastore/testthreadproxyds.nim index 6bff32f..c9cdea9 100644 --- a/tests/datastore/testthreadproxyds.nim +++ b/tests/datastore/testthreadproxyds.nim @@ -16,6 +16,7 @@ import pkg/chronicles import pkg/datastore/sql import pkg/datastore/fsds +import pkg/datastore/memoryds import pkg/datastore/threads/threadproxyds {.all.} import ./dscommontests @@ -23,7 +24,7 @@ import ./querycommontests const NumThreads = 200 # IO threads aren't attached to CPU count -proc testBasic() = +proc testBasicSqllite() = suite "Test Basic ThreadDatastore with SQLite": @@ -48,10 +49,10 @@ proc testBasic() = GC_fullCollect() for i in 1..100: - testBasic() + testBasicSqllite() GC_fullCollect() -proc testQuery() = +proc testQuerySqllite() = suite "Test Query ThreadDatastore with SQLite": var @@ -74,9 +75,9 @@ proc testQuery() = queryTests(ds, true) GC_fullCollect() -for i in 1..100: - testQuery() - GC_fullCollect() +# for i in 1..100: +# testQuerySqllite() +# GC_fullCollect() proc testFsDs() = suite "Test Basic ThreadDatastore with fsds":