mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
threaded test_suite_runner.c3 (#2642)
* threaded test_suite_runner.c3 - Added a simple threadpool - Fixed the status line updates - Implemented the #skip for tests - Added ansi color to the final status line It works as one expects reducing the total runner time by the allocated number of threads. Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * fix thread_number and a test Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * added choice of "--thread [N]" or defaults to os::num_cpu() Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * added unique explicit --build-dir to the compiler and also print the c3c command line for debugging Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * disable "run compiler tests" for msvc-debug build it takes like 1:30hs Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * buffer printouts and correct ordering of tests Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * added progress bar - removed some \r carrier return stuff Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * Fix bug in fixed pool. Improve progress bar * Add color to bar. * Some renaming. * fix some leaky leaks Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * each test output is printed immediately Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> * Formatting, remove comment. Re-enable MSVC debug test. --------- Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com> Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
- Unit tests allocating too much `tmem` without `@pool` would cause errors in unrelated tests. #2654
|
||||
- Incorrect rounding for decimals in formatter in some cases. #2657
|
||||
- Incorrectly using LLVMStructType when emitting dynamic functions on MachO #2666
|
||||
- FixedThreadPool join did not work correctly.
|
||||
|
||||
### Stdlib changes
|
||||
- Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads.
|
||||
|
||||
Reference in New Issue
Block a user