1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

166 Commits

Author SHA1 Message Date
Delyan Angelov
df8a4a03a0
tests: support // vtest retry: 4 for marking flaky tests 2021-09-18 11:48:32 +03:00
yuyi
ef690dc06b
testing: remove panics when cleaning up after test runs (#11505) 2021-09-15 15:15:46 +03:00
Dialga
2cfc6e007d
test: allow testing files from a relative directory (#11391) 2021-09-06 03:11:58 +03:00
Delyan Angelov
2b92ccecb5
ci: fix v build-examples and v build-tools 2021-08-28 12:44:03 +03:00
Alexander Medvednikov
29f550158e all: update chdir usages 2021-08-28 09:39:18 +03:00
Delyan Angelov
0675079b98
ci: skip const_comptime_eval_before_vinit_test.v with MSVC 2021-07-30 21:46:59 +03:00
Uwe Krüger
abd17ddb6a
cgen: initialize globals with default initializer when none is given. (#10979) 2021-07-27 20:14:30 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
Delyan Angelov
027be2ecd4
tests: show a list of all failed commands in the summary too 2021-07-15 11:53:14 +03:00
Delyan Angelov
01a8d3f8a1 tests: skip building psql/customer.v on macos (requires postgres) 2021-06-07 18:23:18 +03:00
Delyan Angelov
bf623e191f
tests: ignore testdata folders while scanning for tests and .v files 2021-06-02 21:19:03 +03:00
Delyan Angelov
2376b343ba
tests: always use / for paths shown in tests 2021-05-31 15:56:36 +03:00
Delyan Angelov
eac1e25c5d
strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
Delyan Angelov
dd0a97541c
tests: use term.header_left, and a more compact output layout 2021-05-20 11:25:07 +03:00
Delyan Angelov
d11cd50773
ci: skip vweb_app_test.v except in the ubuntu-tcc job 2021-05-11 17:47:43 +03:00
Delyan Angelov
8a380f4699
tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
Don Park
aebb551e93
cgen: do full struct initialisation for V structs, fixes invalid data from map[string]Struct{}['unknown'] (#9878) 2021-04-27 08:18:48 +03:00
Delyan Angelov
2f29e7903c
tests: cleanup obsolete skips in common.v 2021-04-23 15:31:04 +03:00
Louis Schmieder
64391efa4d
orm: add mysql support (#9630)
* add mysql to orm

* fix got to big packet error

* format sql.v

* format example

* custom sql types

* add mysql table cration

* add documentation

* format sql.v

* fix markdown

* start implementing select_expr for mysql

* remove orm.c

* format sql.v

* finish mysql expr

* remove c

* remove unessecary files

* change to c implementation

* remove c

* added str interpolation for idents

* fix string insert

* fix compilation problems

* fix gitly compilation

* fix typing mistake

* add link to orm docs
2021-04-10 17:38:27 +03:00
Delyan Angelov
cc80ee0ab4
tools: improve the default performance/behaviour of oldv 2021-04-07 12:36:14 +03:00
Delyan Angelov
9bb3a5b3a3
tools: update oldv to be faster for the most common cases 2021-04-06 11:43:53 +03:00
Alexander Medvednikov
ed37512ea9 ci: run wkhtmltopdf only on linux again 2021-04-05 07:55:32 +03:00
Bastian Buck
69dff4b384
os: make os module handle large files (#9439) 2021-03-26 07:51:55 +01:00
penguindark
a2ef9967fe
examples: add .obj viewer as a sokol example (#9456) 2021-03-25 16:53:13 +01:00
Lukas Neubert
7664964c56
vfmt: format all of cmd/ and add it to v test-cleancode (#9418) 2021-03-24 23:37:10 +02:00
crthpl
fafb035fb5
all: reimplement inline assembly (#8645) 2021-03-17 01:43:17 +01:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +03:00
Nick Treleaven
23f231ee61
builtin: tag array methods unsafe: *_many, grow_len, pointers (#8983) 2021-02-26 22:55:09 +01:00
penguindark
198b395cde
examples: add examples/sokol/05_instancing_glsl, cleanup code (#8809) 2021-02-18 11:11:26 +02:00
penguindark
325aef6d41
gg: add gg.m4, use it in the sokol GLSL examples (#8755) 2021-02-15 15:40:28 +02:00
Delyan Angelov
578de634fe
sync: move pool related code to sync.pool, cleanup, add a README.md 2021-02-11 10:55:23 +02:00
Ruofan XU
8b1337029f
ci: add build-examples task to tcc-windows CI (#8653) 2021-02-11 01:23:03 +01:00
Lukas Neubert
46f8e68bec
ci: skip process/command example on windows (#8617) 2021-02-07 13:46:22 +02:00
Delyan Angelov
4f4e3e9b61
ci: fix failing windows tests (skip the websockets examples) 2021-01-31 18:37:45 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Delyan Angelov
cb04e6dccc
tests: move is_nodejs_working() to jsgen_test.v 2021-01-25 18:46:28 +02:00
Delyan Angelov
9d1d35ebdc
tests: fix a test message index bug on VTEST_SHOW_START=1 2021-01-25 17:58:08 +02:00
Delyan Angelov
0a61149476
tests: implement VTEST_SHOW_START=1 v test vlib/math 2021-01-25 16:29:56 +02:00
Delyan Angelov
fafd949770
tests: skip vlib/v/gen/js/jsgen_test.v when there is no node --version working 2021-01-17 19:21:18 +02:00
Daniel Däschle
a22982d662
tests: colorize failing tests, improve layout (#8066) 2021-01-13 11:07:12 +02:00
Delyan Angelov
49ec2c86ae
oldv: match the v commit in the vc log by --grep, falling back to --before= 2021-01-12 12:44:34 +02:00
penguindark
c067cc0357
vlib: add a TTF font loader and render in x.ttf (#7995) 2021-01-10 20:14:41 +02:00
Delyan Angelov
ca83746884
tools: ensure that v test-cleancode is always run in the vroot folder 2021-01-09 19:25:50 +02:00
Larpon
b299fb1e92
vdoc: heavy refactor, immutable config (#7945) 2021-01-08 12:25:22 +02:00
Tomas Hellström
f9a873736e
x.websocket: server broadcast plus examples (#7922) 2021-01-06 15:43:54 +01:00
Delyan Angelov
acc93a66bb
ci: skip the mysql.v example on windows too 2021-01-04 00:28:51 +02:00
Delyan Angelov
095857d59b
ci: skip building examples/database/mysql.v on macos 2021-01-03 19:52:28 +02:00
Leandro Silva
86df5cd1a9
examples: C interop for HTML to PDF conversion using libwkhtmltox (#7751) 2021-01-03 16:56:55 +01:00
Delyan Angelov
74f7a1a549 ci: run v build-examples on windows jobs too 2020-12-21 19:51:20 +02:00
Alexander Medvednikov
6bf21c300a checker: do not allow arr1=arr2 without cloning 2020-12-20 15:33:55 +01:00
Delyan Angelov
3f2133c65e
examples,tools: cleanup most warnings 2020-12-04 16:05:39 +02:00
Delyan Angelov
4b94c29c91
tests: use .replace_each() instead of a .replace() chain 2020-12-02 19:47:07 +02:00
Delyan Angelov
cc1d313d68
tools: fix v build-tools 2020-12-01 17:44:07 +02:00
Delyan Angelov
fff70368b7 tests: show all the failed messages even with -silent 2020-11-04 13:38:05 +02:00
Delyan Angelov
9cf5c9ac43 tests: simplify print mode logic 2020-10-18 20:49:25 +03:00
Delyan Angelov
7bc94fff9a tests: implement compact progress mode (the old one is available with -expand) 2020-10-18 19:27:29 +03:00
Delyan Angelov
a9659beabe tests: simplify the synchronized printing of results, using chan string 2020-10-18 18:16:33 +03:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Delyan Angelov
3795aaab5c v test-fmt: reformat some skipped files, comment on the remaining ones 2020-10-15 00:39:09 +03:00
Delyan Angelov
e02f25a108 test-compiler: fix sporadic fails for vpm/v install 2020-10-14 18:20:19 +03:00
Delyan Angelov
0edcd5efb0 repeat.v: support --max_time limit for the average time of a command 2020-10-09 11:08:59 +03:00
Delyan Angelov
1fb127ba79 tests: sort the test session file paths before running the tests 2020-09-26 10:11:45 +03:00
Delyan Angelov
78e6ddee75 tests: enable running v test . inside vlib/v/ too 2020-09-18 19:20:01 +03:00
Delyan Angelov
a97716de33 test: do not strip vroot/ from test report 2020-09-18 18:35:38 +03:00
Delyan Angelov
6c27ce58ed v.util.vtest: extract the common code for VTEST_ONLY in a single place 2020-08-05 19:34:27 +03:00
Delyan Angelov
9511d086bd oldv: use green color for tracing/diagnostic lines 2020-08-04 11:22:37 +03:00
Ryan Willis
e804ba5294
vfmt: add support for VDIFF_TOOL, detect more diffing tools (#5857) 2020-07-17 14:03:07 +03:00
Delyan Angelov
73a259496e tests: support VTEST_ONLY=fn_,match_ ./v test-fixed and in compiler_test.v 2020-07-09 10:47:16 +03:00
Delyan Angelov
ce31c4c03e tests: support VTEST_ONLY=parser ./v vlib/v/compiler_errors_test.v 2020-07-09 10:27:31 +03:00
Delyan Angelov
6b2777e681 compiler: support VTMP; tests: delete .tmp.c files on successfull tests 2020-07-06 15:08:46 +03:00
Uwe Krüger
3b067f5f85
all: experimental locked concurrency support, part 1 (#5637) 2020-07-04 12:44:25 +02:00
Larpon
aec3ea5d32
examples: add sokol particle example (#5599) 2020-07-01 14:29:58 +03:00
Emily Hudson
09236a438b
msvc: unique names for pdb files, remove test job limit 2020-06-26 17:16:15 +02:00
Delyan Angelov
cadde3e9f0 vlib: fix os.exec().output usages, that may rely on trimmed lines 2020-06-15 15:38:20 +03:00
Alexander Medvednikov
931cf86cc3 tests: build vweb example 2020-06-07 15:44:33 +02:00
Sumeet Chhetri
442030a7c8
picoev: make compile, add header parsing 2020-06-07 01:23:30 +02:00
Alexander Medvednikov
fb7ca56d87 gg: minor fixes 2020-06-04 19:57:16 +02:00
Alexander Medvednikov
42e314d281 examples: skip live gg examples for now 2020-06-04 19:14:24 +02:00
yuyi
5ae8853648
all: change f mut Foo to mut f Foo 2020-06-04 10:35:40 +02:00
Alexander Medvednikov
7496c1be2a examples: fix remaining examples and add them to CI 2020-06-02 19:47:28 +02:00
Alexander Medvednikov
4e51867612 make v build-examples work: part 1 2020-06-02 16:09:41 +02:00
Alexander Medvednikov
78f8a8aee6 cgen: remove g_ hack 2020-06-02 15:49:43 +02:00
Uwe Krüger
013fdb8a4b
checker: restrict numeric promotions to cases where no data is lost 2020-05-27 05:42:48 +02:00
Delyan Angelov
acb58a1f98 parser: add p.peek_tok3, fix for ...<a.len... 2020-05-22 19:48:47 +03:00
yuyi
7f4cf08516
parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
Delyan Angelov
fb27fe5379 CI: add v build-tools task to the tcc job 2020-05-17 00:14:06 +03:00
Delyan Angelov
d33082dffe oldv: fix compilation, make VGitOptions fields public 2020-05-10 18:41:46 +03:00
Delyan Angelov
acd80f052b
tests: improve diagnostic output on failure 2020-05-04 11:21:25 +03:00
yuyi
9f4d498ff1
all: updateimport () and []array 2020-04-26 13:49:31 +02:00
Delyan Angelov
b898970031 cmd/tools: use same line imports too 2020-04-26 09:32:05 +03:00
Delyan Angelov
7a03b18bfe vgit: avoid generics; enables compilation of the performance_compare & oldv tools. 2020-04-20 18:39:25 +03:00
Major Taylor
392986b763
testing: fix race condition, make messages private 2020-04-18 17:44:21 +02:00
Kris Cherven
eb923b4995
testing: fix count of succeeded tests 2020-04-18 05:49:03 +03:00
Alexander Medvednikov
e8afd7a1b7 ci: msvc tests fix 2020-04-11 16:57:02 +02:00
yuyi
3c6a4dedd6
tool: fix vgit.v 2020-04-07 13:14:22 +02:00
Alexey
6a5cc0fa19
tests: update assert output 2020-04-03 13:39:11 +02:00
Alexander Medvednikov
8dfb14b1c4 remove 15k lines of code of the old backend; make V2 the default backend 2020-04-01 21:25:31 +02:00