Commit graph

347 commits

Author SHA1 Message Date
Richard Feldman
98bda47989 Add run_cmd helper 2020-10-18 09:55:31 -04:00
Richard Feldman
65336919fc Have valgrind output XML to a tempfile 2020-10-18 08:46:50 -04:00
Folkert
ba99b96164 add repl test for type error 2020-10-14 20:53:19 +02:00
Brendan Hansknecht
d2cfd8e195 Log output on cli run error 2020-10-13 19:41:45 -07:00
Brendan Hansknecht
270dda8d5d Add multi-module example to valgrind
This is now technically mergable, but it does not run unoptimized
quicksort.
2020-10-12 19:54:53 -07:00
Brendan Hansknecht
d4d7fc7bc6 Merge branch 'trunk' into valgrind 2020-10-12 19:44:25 -07:00
Brendan Hansknecht
d9550b00a5 Run both optimized and unoptimized builds with valgrind 2020-10-12 15:08:08 -07:00
Folkert
a067d73c14 add multi module cli test 2020-10-12 22:24:05 +02:00
Brendan Hansknecht
06073f6692 Make leakedbytes and leakedblocks optional 2020-09-30 19:03:38 -07:00
Brendan Hansknecht
46a03e7cd5 Fail tests on any valgrind memory errors
I currently don't like how the xml is parsed. It is definitely
functional, but it is very strange. Serde is not made to deal with a
list of fields with the same name that aren't next to eachother in the
xml.
2020-09-30 09:43:52 -07:00
Brendan Hansknecht
fbce5145c1 Run cli tests with valgrind 2020-09-29 21:21:07 -07:00
Richard Feldman
8395044ce6 Improve error reporting in cli_run tests 2020-09-26 23:00:55 -04:00
Folkert
16fc5dd497 Merge remote-tracking branch 'origin/trunk' into exception-handling 2020-09-19 21:50:57 +02:00
Folkert
be6752542b update to run on our fork of inkwell again 2020-09-19 21:50:33 +02:00
Folkert
9a0a13646f fix repl 2020-09-19 01:46:14 +02:00
Richard Feldman
5d3645350d Merge remote-tracking branch 'origin/trunk' into small-str 2020-09-16 02:23:06 -04:00
Brendan Hansknecht
439c96b823 Split roc_cli into binary and lib
Splitting into binary and lib enables using the lib in tests.
main.rs is now a thin wrapper around the lib. In the future, the exact
code split should potentialy be changed so that main.rs does all arg
parsing and then calls into the lib with fully unwrapped parameters.
2020-09-14 16:34:50 -07:00
Folkert
ee017084f7 return 3-element records 2020-09-14 21:56:57 +02:00
Chad Stearns
a318253d48 small str implementation in string literal, and bringing in remote trunk 2020-09-09 21:53:38 -04:00
Richard Feldman
070154e97b Shorten the repl greeting a bit. 2020-08-31 23:50:27 -04:00
Richard Feldman
7682e09b0a Fix some fmt stuff 2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a Get things compiling 2020-08-31 23:13:50 -04:00
Richard Feldman
5288171c0b Disable some tests that are blocked on #295 2020-08-24 00:03:12 -04:00
Richard Feldman
e35bbe61bf Expand repl tests for float records 2020-08-24 00:03:12 -04:00
Richard Feldman
c5f5bb1bef Use sorted field names for printing records 2020-08-24 00:03:12 -04:00
Richard Feldman
2934864df3 Extract some logic to cli::repl::eval 2020-08-23 22:06:44 -04:00
Richard Feldman
ed4f5afb3c Rename repl test to repl_eval 2020-08-23 22:06:44 -04:00
Richard Feldman
63a9901b18 Report single-field int structs 2020-08-23 22:06:44 -04:00
Richard Feldman
6827a48dd1 Add some failing repl record tests 2020-08-23 22:06:44 -04:00
Richard Feldman
fc857e2070 Add nested list repl tests 2020-08-23 16:22:11 -04:00
Richard Feldman
b210cff2e1 Add a repl test for List Str 2020-08-23 14:35:10 -04:00
Richard Feldman
1a0898ca93 Ignore some newlines in repl output 2020-08-23 14:22:15 -04:00
Richard Feldman
f12410c930 Improve repl crash reporting 2020-08-23 14:22:15 -04:00
Richard Feldman
a632303d15 Revert attempt to do repl JIT better 2020-08-23 14:22:15 -04:00
Richard Feldman
d61bd673fd Make repl tests more robust to repl crashing 2020-08-23 14:22:15 -04:00
Richard Feldman
4dba926063 Add some more repl tests 2020-08-23 11:57:21 -04:00
Richard Feldman
825de52b83 Add some basic repl tests 2020-08-23 11:49:33 -04:00
Richard Feldman
9a1a0c3c23 Initial repl_run test 2020-08-23 11:15:26 -04:00
Richard Feldman
afa57e57e9 Extract CLI helpers 2020-08-23 10:36:51 -04:00
Folkert
380e34d296 Merge remote-tracking branch 'origin/trunk' into tail-call-elimination 2020-08-12 15:46:50 +02:00
Richard Feldman
edafbfe525 Replace unsorted.csv with algorithm 2020-08-12 08:33:36 -04:00
Folkert
84a8b69437 generate IR that uses uniqueness 2020-08-11 14:47:14 +02:00
Richard Feldman
f7a905d8ef Fix expected test output 2020-08-10 23:16:03 -04:00
Folkert
79ea62b9d4 make uniqueness change codegen 2020-08-10 21:13:57 +02:00
Folkert
65db338435 add test for quicksort example 2020-08-10 16:10:07 +02:00
Richard Feldman
d4a45ed489 Add CLI subcommands roc run and roc build 2020-04-18 14:32:50 -04:00
Richard Feldman
6f75ce6680 Add CLI test for Hello World 2020-04-17 06:38:29 -04:00