Commit graph

383 commits

Author SHA1 Message Date
Christoph Rüßler
c4f141b735 Use Instant over SystemTime to record timings
Closes #3575.
2022-07-22 10:03:47 +02:00
Folkert de Vries
a432874290
Merge pull request #3592 from rtfeldman/main-dot-roc
Advise using `roc run` with no arg if running `main.roc`
2022-07-21 18:36:39 +02:00
Folkert
2e07c3f617
show preceding comment in failed test messages 2022-07-21 10:42:58 -04:00
Richard Feldman
35733d51dc
Tweak expectation panic message wording 2022-07-21 10:42:57 -04:00
Folkert
9d294b459e
thread top-level expect region through 2022-07-21 10:42:57 -04:00
Folkert
7e5476aa58
report panicking tests (not pretty yet) 2022-07-21 10:42:57 -04:00
Ayaz Hafiz
29b37a10df
Correctly use module name in linked functions 2022-07-21 09:02:04 -04:00
Ayaz Hafiz
7ef03440ef
Fully qualify values exported to host linking
Previously we were only handing off exposed values based on their
inner-module ID, but actually the fully-resolved ID is needed, because
it's reasonable that two identical names from different modules are
exposed to the host.

Closes #3483
2022-07-21 09:02:03 -04:00
Richard Feldman
8f7e33f526
Advise running roc run if given "main.roc" 2022-07-20 17:01:32 -04:00
Richard Feldman
ca4baf7131
Default roc test to main.roc 2022-07-18 20:37:49 -04:00
Richard Feldman
ae293baef7
Revise wording of roc test output 2022-07-18 11:58:26 -04:00
Richard Feldman
6389dba5b8
Merge pull request #3410 from rtfeldman/merge-macho-progress
port all macho linker work to trunk and make it mergable
2022-07-16 16:04:42 -04:00
Folkert
c484df99ff fix merge conflict 2022-07-15 13:23:10 +02:00
Folkert
b9ebd4fa27 Merge remote-tracking branch 'origin/trunk' into pretty-expect-output 2022-07-15 09:12:04 +02:00
Folkert
42941cae27
fix rust dropping a CString somehow 2022-07-13 23:08:26 +02:00
Folkert
b229c70eec
add cli test configuration 2022-07-13 19:16:36 +02:00
Folkert
a56ff4f3e3
add the roc test test running logic 2022-07-13 18:50:46 +02:00
Richard Feldman
bf63c45b46
Compute src_dir from original filename
This fixed a bug where bindgen was providing cwd() for src_dir,
but actually the src_dir should have been based on the filename.
This prevents that problem from happening in the future!
2022-07-13 12:49:06 -04:00
Folkert
9d0e3e42d3
bring expectation info to the running code 2022-07-13 15:32:02 +02:00
Folkert
7b8c73325f
refactor argv envp creation 2022-07-13 15:06:55 +02:00
Folkert
e921fe6515
add code for rendering the result 2022-07-13 14:57:08 +02:00
Folkert
68c51782e6
skeleton for running pretty expects 2022-07-13 14:32:47 +02:00
Folkert
ff2b5cf6f0
properly pipe argv and envp to fexecve 2022-07-10 20:34:01 +02:00
Richard Feldman
a6d99aa357
Move src_dir into LoadStart 2022-07-08 18:16:07 -04:00
Folkert
d931546424
cleanup 2022-07-06 15:43:44 +02:00
Folkert
8b39cc444e
somewhat decent formatting 2022-07-06 15:37:22 +02:00
Folkert
12027ee338
run platform-independent tests from a dynamic lib 2022-07-06 15:33:10 +02:00
Folkert
610f8784cc
split out dylib creation 2022-07-06 15:26:03 +02:00
Folkert
c4429d64e1
add CMD_TEST 2022-07-06 15:14:54 +02:00
Richard Feldman
cc94fdd88f
wip 2022-07-06 15:14:39 +02:00
Brendan Hansknecht
42de78213b
port all macho linker work to trunk and make it mergable 2022-07-05 21:11:35 -07:00
Folkert
9c856fd5ae
updates for clippy 1.62 2022-07-05 12:39:27 +02:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00