From cca110adf20829d0328a7de133c8d0b67af984b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 9 Jan 2019 23:21:31 +0100 Subject: [PATCH] add "--threads:on" to tests and a "test" task for Nimble and the test binary to .gitignore --- .gitignore | 2 ++ faststreams.nimble | 3 +++ tests/nim.cfg | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 .gitignore create mode 100644 tests/nim.cfg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5d49397 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/tests/test_output_stream + diff --git a/faststreams.nimble b/faststreams.nimble index d3268bd..729526c 100644 --- a/faststreams.nimble +++ b/faststreams.nimble @@ -10,3 +10,6 @@ skipDirs = @["tests"] requires "nim >= 0.17.0", "ranges" +task test, "run tests": + exec "nim c -r tests/test_output_stream.nim" + diff --git a/tests/nim.cfg b/tests/nim.cfg new file mode 100644 index 0000000..9d2b0c6 --- /dev/null +++ b/tests/nim.cfg @@ -0,0 +1,2 @@ +--threads:on +