aboutsummaryrefslogtreecommitdiff
path: root/tests/core/net
Commit message (Collapse)AuthorAgeFilesLines
* net: implement OpenBSD and NetBSD support & add stubs for other targets & ↵Laytan Laats2026-01-111-2/+0
| | | | cleanup
* net(docs): recv of 0 bytes with no error is a graceful closeLaytan Laats2025-12-211-0/+35
|
* Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-282-2/+2
| | | | 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.
* net: rework errors to be cross-platformLaytan Laats2025-04-051-8/+15
|
* Add `#+feature dynamic-literals` to testsgingerBill2025-01-051-0/+1
|
* Merge pull request #4261 from laytan/net-bound-endpointgingerBill2024-09-191-22/+27
|\ | | | | net: add `bound_endpoint` procedure
| * net: add `bound_endpoint` procedureLaytan Laats2024-09-171-22/+27
| |
* | Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-142-3/+3
|/ | | | file tag syntax.
* Fix build tags that use ! multiple times on one line. Those don't actually ↵Karl Zylinski2024-09-071-1/+2
| | | | do anything since build tags use OR within the line. So something like //+build !windows, !linux would actually build on both linux and windows. What was intended in all these cases was probably AND, which you get by splitting them into separate lines.
* Merge pull request #3810 from Feoramund/freebsd-core-netJeroen van Rijn2024-08-092-1/+92
|\ | | | | Port `core:net` to FreeBSD
| * Add new contribution notes to `core:net`Feoramund2024-08-052-0/+14
| |
| * Add `core:net` tests specifically for FreeBSDFeoramund2024-08-051-0/+77
| |
| * Enable `core:net` tests for FreeBSDFeoramund2024-06-261-1/+1
| |
* | Replace unneeded `transmute`Feoramund2024-06-301-2/+2
| |
* | Add more `core:net` testsFeoramund2024-06-301-0/+99
|/ | | | | | - UDP send & read - DNS resolution - Nonblocking socket option
* Forbid all BSDs from running `core:net` testsFeoramund2024-06-111-1/+1
| | | | `net` is not yet implemented on them.
* utilize `odin test -all-packages` instead of (make/bat) scripts for running ↵Laytan Laats2024-06-071-1/+2
| | | | tests
* Port `tests\core\net`Jeroen van Rijn2024-06-021-193/+83
|
* Fix CI's parserblob18072024-04-131-8/+8
|
* Move rounded testsblob18072024-04-131-17/+17
|
* Added support for URL fragmentsblob18072024-04-131-21/+65
| | | | Added support for a URL's fragment/anchor to `split_url` & `join_url` in `core:net` plus 4 new tests to cover it.
* Make sure we are listening before starting the clientLaytan Laats2024-02-201-15/+10
|
* Add logs to flaky testLaytan Laats2024-02-201-6/+33
|
* Remove flaky testLaytan Laats2024-02-201-23/+0
| | | | | | | It wasn't testing the right thing in the previous iteration. And in this iteration the behaviour is a timeout on Unix, and nothing on Windows.
* Improve net testsLaytan Laats2024-02-201-128/+81
| | | | | | | | | | | | | | | | | Watching the sporadic CI failures it seems to come from these tests a lot of the time, this PR cleans up and simplifies (while testing the same things): 1. Lots of tests were using threads without a need for it 2. Tests had hardcoded `time.sleep` calls which is never a good idea 3. An unclear abstraction was implemented without a real need 4. They weren't being ran on non-windows 5. The `client_connects_to_open_but_not_accepting_port` was not doing what you wanted to test for, the `tcp_server` proc was returning, and then `dial` was called, which meant that the server already closed and you got a refusal error. Now it correctly listens without accepting, which even results in a different error because the kernel buffer would have buffered the send
* Fix net.split_urlJeroen van Rijn2023-11-091-0/+5
| | | | Resolves issue #2924
* Make core:net test os.exit(1) on failure.Jeroen van Rijn2023-09-301-0/+5
|
* Allow any order of query strings in net.join_url tests.Jeroen van Rijn2023-09-301-24/+98
|
* Add test for net.split_urlYoshihiro Tanaka2023-05-141-9/+49
|
* Join URL queries with &Yoshihiro Tanaka2023-05-141-1/+35
|
* Apply #shared_nil to Network_ErrorJeroen van Rijn2023-03-041-7/+10
|
* Finish cleaning up core_net.Jeroen van Rijn2023-03-031-2/+2
|
* manually start merging core_netColin Davidson2023-03-011-0/+508