aboutsummaryrefslogtreecommitdiff
path: root/unit_tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Copy deep_userdata_example test script in the test frameworkHEADmasterBenoit Germain8 days5-2/+179
| | | | | * I need to keep deep_userdata_example hackishly built-in inside the unit tests executable, because using the external module cause a crash in Lua51 tests (module is unloaded before some deep objects are GCed...) * copy the test script in the proper location and invoke it as part of the tests
* Split lanes.sleep unit tests and some linda unit tests tooBenoit Germain14 days2-76/+91
|
* Rework function bytecode dumping to be Lua5.5-readyBenoit Germain2025-07-244-10/+25
| | | | * prepare the luaL_Buffer in the destination state instead of the source state to prevent stack issues when everything happens in the same state
* Use LANES_DEBUG instead of MSVC-specific _DEBUG to activate debug codeBenoit Germain2025-07-241-22/+23
|
* Use LANES_DEBUG instead of MSVC-specific _DEBUG to activate debug codeBenoit Germain2025-07-241-2/+2
|
* Added Lua 5.5 supportBenoit Germain2025-07-043-3/+4
| | | | * some unit tests fail/segfault/freeze, but that could be because Lua 5.5 is still in beta yet
* Changed lua wrapper prefixes from luaG_ to luaW_ (w as in wrapper!)Benoit Germain2025-07-043-25/+25
|
* Added targets for Lua 5.5 in VS projects and SolutionBenoit Germain2025-07-041-0/+182
|
* Split coro tests in several scriptsBenoit Germain2025-07-0413-203/+288
|
* Fix more issues related to suspended coroutines and join/indexing operationsBenoit Germain2025-07-032-39/+100
| | | | | * indexing and joining a suspended lane closes the coroutine, causing the termination of the lane * properly close coroutine to-be-closed variables on interruption
* Clarified interactions between join() and coroutinesBenoit Germain2025-07-011-18/+27
|
* Preparation for lane:close() and correct to-be-closed variablesBenoit Germain2025-06-268-106/+237
| | | | | | | | * lane:join() can no longer be used to read yielded values * same with lane indexing * stub for lane:close(), similar to coroutine.close() (not implemented yet) * preparing tests for to-be-closed variables in yielded coroutine lanes * yielded lanes unlock and terminate properly at Lanes shutdown
* Move some tests to a separate scriptBenoit Germain2025-06-245-27/+33
|
* Added 2 tests in tasking_basicBenoit Germain2025-06-231-0/+27
|
* Change lane:join() return valuesBenoit Germain2025-06-053-9/+18
| | | | | | * when no error is raised in the lane, lane:join() now precedes the lane returned values with true * lane body is no longer forced to return something when used with join() * adjusted all relevant unit tests accordingly
* Thread priority reworkBenoit Germain2025-05-071-62/+155
| | | | | | | * thread priorities can now be set using the native range of values, if desired. * thread API errors cause a Lua error instead of aborting the program. * new function lanes.thread_priority_range(), to query the valid range of priorities. * unit tests for all of the above
* Renamed a few unit testsBenoit Germain2025-05-062-10/+10
|
* Updated comments on unit test lanes.configure.allocator/protectedBenoit Germain2025-04-291-1/+1
|
* Retarget vcxproj to latest Windows SDKBenoit Germain2025-04-291-1/+1
|
* Split unittest lanes.configure.allocatorBenoit Germain2025-04-291-31/+47
|
* Remove a useless mutex guard on lane setf-destructBenoit Germain2025-04-281-0/+1
|
* Unit test fixesBenoit Germain2025-04-244-10/+42
| | | | | | * fix cooperative_shutdown * add a test to tasking_cancelling * fix bad fixture function name give_me_back
* cancel_test() returns "soft"/"hard" instead of trueBenoit Germain2025-04-231-1/+0
|
* Make gcc more happyBenoit Germain2025-04-203-3/+5
|
* A unit test for linda wake_periodBenoit Germain2025-04-184-12/+50
|
* New feature: Linda periodical cancellation checksBenoit Germain2025-04-189-301/+437
| | | | | | | * lanes.linda() api change: takes all settings in a single table argument * new linda creation argument wake_period * new lanes.configure setting linda_wake_period * adjusted all unit tests (one TODO test fails on purpose)
* Linda batched mode reworkBenoit Germain2025-04-153-3/+2
| | | | | * linda.batched special value is removed * new function linda:receive_batched
* A bit of code factorizationBenoit Germain2025-04-151-0/+1
|
* Fix some tests (kinda)Benoit Germain2025-04-155-67/+96
| | | | | * split tasking_cancelling in two * add a timer in basic and tasking_cancelling as a temporary workaround for a deadlock in mingw ucrt64 builds
* Remove whitspaces from test namesBenoit Germain2025-04-143-6/+6
|
* Fix crash with multi keepers (invalid memory access on close)Benoit Germain2025-04-071-0/+7
|
* UnitTest vcproj builds exe directly in _LuaVersions so that it finds the ↵Benoit Germain2025-04-041-20/+20
| | | | necessary DLLs
* Separate nb_user_keeper unit testsBenoit Germain2025-04-041-34/+35
|
* More vcproj fixes for some targetsBenoit Germain2025-03-211-24/+24
|
* Adjusting MSVC files to ease unit testingBenoit Germain2025-03-214-240/+88
| | | | | * Everything assumes there is a _LuaVersions folder containing all supported Lua versions (binaries, libs and headers) alongside the Lanes.sln location * After that the solutions to build the Lua binaries themselves will appear too for reference (mainly because their output folders will be configured accordingly)
* A few vcproj tweaksBenoit Germain2025-03-201-20/+28
|
* Fix test "allocator = <bad C function>" not failing against LuaJIT like it ↵Benoit Germain2025-03-171-169/+178
| | | | should
* Raise a regular Lua error instead of throwing a C++ std::logic_error ↵Benoit Germain2025-03-175-49/+66
| | | | exception in Universe::UniverseGC
* Give a name to all lanes in the testsBenoit Germain2025-03-1414-18/+19
|
* lanes/core.[so|dll] → lanes_core.[so|dll]Benoit Germain2025-03-143-4/+4
|
* More makefile tweaksBenoit Germain2025-03-141-7/+7
|
* More work on MakefilesBenoit Germain2025-03-133-10/+12
| | | | | | | | | | | * renamed makefiles: - Shared.mk → Shared.makefile - src/Makefile → src/Lanes.makefile - unit_tests/Makefile → unit_tests/UnitTests.makefile - deep_userdata_example/Makefile → deep_userdata_example/DUE.makefile * Add a makefile for deep_userdata_example * added a target 'unit_tests' to build them (not running them yet) * plus some minor internal improvements
* Cleanup in MSVC projectsBenoit Germain2025-03-132-71/+85
|
* Disable unit test "lanes.stack checker" in Release buildsBenoit Germain2025-03-132-7/+22
|
* Makefile tweaksBenoit Germain2025-03-121-1/+1
|
* Fix unit tests makefileBenoit Germain2025-03-121-1/+1
| | | | * UnitTest.exe is not a shared library
* Make gcc happyBenoit Germain2025-03-122-1/+2
|
* Unit tests for lanes.sleepBenoit Germain2025-03-121-0/+65
|
* Add a VisualStudio solution to build and debug LanesBenoit Germain2025-03-116-38/+641
| | | | | | * configured to build Lanes, the example module deep_userdata_example, and the unit tests * relies on Lua 5.1 → 5.4, LuaJIT and MoonJIT to be built and located in a fixed directory * manual_register legacy test now uses deep_userdata_example module instead of lfs
* Sample module deep test renamed deep_userdata_exampleBenoit Germain2025-03-112-11/+11
|