Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions stew.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ task test, "Run all tests":
test "--threads:off", "tests/all_tests"
test "--threads:on -d:nimTypeNames", "tests/all_tests"
test "--threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians", "tests/all_tests"
test "--threads:off", "tests/all_tests2"
test "--threads:on -d:nimTypeNames", "tests/all_tests2"
test "--threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians", "tests/all_tests2"

task testvcc, "Run all tests with vcc compiler":
test "--cc:vcc --threads:off", "tests/all_tests"
test "--cc:vcc --threads:on -d:nimTypeNames", "tests/all_tests"
test "--cc:vcc --threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians", "tests/all_tests"
test "--cc:vcc --threads:off", "tests/all_tests2"
test "--cc:vcc --threads:on -d:nimTypeNames", "tests/all_tests2"
test "--cc:vcc --threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians", "tests/all_tests2"
13 changes: 10 additions & 3 deletions tests/all_tests.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import
test_ctops,
test_endians2,
test_io2,
test_keyed_queue,
test_sorted_set,
test_interval_set,
test_macros,
test_objects,
test_ptrops,
Expand All @@ -33,3 +30,13 @@ import
test_results,
test_varints,
test_winacl

# Running some unit tests in a separate file in order to mitigate global
# symbols overflow on Github ci when compiling with nim version <= 1.2
when 3 <= NimVersion.len and NimVersion[0..2] == "1.2":
discard
else:
import
all_tests_ex

# End
16 changes: 16 additions & 0 deletions tests/all_tests2.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# stew
# Copyright 2018-2019 Status Research & Development GmbH
# Licensed under either of
#
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.

# Running some unit tests in a separate file in order to mitigate global
# symbols overflow on Github ci when compiling with nim version <= 1.2
when 3 <= NimVersion.len and NimVersion[0..2] == "1.2":
import
all_tests_ex

# End
19 changes: 19 additions & 0 deletions tests/all_tests_ex.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# stew
# Copyright 2018-2019 Status Research & Development GmbH
# Licensed under either of
#
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.

# Running some unit tests in a separate file in order to mitigate global
# symbols overflow on Github ci when compiling with nim version <= 1.2.
#
# This file is simply a contiinuation of `all_tests`
import
test_keyed_queue,
test_sorted_set,
test_interval_set

# End