add framing format test runner

This commit is contained in:
andri lim 2020-03-28 12:33:40 +07:00 committed by zah
parent bb20886854
commit 71b24a6d15
4 changed files with 16 additions and 3 deletions

View File

@ -12,6 +12,6 @@ requires "nim >= 0.19.0",
"stew"
task test, "Run all tests":
exec "nim c --passL:\"-lsnappy -L./tests -lstdc++\" -r tests/test"
exec "nim c --passL:\"-lsnappy -L./tests -lstdc++\" -d:release -r tests/test"
exec "nim c --passL:\"-lsnappy -L./tests -lstdc++\" --threads:on -d:release -r tests/test"
exec "nim c --passL:\"-lsnappy -L./tests -lstdc++\" -r tests/all_tests"
exec "nim c --passL:\"-lsnappy -L./tests -lstdc++\" -d:release -r tests/all_tests"
exec "nim c --passL:\"-lsnappy -L./tests -lstdc++\" --threads:on -d:release -r tests/all_tests"

3
tests/all_tests.nim Normal file
View File

@ -0,0 +1,3 @@
import
test_codec,
test_framing_format

View File

@ -0,0 +1,10 @@
import
unittest, os,
../snappy/framing
proc main() =
suite "framing":
test "uncompress":
check true
main()