Skip to content

More tests #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 28, 2023
Merged
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tests/tests
tests/tests.js
tests/tests2
tests/tests2.js
tests/tests_misc
tests/tests_misc.js
docs/ugh
bin/*
bench/bench
6 changes: 6 additions & 0 deletions regex.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ task test2, "Test":
exec "nim c -r -d:noRegexOpt tests/tests2.nim"
when (NimMajor, NimMinor, NimPatch) >= (0, 20, 2):
exec "nim c -d:runTestAtCT tests/tests2.nim"
exec "nim c -r tests/tests_misc.nim"
exec "nim c -r -d:forceRegexAtRuntime tests/tests_misc.nim"
exec "nim c -r -d:forceRegexAtRuntime -d:noRegexOpt tests/tests_misc.nim"
exec "nim c -r -d:noRegexOpt tests/tests_misc.nim"
# js target should work in older versions, but
# the docker image for CI has it since Nim 1.0.4,
# so I'll only test it there
Expand All @@ -28,6 +32,8 @@ task test2, "Test":
exec "nim js -r src/regex.nim"
exec "nim js -r tests/tests2.nim"
exec "nim js -r -d:forceRegexAtRuntime tests/tests2.nim"
exec "nim js -r tests/tests_misc.nim"
exec "nim js -r -d:forceRegexAtRuntime tests/tests_misc.nim"
# test release/danger mode
exec "nim c -r -d:release -o:bin/regex src/regex.nim"
exec "nim c -r -d:danger -o:bin/regex src/regex.nim"
Expand Down
Loading