141 Commits

Author SHA1 Message Date
Shane Shrybman
e1ea3d634b core:testing remove whitespace typo 2026-03-07 11:34:15 -05:00
Laytan Laats
6a6460e824 fix another old os use in when statement 2026-02-27 22:11:11 +01:00
Harold Brenes
0ee15453e7 Use builder_len instead of len on the underlying dynamic array
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-02-11 14:16:25 -05:00
Harold Brenes
2899d09003 Use strings.partition instead of raw slicing
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-02-11 14:15:34 -05:00
Harold Brenes
3b8cb7fc61 Update core/testing/runner.odin
Use `strings.to_string`

Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-02-11 14:14:58 -05:00
Harold Brenes
7ea074a248 Update core/testing/runner.odin
Write string directly

Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-02-11 14:14:27 -05:00
Harold Brenes
f50dd2f639 Update core/testing/runner.odin
Remove formatting `wprintln` variant where it is not needed

Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-02-11 14:13:49 -05:00
Harold Brenes
cac90a84fc Update core/testing/runner.odin
for each style loop

Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-02-11 14:09:33 -05:00
Harold Brenes
557a191108 Fix missing import after rebase 2026-02-11 13:51:51 -05:00
Harold Brenes
3aed99093b Rebase and update to reflect os2 -> os 2026-02-11 13:46:19 -05:00
Harold Brenes
167afbc75d Fix formatting 2026-02-11 13:42:11 -05:00
Harold Brenes
d56e655be7 Fix scoping issues caused by switching from when to if 2026-02-11 13:42:11 -05:00
Harold Brenes
23019020a1 Add runtime options for test runner via command line 2026-02-11 13:41:11 -05:00
Jeroen van Rijn
e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn
38def33c95 Fix more merge conflicts. 2026-02-08 13:12:16 +01:00
Jeroen van Rijn
8f4bcf4d31 More conflicts during rebase 2026-02-08 12:48:41 +01:00
Jeroen van Rijn
47786deddc In the middle of porting core:testing 2026-02-08 12:44:08 +01:00
gingerBill
f7901cffc9 Add doc.odin and mention the defineables through #config 2026-01-31 16:28:47 +00:00
blob1807
569da5a1cf Revert "Try to ensure the runner's handler gets called first"
This reverts commit 13faedaf4c. As it's causing issues with ASAN, which adds it's own `ExceptionHandler` as the first. Making ours first messes with it. Causing an Access Violation when trying to setup `context` in our handler.
2025-12-24 01:13:06 +10:00
blob1807
13faedaf4c Try to ensure the runner's handler gets called first 2025-12-24 00:39:21 +10:00
blob1807
4eeb509fe8 Fix an OOB & format exception code as hex
Fix an OOB caused when the test runner catches the exception & format exception codes as upper case hex.
2025-12-23 19:17:43 +10:00
blob1807
56194732a8 Remove unneeded Exception_Code enum 2025-12-23 16:45:51 +10:00
blob1807
c9fff456cd [core:testing] Use Windows API for SIG handling 2025-12-23 02:44:36 +10:00
Jeroen van Rijn
5db9afd73b Merge pull request #5963 from Yawning/feature/chacha8rand
runtime: Use chacha8rand as the default RNG (BREAKING)
2025-11-29 14:38:22 +00:00
Jeroen van Rijn
31817be087 Fix #5975
Fix `err` shadowing in test runner. Fixes #5975.
2025-11-29 11:57:34 +01:00
Yawning Angel
73883b70c8 testing: Use xoshiro256** instead of the runtime RNG
While platforms that do not have an entropy source have no rights,
use something that is always guaranteed to work.
2025-11-29 10:45:53 +09:00
gingerBill
e5153a937b Merge pull request #5859 from odin-lang/bill/change-license
Change Odin's LICENSE to zlib from BSD 3-clause
2025-11-04 13:53:13 +00:00
Jeroen van Rijn
6ea7bdbbe5 Add ODIN_TEST_GO_TO_ERROR to print test fail locations in a manner friendly to go-to error in editors 2025-11-01 16:11:43 +01:00
Jeroen van Rijn
f005136592 Also disable OSC codes to update title when ODIN_TEST_FANCY=false 2025-10-31 17:39:29 +01:00
gingerBill
842cfee0f3 Change Odin's LICENSE to zlib from BSD 3-clause
This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
2025-10-28 14:38:25 +00:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Jon Lipstate
57bc45ae30 revert to working build 2025-09-03 22:51:28 -07:00
Jon Lipstate
e0c4c53362 add tls when we have crt 2025-09-03 22:32:33 -07:00
Jon Lipstate
231ce2da59 windows i386 support 2025-08-29 12:41:38 -07:00
Feoramund
c87655525d testing: Make test state changes its own feature
This patch takes the former debug message output of a test changing its
state and makes it its own feature, toggleable with the
`ODIN_TEST_LOG_STATE_CHANGES` configurable. The output will be at the
info level and is disabled by default.
2025-06-26 12:46:03 -04:00
Feoramund
71c6b0c8f0 testing: Add API to expect signals and assertion failures 2025-06-16 11:25:32 -04:00
Feoramund
e659df1a3f Restructure core:terminal for better Windows support 2025-05-21 07:49:08 -04:00
Feoramund
1b407ef207 Add animation detection support to test runner 2025-05-20 19:28:07 -04:00
Feoramund
3c40a54dcd Add terminal color detection to logging in core:testing 2025-05-20 19:28:06 -04:00
Feoramund
a9df1b1cde Rename core:encoding/ansi to core:terminal/ansi 2025-05-20 19:28:06 -04:00
Jeroen van Rijn
8bffd247b7 Restore console mode when test runner exits. 2025-05-20 16:51:24 +02:00
avanspector
0a985f5d02 Haiku: small fixes across core 2025-01-10 07:07:40 +01:00
Karl Zylinski
e5f32e1455 Makes tracking allocator default to crashing on a bad free instead of add to bad_free_array. The bad_free_array remains to not break old code. The new default behavior is implemented in a callback that you can override, there's a second provided callback that provides the old behavior where an element was added to bad_free_array. Rationale: Many people are just checking the allocation_map, but don't check the bad free array. Several examples throughout core that use tracking allocator don't check bad_free_array either, so people have been taught not to check it. 2024-12-21 15:49:48 +01:00
Laytan Laats
f798f0b446 testing: separate the posix import into target files
This is needed for the docs generator to generate all the docs for the
posix package, if it is imported like it was on Windows it would
generate docs for the Windows version of the package which has much less
symbols exposed.
2024-11-01 16:27:45 +01:00
Laytan
afed3ce6b5 remove pthread from sys/unix and use sys/posix where used 2024-10-28 19:20:43 +01:00
Karl Zylinski
29fedc1808 Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators. 2024-09-17 19:39:48 +02:00
Karl Zylinski
093ade0504 Merge branch 'master' into file-tags-without-comments 2024-09-17 19:36:17 +02:00
Jeroen van Rijn
9508a1f031 Merge pull request #4255 from avanspector/master
init ansi on a standalone testing exe
2024-09-17 17:15:41 +02:00
avanspector
c794f853e9 init ansi on a standalone testing exe 2024-09-17 16:57:02 +02:00
gingerBill
a16d3b6c9a Merge pull request #4242 from laytan/caller-expression
add '#caller_expression'
2024-09-16 17:36:46 +01:00