Commit graph

213 commits

Author SHA1 Message Date
Delyan Angelov
37f385c9d0
testing: implement a separate -show-asserts option, for cleaner test output (-stats still works, and still shows both the compilation stats and the asserts) (#21578) 2024-05-26 18:50:42 +03:00
Delyan Angelov
1cd561feb4
tests: reduce the likelyhood of naming collisions for v test session folders, started at the exact same time (the time resolution on windows is much lower) 2024-05-24 13:08:45 +03:00
Delyan Angelov
7a36b44c6a
ci: skip compiling the simple_sin_tones.v example again, but only in the tests-sanitize-memory-clang job 2024-05-22 08:45:50 +03:00
Delyan Angelov
6a550ab86e
tools: cleanup skips for v build-examples in cmd/tools/modules/testing/common.v (#21542) 2024-05-21 16:04:20 +03:00
Turiiya
f7e820cdeb
v: vet for empty string conditions (#21529) 2024-05-19 17:57:52 +03:00
Delyan Angelov
0e2b6041b8
testing: fix v -stats test folder/ not failing for a _test.v that fails (#21483) 2024-05-10 23:30:24 +03:00
Delyan Angelov
fe9be9632d
ci: fix the ubuntu-docker-musl job by skipping veb_app_test.v 2024-04-25 06:36:14 +03:00
Delyan Angelov
20fd795b64
tools: support v run cmd/tools/oldv.v --show_VC_commit weekly.2024.03 2024-04-20 13:32:34 +03:00
Laurent Cheylus
f1fba25e49
tools: fix v build-tools (it skipped all tools in subfolders of cmd/tools/ after 6a4f293) (#21120) 2024-03-28 07:28:59 +02:00
Larpon
22744ce495
examples: fix simple_shader compile error, add 2 shader examples to CI (#21112) 2024-03-27 14:05:42 +02:00
Delyan Angelov
8a9def6534
examples: port sokol/clear.v and sokol/sdf/sdf.v (#21069) 2024-03-21 06:28:25 +02:00
Delyan Angelov
f43b52860d
tools: use the same same skipping logic for the platform specific _test.v files in v test-self too (#20815) 2024-02-13 18:36:51 +02:00
syrmel
6a4f2937ef
vtest,pref: add ability to have platform specific _test.v files (#20810) 2024-02-13 12:06:47 +02:00
Delyan Angelov
22e0b984d4
testing: retry 1 additional time sporadic silent test run failures on macos 2024-01-23 23:31:00 +02:00
Delyan Angelov
9a857c11c6
testing: fix warning for compiling ./v cmd/tools/vtest.v 2024-01-23 04:13:14 +02:00
Delyan Angelov
020515406a
testing: implement a retry loop for *the test compilation* as well controlled with VTEST_MAX_COMPILATION_RETRIES, with a randomized delay between each try 2024-01-22 22:12:20 +02:00
Delyan Angelov
4991fc7491
testing: make the FAIL tests more verbose, to ease remote CI failure diagnostics 2024-01-21 17:46:24 +02:00
Delyan Angelov
6107e0d154
tests: show compile time and runtime for each _test.v file in separate columns (#20520) 2024-01-20 17:38:46 +02:00
Hitalo Souza
cb224076ec
examples: add examples/wasm/change_color_by_id/ (#20519) 2024-01-14 13:34:23 +02:00
Delyan Angelov
35e91a7e70
checker,cgen: change x.filter(cond).len > 0 to x.any(cond), and x.filter(cond) == 0 to x.all(!cond) (#20513) 2024-01-13 08:52:31 +02:00
Hitalo Souza
1b3c4f596e
examples: serve the wasm mandelbrot project using a v web server (#19937) 2023-12-11 14:10:06 +02:00
Casper Küthe
08189d649c
vweb2 (#19997) 2023-12-09 08:07:51 +03:00
gym603
46086c046f
tests: make 'v test-self' pass under msys2/MINGW64 (#20010) 2023-11-28 15:03:30 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
JalonSolov
0da00cc457
v: prepare for making -W impure-v the default (#19940) 2023-11-20 09:17:59 +02:00
Delyan Angelov
157d603e5c
testing: fix reliance on os.join_path with , to produce a folder ending with / or \ (#19913) 2023-11-17 17:29:15 +02:00
Delyan Angelov
c8382264a4
ci,tools: remove skips for the wasm backend, since binaryen is not required anymore (#19883) 2023-11-15 20:30:14 +02:00
Casper Küthe
a176021afe
picoev: improve raw mode, change fn signature for the raw_cb field to fn (mut Picoev, int) (#19817) 2023-11-11 09:36:52 +02:00
Delyan Angelov
92a72df5f8
tools: fix v build-tools, make v test more robust (#19803) 2023-11-07 21:19:58 +02:00
Delyan Angelov
50c22b5a12
os: implement os.fd_is_pending/1, os.Process.pipe_read/1, os.Process.is_pending/1 (#19787) 2023-11-07 13:47:25 +02:00
Delyan Angelov
bd52a94e60
tests: add a small delay too between the test retries, in the non -stats branch, handling flaky test failures 2023-11-06 16:51:57 +02:00
JalonSolov
01022e918e
flag,json,net: handle C calls in .v files (part of enabling -W impure-v as default) (#19779) 2023-11-06 14:27:00 +02:00
Joe C
a63f3e6f77
coroutines: use photon work_pool when nr_jobs > 0, and use photon libc fn wrappers (#19711) 2023-10-31 20:12:52 +03:00
Turiiya
a2dabddc70
testing: add temporary file hash to prevent accidental collisions with test file binaries (#19710) 2023-10-31 08:07:51 +02:00
Turiiya
2332c17bea
tools: fix typos (#19546) 2023-10-11 03:16:59 +03:00
Turiiya
3e50ba0856
ci: update and cleanup the ci related code (#19541) 2023-10-10 21:39:00 +03:00
Delyan Angelov
c075e44ec1
ci,examples: fix v examples/sokol/simple_shader_glsl/simple_shader.v, ensure it compiles on the misc-tooling job (#19404) 2023-09-21 19:44:58 +03:00
Delyan Angelov
c85232ef1f
tools: make performance_compare.v more robust and easier to use, by allowing v run cmd/tools/performance_compare.v too 2023-08-26 10:40:16 +03:00
Delyan Angelov
806f071a11
tools: improve oldv windows support, make it use -municode for windows builds, after 53ffee1 2020-05-18 2023-08-26 09:51:50 +03:00
Delyan Angelov
636aae243c tools: improve windows support in oldv (it now can run in cmd.exe, not just in a Git Bash shell) 2023-08-26 09:07:14 +03:00
Delyan Angelov
7add6e7d51
tools: make repeated runs of oldv SAME_COMMIT -c "./v file.v", not use the network at all 2023-08-25 20:39:01 +03:00
Delyan Angelov
cdaabc120d
tools: quick bugfix to vgit.v, after the previous commit message, that included a hash; TODO: a more robust check 2023-08-14 15:47:46 +03:00
Delyan Angelov
a93ef6ea67
tools: make v run cmd/tools/oldv.v 5b7a1e8 -c "./v version" faster (5b7a1e8 is the oldest supported commit from 2019-06-29) 2023-08-14 14:32:13 +03:00
Etienne Girondel
492e918fdb
builder,pref: allow thirdparty objects compilation with CPP compiler (#19124) 2023-08-13 20:30:28 +03:00
Everton J. Carpes
357ac0bb5a
examples: show how to call a simple v module from ruby (#19073) (#19073)
This is a copy/adaptation of the python example (#13105)
2023-08-07 07:07:00 +03:00
Delyan Angelov
d91c7f1b3b
tools: use --filter=blob:none to reduce initial network trafic for most of the git clone commands, done by tools like oldv, gen_vc, fast_job, v translate etc 2023-08-04 11:50:30 +03:00
Casper Kuethe
a43064af07
picoev, picohttparser: reimplement in V (#18506) 2023-07-12 09:40:16 +03:00
Delyan Angelov
ae8e9af11f
ci: skip building examples/coroutines/simple_coroutines.v for now 2023-05-29 13:35:46 +03:00
Petr Makhnev
c1f249af6c
test: handle compilation errors when running tests specially in the teamcity runner (#17511) 2023-03-05 10:14:23 +02:00
yuyi
17000ef7b6
checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00