summary refs log tree commit diff stats
path: root/tests/coroutines
Commit message (Collapse)AuthorAgeFilesLines
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-144-4/+4
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Close#5586 (#14682)Dylan Modesitt2020-06-162-3/+0
| | | | | * re-enable macos and bsd on some coro tests * re-enable macos and bsd on some coro tests
* #12103 - CI for OpenBSD (#12105)Euan2020-04-212-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Working on OpenBSD CI * Condense steps into 2 steps to make output easier to follow. * Move up one directory after csources build. * Remove FreeBSD build manifest and add OpenBSD test ignores for coroutines and hot code reloading. * If runCI fails, run the test results script. * Add email trigger for build failure * Remove .git from repository URL * Disable SFML test on OpenBSD * Disable tgetaddrinfo on OpenBSD as only UDP and TCP protocols are supported. * Remove getFilePermissions as it causes CI test failures with NimScript. * Set clang as cc in nim.cfg and use gmake to build csources. * Add getCurrentDir to nimscript. * Remove duplicate getCurrentDir and check for not weirdTarget. * Add CI badge for OpenBSD. * Disable tests which allocate lots of memory for OpenBSD. * Use `CORO_BACKEND_SETJMP` on OpenBSD rather than ucontext. * Simplify building of koch * Disable t8657 on OpenBSD. See issue #13760. * Fix #12142 - tarray_of_channels fails on OpenBSD * Disable thhtpclient_ssl and tosprocterminate on OpenBSD. These tests can be enabled at a later date after fixing them. * Install libffi. * Set path to libc for openbsd. * Disable tevalffi for now. * Remove tevalffi.nim. * Use ncpuonline sysctl rather than ncpu. * Disable tacceptcloserace and tasynchttpserver on OpenBSD. * Enable tacceptcloserace and tasynchttpserver. * Fix #13775 as suggested by @alaviss - use /bin/cat on OpenBSD rather than /bin/sh. * Enable test on OpenBSD. * Disable tflowvar on OpenBSD.
* intVal works now on enum field symbols (#11403)Arne Döring2019-06-051-0/+3
| | | | | | * intVal works now on enum field symbols * disable flakey titerators test
* disable flaky coroutines testAndreas Rumpf2019-02-131-0/+1
|
* fix coro testArne Döring2018-11-231-1/+1
|
* updated tests to be executedArne Döring2018-11-231-1/+2
|
* disable some tests for the C++ target; refs #7870Araq2018-11-154-0/+13
|
* attempt to make travis OSX tests green and mandatoryAndreas Rumpf2017-03-291-0/+1
|
* Fix waiting on coroutines (#5463)Rokas Kupstys2017-03-022-0/+20
| | | | | | Public coroutine API returns a safe reference to specific running coroutine. Fixes bug where multiple coroutines executing same procedure would identify as same coroutine. Greatly optimizes `alive()` (and as a result of that `wait()`) calls. Coroutine struct is allocated together with stack as memory unmanaged by GC.
* Proper use of sequences in coroutine testsRokas Kupstys2017-02-242-11/+8
|
* Removed test code from coro.nim and created three real tests for coroutinesRokas Kupstys2017-02-206-0/+68
files can have Mu code in scenarios, so highlight Mu comments like " regular comments. syntax match muComment /#.*$/ highlight link muComment Comment syntax match muSalientComment /##.*$/ | highlight link muSalientComment SalientComment syntax match muCommentedCode /#? .*$/ | highlight link muCommentedCode CommentedCode set comments+=n:# " Some other bare-bones Mu highlighting. syntax match muLiteral %[^ ]\+:literal/[^ ,]*\|[^ ]\+:literal\>% syntax match muLiteral %[^ ]\+:label/[^ ,]*\|[^ ]\+:label\>% syntax match muLiteral %[^ ]\+:type/[^ ,]*\|[^ ]\+:type\>% syntax match muLiteral %[^ ]\+:offset/[^ ,]*\|[^ ]\+:offset\>% syntax match muLiteral %[^ ]\+:variant/[^ ,]*\|[^ ]\+:variant\>% syntax match muLiteral % true\(\/[^ ]*\)\?\| false\(\/[^ ]*\)\?% " literals will never be the first word in an instruction syntax match muLiteral % null\(\/[^ ]*\)\?% highlight link muLiteral Constant syntax match muAssign " <- \|\<raw\>" | highlight link muAssign SpecialChar " common keywords syntax match muRecipe "^recipe\>\|^recipe!\>\|^def\>\|^def!\>\|^before\>\|^after\>\| -> " | highlight muRecipe ctermfg=208 syntax match muScenario "^scenario\>" | highlight muScenario ctermfg=34 syntax match muPendingScenario "^pending-scenario\>" | highlight link muPendingScenario SpecialChar syntax match muData "^type\>\|^container\>\|^exclusive-container\>" | highlight muData ctermfg=226 syntax match subxString %"[^"]*"% | highlight link subxString Constant " match globals but not registers like 'EAX' syntax match subxGlobal %\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlobal SpecialChar endfunction augroup LocalVimrc autocmd BufRead,BufNewFile *.mu set ft=mu autocmd BufRead,BufNewFile *.cc call HighlightTangledFile() augroup END " Scenarios considered: " opening or starting vim with a new or existing file without an extension (should interpret as C++) " opening or starting vim with a new or existing file with a .mu extension " starting vim or opening a buffer without a file name (ok to do nothing) " opening a second file in a new or existing window (shouldn't mess up existing highlighting) " reloading an existing file (shouldn't mess up existing highlighting) " assumes CWD is subx/ command! -nargs=1 E call EditSubx("edit", <f-args>) if exists("&splitvertical") command! -nargs=1 S call EditSubx("vert split", <f-args>) command! -nargs=1 H call EditSubx("hor split", <f-args>) else command! -nargs=1 S call EditSubx("vert split", <f-args>) command! -nargs=1 H call EditSubx("split", <f-args>) endif function! EditSubx(cmd, arg) exec "silent! " . a:cmd . " " . SubxPath(a:arg) endfunction function! SubxPath(arg) if a:arg =~ "^ex" return "examples/" . a:arg . ".subx" else return "apps/" . a:arg . ".subx" endif endfunction " we often want to crib lines of machine code from other files function! GrepSubX(regex) " https://github.com/mtth/scratch.vim Scratch! silent exec "r !grep -h '".a:regex."' *.subx */*.subx" endfunction command! -nargs=1 G call GrepSubX(<q-args>) " temporary helpers while we port https://github.com/akkartik/crenshaw to apps/crenshaw*.subx command! -nargs=1 C exec "E crenshaw".<f-args> command! -nargs=1 CS exec "S crenshaw".<f-args> command! -nargs=1 CH exec "H crenshaw".<f-args> function! Orig() let l:p = expand("%:t:r") if l:p =~ "^crenshaw\\d*-\\d*$" exec "vert split crenshaw/tutor" . substitute(expand("%:t:r"), "^crenshaw\\(\\d*\\)-\\(\\d*\\)$", "\\1.\\2", "") . ".pas" endif endfunction command! O call Orig() if exists("&splitvertical") command! -nargs=0 P hor split opcodes else command! -nargs=0 P split opcodes endif